Skip to content

Instantly share code, notes, and snippets.

@wvmitchell
Forked from christielynam/.eslintrc
Created October 5, 2018 17:48
Show Gist options
  • Save wvmitchell/74e0d13afa36e5e8bfc4d1b86cf0e60f to your computer and use it in GitHub Desktop.
Save wvmitchell/74e0d13afa36e5e8bfc4d1b86cf0e60f to your computer and use it in GitHub Desktop.
Mod 3 ESList
{
"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 }],
"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"],
"indent": ["warn", 2, {"SwitchCase": 1}],
"keyword-spacing": ["error", { "before": true, "after": true }],
"max-len": ["warn", 80],
"no-duplicate-imports": "error",
"id-length": "error",
"id-blacklist": ["error", "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