Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@damoclark
Last active August 6, 2018 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damoclark/1c771bdb18f7fddc4c510818a78d210d to your computer and use it in GitHub Desktop.
Save damoclark/1c771bdb18f7fddc4c510818a78d210d to your computer and use it in GitHub Desktop.
eslint
node_modules
tmp
{
"env": {
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"rules": {
"key-spacing": [
"error",
{
"afterColon": true
}
],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"curly": [
"error",
"multi-or-nest",
"consistent"
],
"brace-style": [
"error",
"stroustrup",
{
"allowSingleLine": false
}
],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"dot-location": [
"error",
"property"
],
"indent": [
"error",
"tab",
{
"MemberExpression": 0,
"FunctionExpression": {
"body": 1,
"parameters": 0
},
"FunctionDeclaration": {
"body": 1,
"parameters": 0
},
"outerIIFEBody": 0,
"VariableDeclarator": 1,
"CallExpression": {
"arguments": 1
},
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 0,
"flatTernaryExpressions": true
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"semi-spacing": [
"error",
{
"before": true,
"after": true
}
],
"no-extra-semi": "error",
"no-console": "off"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment