-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
94 lines (94 loc) · 2.49 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"amd": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:promise/recommended",
"plugin:sonarjs/recommended",
"plugin:jsx-a11y/recommended",
"prettier"
],
"plugins": [
"@typescript-eslint",
"react",
"simple-import-sort",
"react-hooks",
"promise",
"optimize-regex",
"sonarjs"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"no-unreachable": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"no-console": ["error", { "allow": ["debug", "warn"] }],
"sonarjs/no-identical-expressions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/no-static-element-interactions": "off",
"sonarjs/cognitive-complexity": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/no-unknown-property": ["error", { "ignore": ["css"] }],
"react/display-name": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": [
"off",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}
],
"@typescript-eslint/ban-ts-comment": "off",
"no-nested-template-literals": "off",
"sonarjs/no-nested-template-literals": "off",
"simple-import-sort/imports": [
"error",
{
"groups": [
["^\\u0000"],
["^react$", "^react-.*|$", "^@?\\w"],
["^(sections|pages|components)(/.*|$)"],
["^(store|hooks|utils|services)(/.*|$)"],
["^(styles|public|assets)(/.*|$)", ".*\\.module\\.scss|$", ".*\\.svg|$"],
["^\\.", "^(types)(/.*|$)"],
["^(data)(/.*|$)"]
]
}
],
"simple-import-sort/exports": "error",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}
]
},
"globals": {
"React": "writable"
}
}