Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mchurichi
Created May 10, 2018 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchurichi/66a9ee192a7bf69825217b67dfb19b3a to your computer and use it in GitHub Desktop.
Save mchurichi/66a9ee192a7bf69825217b67dfb19b3a to your computer and use it in GitHub Desktop.
ESLint custom rules over react-app standard
{
"extends": "react-app",
"rules": {
"semi": "warn",
"no-compare-neg-zero": "warn",
"no-extra-semi": "warn",
"no-invalid-regexp": "warn",
"valid-jsdoc": "warn",
"array-callback-return": "warn",
"consistent-return": "warn",
"curly": "warn",
"dot-location": ["warn", "property"],
"no-else-return": "warn",
"no-eval": "error",
"no-global-assign": "error",
"no-implicit-coercion": "warn",
"no-implicit-globals": "warn",
"no-implied-eval": "error",
"no-multi-spaces": "warn",
"no-param-reassign": "warn",
"no-return-assign": "warn",
"no-unused-expressions": "warn",
"no-useless-return": "warn",
"no-void": "warn",
"yoda": "warn",
"no-use-before-define": "warn",
"array-bracket-newline": ["warn", "consistent"],
"block-spacing": "warn",
"brace-style": ["warn", "1tbs"],
"camelcase": "warn",
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": "warn",
"comma-style": "warn",
"eol-last": "warn",
"func-call-spacing": "warn",
"implicit-arrow-linebreak": ["warn", "beside"],
"indent": ["warn", 2, {"SwitchCase": 1}],
"jsx-quotes": ["warn", "prefer-single"],
"key-spacing": "warn",
"keyword-spacing": "warn",
"linebreak-style": "warn",
"lines-between-class-members": "warn",
"max-len": ["warn", { "code": 80, "tabWidth": 2 }],
"max-statements-per-line": "warn",
"new-cap": "warn",
"no-continue": "warn",
"no-multi-assign": "warn",
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-trailing-spaces": "warn",
"object-curly-newline": ["warn", { "consistent": true }],
"object-curly-spacing": ["warn", "always"],
"operator-linebreak": ["warn", "before"],
"quotes": ["warn", "single", { "avoidEscape": true }],
"space-before-function-paren": ["warn", "never"],
"space-in-parens": "warn",
"space-infix-ops": "warn",
"switch-colon-spacing": "warn",
"arrow-spacing": "warn",
"constructor-super": "warn",
"no-duplicate-imports": "warn",
"no-var": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-template": "warn"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment