Last active
April 18, 2018 13:47
-
-
Save brittanydionigi/860f521de95c27b8d07aff8f2f27485e to your computer and use it in GitHub Desktop.
Mod3 ESLint
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
{ | |
"parser": "babel-eslint", | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended" | |
], | |
"plugins": [ | |
"react" | |
], | |
"env": { | |
"browser": true, | |
"mocha": true, | |
"node": true, | |
"es6": true | |
}, | |
// Having a problem with one of these rules? Learn more about it here: https://eslint.org/docs/rules/ | |
"rules": { | |
"eqeqeq": ["error", "always"], | |
"getter-return": ["error", { "allowImplicit": true }], | |
"indent": ["warn", 2], | |
"no-template-curly-in-string": "error", | |
"semi": ["error", "always"], | |
"array-bracket-spacing": ["error", "never"], | |
"block-spacing": ["error", "always"], | |
"brace-style": ["error", "1tbs", { "allowSingleLine": true }], | |
"camelcase": "warn", | |
"comma-dangle": ["error", "never"], | |
"comma-spacing": ["error", { "before": false, "after": true }], | |
"comma-style": ["error", "last"], | |
"computed-property-spacing": ["error", "never"], | |
"func-call-spacing": ["error", "never"], | |
"keyword-spacing": ["error", { "before": true, "after": true }], | |
"max-len": ["warn", 80], | |
"no-duplicate-imports": "error", | |
"id-length": "error", | |
"id-blacklist": ["error", "data", "err", "e", "cb", "callback", "payload", "obj", "arr"], | |
"max-depth": ["warn", 4] | |
}, | |
"globals": { | |
"expect": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Missing comma on line 32 FYI got the error when running it.