-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
40 lines (40 loc) · 1.24 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
{
"extends": [
"airbnb-typescript-prettier",
"eslint:recommended",
"plugin:react/recommended"
],
"env": {
"browser": true,
"jest": true
},
"plugins": ["sonarjs", "import"],
"rules": {
"react/prop-types": 0,
"react/require-default-props": 0,
"react/destructuring-assignment": 0,
"react/static-property-placement": 0,
"jsx-a11y/alt-text": 0,
"react/jsx-props-no-spreading": 0,
"no-unused-vars": 0,
"no-magic-numbers": [
"error",
{ "ignoreArrayIndexes": true, "ignore": [1000, -1, 0, 1, 2, 3, 4, 5, 100, 90, 80, 70, 60, 50, 10] }
],
"arrow-body-style": ["error", "as-needed"],
"line-comment-position": ["error", { "position": "above" }],
"no-restricted-imports": ["error", { "patterns": [" * as"] }],
"arrow-parens": ["error", "as-needed"],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"sonarjs/prefer-immediate-return": "error",
"sonarjs/no-duplicate-string": "error",
"import/no-named-as-default": 0,
"no-underscore-dangle": ["error", { "allow": ["__typename"] }],
"no-case-declarations": "off"
},
"globals": {
"cy": true
}
}