Last active
April 26, 2021 22:08
-
-
Save LeilaniL/f95959d80ebba9b88566677d4d117bee to your computer and use it in GitHub Desktop.
ESLint config for React. Make sure to install eslint-plugin-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
{ | |
"parserOptions": { | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended" | |
], | |
"env": { | |
"es6": true, | |
"browser": true, | |
"jquery": true, | |
"node": true | |
}, | |
"rules": { | |
"semi": 1, | |
"indent": [ | |
"warn", | |
2 | |
], | |
"no-console": "warn", | |
"no-debugger": "warn" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment