eslint-plugin-react
React specific linting rules for eslint.
Installation
npm install --save-dev eslint-plugin-react
Configuration
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"plugin:react/recommended"
],
}