Skip to content

Instantly share code, notes, and snippets.

@bwll
Last active June 29, 2019 21:09
Show Gist options
  • Save bwll/1a634c1778db8fd4db641c7e913b40f4 to your computer and use it in GitHub Desktop.
Save bwll/1a634c1778db8fd4db641c7e913b40f4 to your computer and use it in GitHub Desktop.
ESLint Config for 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"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment