Skip to content

Instantly share code, notes, and snippets.

@romanbsd
Created October 20, 2021 12:41
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 romanbsd/6acc1c89c5f2e2b4d03f02a71a418302 to your computer and use it in GitHub Desktop.
Save romanbsd/6acc1c89c5f2e2b4d03f02a71a418302 to your computer and use it in GitHub Desktop.
simple eslintrc for react
{
"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