Skip to content

Instantly share code, notes, and snippets.

@kjendrzyca
Created November 10, 2020 20:36
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 kjendrzyca/8bf82d7b28caf46537aca38d75ccc5b6 to your computer and use it in GitHub Desktop.
Save kjendrzyca/8bf82d7b28caf46537aca38d75ccc5b6 to your computer and use it in GitHub Desktop.
ESLint config
{
"extends": [
"react-app",
"airbnb",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"no-use-before-define": [2, { "functions": false }],
"no-underscore-dangle": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/no-noninteractive-element-interactions": 1,
"react/sort-prop-types": 2,
"react/jsx-sort-props": 1,
"react/no-did-mount-set-state": 0,
"react/no-did-update-set-state": 1,
"prettier/prettier": ["error", {
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false
}]
},
"env": {
"jest": true,
"browser": true
}
}
@kjendrzyca
Copy link
Author

Dev dependencies needed: eslint-config-airbnb, eslint-config-prettier, eslint-plugin-import, eslint-plugin-jsx-a11y, eslint-plugin-prettier, eslint-plugin-react, eslint-plugin-react-hooks, prettier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment