Skip to content

Instantly share code, notes, and snippets.

@chabgood
Created February 23, 2020 07:00
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 chabgood/3a4aba512931abe20a1c7bdd9b759c8b to your computer and use it in GitHub Desktop.
Save chabgood/3a4aba512931abe20a1c7bdd9b759c8b to your computer and use it in GitHub Desktop.
eslint config react
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"prettier",
"prettier/react"
],
"rules": {
"react/prop-types": 0,
"no-console": 1
},
"plugins": ["react", "import", "jsx-a11y"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
}
}
npm install -D babel-eslint eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment