Last active
February 23, 2017 10:12
-
-
Save lazamar/297b6aed56af9bf1936172824d52f727 to your computer and use it in GitHub Desktop.
My eslint configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use this file as a starting point for your project's .eslintrc. | |
// Copy this file, and add rule overrides as needed. | |
{ | |
"parser": "babel-eslint", | |
"extends": "airbnb", | |
"plugins": [ | |
"html" | |
], | |
"env": { | |
"es6": true, | |
"browser": true, | |
"node": true, | |
}, | |
"globals": { | |
}, | |
"rules": { | |
operator-linebreak: [2, "before"], | |
"no-multiple-empty-lines": 0, | |
"no-bitwise": 0, | |
"strict": [0, "function"], | |
"arrow-body-style": [0, "always"], | |
"no-use-before-define": [2, { "functions": true, "classes": true, "variables": true }], | |
"no-console": 1, | |
"complexity": [1, 3], | |
"func-names": 0, | |
"quotes": [1, "double"], | |
"no-unused-vars": [2, { "argsIgnorePattern": "^_" }], | |
"no-confusing-arrow": 0, | |
"no-nested-ternary": 0, | |
"react/prop-types": 0, | |
"comma-dangle": [2, { | |
"arrays": "never", | |
"objects": "never", | |
"imports": "never", | |
"exports": "never", | |
"functions": "never", | |
}], | |
indent: ['error', 4, { | |
SwitchCase: 1, | |
VariableDeclarator: 1, | |
outerIIFEBody: 1, | |
MemberExpression: 1, | |
FunctionDeclaration: { | |
parameters: 1, | |
body: 1 | |
}, | |
FunctionExpression: { | |
parameters: 1, | |
body: 1 | |
}, | |
ObjectExpression: 1, | |
}], | |
no-underscore-dangle: 0, | |
# "prefer-arrow-callback": 0, | |
# "vars-on-top": 0, | |
# "no-var": 0, | |
# "object-shorthand": 0, | |
# "block-spacing": [2, "always"], | |
# "prefer-template": 0, | |
# "prefer-rest-params": 0, | |
# "no-param-reassign": 0, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment