Last active
July 7, 2020 22:33
-
-
Save WalderlanSena/e3291210e03c0da9c98ee645838f8d41 to your computer and use it in GitHub Desktop.
Eslint React Config
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
Show hidden characters
{ | |
"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