Created
November 10, 2020 20:36
-
-
Save kjendrzyca/8bf82d7b28caf46537aca38d75ccc5b6 to your computer and use it in GitHub Desktop.
ESLint config
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
{ | |
"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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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