-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.18 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
parserOptions: {
ecmaVersion: 2019,
},
env: {
es6: true,
},
extends: [
"eslint:recommended",
"eslint-config-airbnb",
"eslint-config-airbnb/hooks",
"eslint-config-gatsby-standard",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"eslint-config-prettier/react",
"eslint-config-with-prettier",
],
plugins: ["json", "react-hooks"],
rules: {
// "func-names": [
// "error",
// "never",
// ],
indent: ["error", 2],
// // Uncomment this if related styled components or other css-in-js stuff causes linting errors.
// "no-unused-expressions": ["error", { allowTaggedTemplates: true }],
// Object curly spacing setting here since neither eslint-config-with-prettier, nor Prettier VSCode extension handles this properly.
"object-curly-spacing": ["error", "never"],
quotes: [
"error",
"double",
{avoidEscape: true, allowTemplateLiterals: true},
],
semi: ["error", "never", {beforeStatementContinuationChars: "never"}],
// Begin: React Hooks
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// End: React Hooks
},
}