Created
October 20, 2021 12:41
-
-
Save romanbsd/6acc1c89c5f2e2b4d03f02a71a418302 to your computer and use it in GitHub Desktop.
simple eslintrc for react
This file contains 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
{ | |
"env": { | |
"es6": true, | |
"node": true, | |
"browser": true | |
}, | |
"parser": "@babel/eslint-parser", | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"requireConfigFile": false, | |
"babelOptions": { | |
"presets": ["@babel/preset-react"], | |
"plugins": [ | |
[ "@babel/plugin-proposal-decorators", { "legacy": true } ] | |
] | |
}, | |
"ecmaFeatures": { | |
"experimentalObjectRestSpread": true, | |
"jsx": true | |
}, | |
"sourceType": "module" | |
}, | |
"plugins": ["react"], | |
"rules": { | |
"react/jsx-uses-vars": 1, | |
"react/jsx-uses-react": 1, | |
"react/react-in-jsx-scope": 1, | |
"no-console": 0, | |
"no-case-declarations": 0, | |
"quotes": ["error", "single"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment