Skip to content

Instantly share code, notes, and snippets.

@alexfinnarn
Created October 17, 2019 18:26
Show Gist options
  • Save alexfinnarn/6b154f4d0387fe45d98df402608f97f7 to your computer and use it in GitHub Desktop.
Save alexfinnarn/6b154f4d0387fe45d98df402608f97f7 to your computer and use it in GitHub Desktop.
Example .eslintrc.js file
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