Last active
January 16, 2016 20:25
-
-
Save troch/6dde940da2455de1d696 to your computer and use it in GitHub Desktop.
My ES6 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
{ | |
// Parser | |
"parser": "babel-eslint", | |
// ECMA Features | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParams": true, | |
"destructuring": true, | |
"modules": true, | |
"objectLiteralComputedProperties": true, | |
"templateStrings": true | |
}, | |
"rules": { | |
// Possible Errors | |
"no-dupe-args": 2, | |
"no-dupe-keys": 2, | |
"no-empty": 2, | |
"no-func-assign": 2, | |
"no-inner-declarations": 2, | |
"no-unreachable": 2, | |
"no-unexpected-multiline": 2, | |
// Best practices | |
"consistent-return": 0, | |
"curly": [2, "multi-line"], | |
"eqeqeq": 2, | |
"no-else-return": 2, | |
"no-multi-spaces": 0, | |
// Strict mode | |
"strict": 0, | |
// Variables | |
"no-shadow": 0, | |
"no-unused-vars": 2, | |
"no-use-before-define": 0, | |
// Style | |
"brace-style": [2, "1tbs"], | |
"comma-spacing": [2, {"before": false, "after": true}], | |
"comma-style": [2, "last"], | |
"consistent-this": [2, "that"], | |
"lines-around-comment": 2, | |
"key-spacing": 0, | |
"new-parens": 0, | |
"quotes": [2, "single", "avoid-escape"], | |
"no-underscore-dangle": 0, | |
"no-unneeded-ternary": 2, | |
"semi": 2, | |
// ES6 | |
"no-var": 2, | |
"no-this-before-super": 2, | |
"object-shorthand": 2, | |
}, | |
"env": { | |
"node": true, | |
"browser": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment