Created
October 17, 2019 18:26
-
-
Save alexfinnarn/6b154f4d0387fe45d98df402608f97f7 to your computer and use it in GitHub Desktop.
Example .eslintrc.js file
This file contains 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
module.exports = { | |
parser: "babel-eslint", | |
env: { | |
browser: true, | |
node: true, | |
es6: true, | |
jest: true, | |
}, | |
extends: [ | |
"eslint:recommended", | |
"plugin:react/recommended", | |
"plugin:jsx-a11y/recommended" | |
], | |
plugins: [ | |
"react", | |
"react-hooks", | |
"jsx-a11y", | |
], | |
rules: { | |
strict: 0, | |
"react-hooks/rules-of-hooks": "error", | |
"react-hooks/exhaustive-deps": "warn" | |
}, | |
settings: { | |
react: { | |
version: "detect" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment