Created
September 16, 2017 18:04
-
-
Save johnpapa/d9462d220e0a439840129855d78a7ed6 to your computer and use it in GitHub Desktop.
.eslintrc
This file contains hidden or 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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"sourceType": "module" | |
}, | |
"rules": { | |
"arrow-body-style": ["warn", "as-needed"], | |
"arrow-parens": ["warn", "as-needed"], | |
"arrow-spacing": ["warn", { "before": true, "after": true }], | |
"max-len": ["error", 100], | |
"prefer-arrow-callback": [ | |
"warn", | |
{ | |
"allowNamedFunctions": true | |
} | |
], | |
"quotes": ["error", "single", { "allowTemplateLiterals": true }], | |
"no-var": "warn", | |
"prefer-const": "warn", | |
"no-const-assign": "warn", | |
"no-this-before-super": "warn", | |
"no-undef": "warn", | |
"no-unreachable": "warn", | |
"no-unused-vars": "warn", | |
"constructor-super": "warn", | |
"valid-typeof": "warn" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment