Created
February 23, 2020 07:00
-
-
Save chabgood/3a4aba512931abe20a1c7bdd9b759c8b to your computer and use it in GitHub Desktop.
eslint config react
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
{ | |
"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