Skip to content

Instantly share code, notes, and snippets.

@LeilaniL
Last active April 26, 2021 22:08
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 LeilaniL/f95959d80ebba9b88566677d4d117bee to your computer and use it in GitHub Desktop.
Save LeilaniL/f95959d80ebba9b88566677d4d117bee to your computer and use it in GitHub Desktop.
ESLint config for React. Make sure to install eslint-plugin-react
{
"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