Skip to content

Instantly share code, notes, and snippets.

@WalderlanSena
Last active July 7, 2020 22:33
Show Gist options
  • Save WalderlanSena/e3291210e03c0da9c98ee645838f8d41 to your computer and use it in GitHub Desktop.
Save WalderlanSena/e3291210e03c0da9c98ee645838f8d41 to your computer and use it in GitHub Desktop.
Eslint React Config
{
"env": {
"es2020": true
},
"extends": [
"plugin:react/recommended",
"plugin:prettier/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"react",
"react-hooks",
"prettier"
],
"rules": {
"prettier/prettier": "error",
"import/no-dynamic-require": "off",
"no-param-reassign": "off",
"no-unused-expressions": "off",
"no-underscore-dangle": "off",
"react/prop-types": "off",
"jsx-a11y/label-has-for": "off",
"import/prefer-default-export": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"no-console": "off"
},
"globals": {
"__CLIENT__": true,
"__SERVER__": true,
"__DEV__": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment