-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc
executable file
·100 lines (100 loc) · 2.42 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"parser": "@babel/eslint-parser",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended"
],
"plugins": ["react", "jsx-a11y"],
"env": {
"browser": true,
"node": true,
"jest": true,
"webextensions": true,
"es6": true
},
"globals": {
"Raven": true,
"globalThis": true
},
"rules": {
"no-undef": 2,
"no-unused-vars": [
1,
{
"ignoreRestSiblings": true
}
],
"react/button-has-type": 2,
"react/default-props-match-prop-types": 2,
"react/no-access-state-in-setstate": 2,
"react/no-direct-mutation-state": 2,
"react/jsx-curly-brace-presence": [
1,
{
"props": "never",
"children": "never"
}
],
"react/no-redundant-should-component-update": 1,
"react/no-string-refs": 2,
"react/no-typos": 1,
"react/no-unknown-property": 1,
"react/no-unused-prop-types": 0,
"react/no-unused-state": 1,
"react/prefer-stateless-function": 1,
"react/prop-types": 2,
"react/require-default-props": 0,
"react/require-render-return": 2,
"react/self-closing-comp": 1,
"react/sort-comp": 1,
"react/jsx-closing-bracket-location": 2,
"react/jsx-closing-tag-location": 2,
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-no-duplicate-props": [
2,
{
"ignoreCase": true
}
],
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"jsx-a11y/alt-text": 1,
"jsx-a11y/no-static-element-interactions": 2,
"react-hooks/rules-of-hooks": 1
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": 1,
"no-undef": 0,
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_" }
],
"no-unused-expressions": 0,
"@typescript-eslint/no-unused-expressions": ["error"]
}
},
{
"files": ["**/*.spec.js"],
"rules": {
"no-unused-expressions": "off"
}
},
{
"files": ["**/*.test.js"],
"rules": {
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0
}
}
]
}