Skip to content

Instantly share code, notes, and snippets.

@ReeganExE
Created May 13, 2019 14:50
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 ReeganExE/7afab6b5854da99daa1d04d9273785e0 to your computer and use it in GitHub Desktop.
Save ReeganExE/7afab6b5854da99daa1d04d9273785e0 to your computer and use it in GitHub Desktop.
Simple ESLint for react-app
{
"extends": "react-app",
"rules": {
"arrow-parens": "off",
"comma-dangle": ["error", "never"],
"implicit-arrow-linebreak": "off",
"import/no-cycle": 0,
"import/order": ["error", {"newlines-between": "always"}],
"import/prefer-default-export": 0,
"indent": "off",
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/label-has-for": 0,
"max-len": [2, 120, 2],
"no-confusing-arrow": "off",
"no-nested-ternary": [0],
"no-param-reassign": [2, {"props": false}],
"object-curly-newline": "off",
"operator-linebreak": "off",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/destructuring-assignment": 0,
"react/forbid-prop-types": 0,
"react/jsx-filename-extension": [1, {"extensions": [".js"]}],
"react/jsx-indent": 0,
"react/jsx-one-expression-per-line": 0,
"react/no-danger": 0,
"react/require-default-props": 0,
"semi": ["error", "never"]
},
"plugins": [
"react-hooks"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment