-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
.eslintrc
72 lines (72 loc) · 2.09 KB
/
.eslintrc
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
64
65
66
67
68
69
70
71
72
{
"extends": ["eslint-config-airbnb", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"createDefaultProgram": true
},
"env": {
"browser": true,
"node": true,
"jest/globals": true
},
"plugins": ["@typescript-eslint", "react", "react-hooks", "jsx-a11y", "import", "jest"],
"globals": {
"importScripts": true,
"workbox": true,
"__TEST__": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"@typescript-eslint/no-unused-vars": 2,
"global-require": 0,
"implicit-arrow-linebreak": 0,
"import/extensions": [
2,
{
"ts": "never",
"tsx": "never",
"js": "never",
"jsx": "never"
}
],
"indent": [
2,
4,
{
"SwitchCase": 1
}
],
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/interactive-supports-focus": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"jsx-a11y/no-noninteractive-element-to-interactive-role": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-script-url": 0,
"no-underscore-dangle": 0,
"object-curly-newline": 0,
"react/jsx-filename-extension": [
2,
{
"extensions": [".js", ".jsx", ".tsx"]
}
],
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"react/jsx-props-no-spreading": 0,
"react/jsx-one-expression-per-line": 0,
"react/static-property-placement": 0,
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": 0,
"react/require-default-props": [2, { "ignoreFunctionalComponents": true }],
"import/prefer-default-export": 0,
"prefer-promise-reject-errors": "off"
}
}