-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
63 lines (61 loc) · 1.29 KB
/
.eslintrc.json
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:prettier/recommended"
],
"overrides": [
{
"files": ["route.js"],
"rules": {
"import/prefer-default-export": "off"
}
},
{
"files": ["__tests__/*.t.js", "__tests__/*.test.js"],
"rules": {
"react/jsx-filename-extension": "off"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react"],
"rules": {
"react/react-in-jsx-scope": "off",
"react/jsx-curly-brace-presence": "off",
"react/prop-types": "warn",
"react/require-default-props": "off", // obsolete rule
"no-unused-vars": "warn",
"no-console": "warn",
"import/no-extraneous-dependencies": "off",
"no-plusplus": "off",
// https://stackoverflow.com/a/72643821
"import/extensions": [
"error",
"ignorePackages",
{
"": "never",
"js": "never",
"jsx": "never"
}
],
// https://github.com/firebase/firebase-admin-node/discussions/1359#discussioncomment-977900
"import/no-unresolved": [
"error",
{
"ignore": ["^@/.+"]
}
]
}
}