-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
47 lines (47 loc) · 1.41 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
{
"plugins": ["import", "simple-import-sort", "jest", "testing-library"],
"extends": [
"react-app",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:storybook/recommended"
],
"rules": {
"no-console": "warn",
"no-nested-ternary": "error",
"react/self-closing-comp": "warn",
"react/button-has-type": "warn",
"jest/no-focused-tests": "error",
"import/first": "error",
"import/no-duplicates": "error",
"import/namespace": "off",
"import/no-named-as-default": 0,
"simple-import-sort/imports": [
"error",
{
"groups": [
["^react", "^@?\\w"],
["^(@|@company|@ui|components|utils|config|vendored-lib)(/.*|$)"],
["^\\u0000"],
["^.+\\.s?css$"],
[
"^\\.\\.(?!/?$)",
"^\\.\\./?$",
"^\\./(?=.*/)(?!/?$)",
"^\\.(?!/?$)",
"^\\./?$"
]
]
}
],
"testing-library/prefer-user-event": "error",
"testing-library/no-await-sync-events": "error",
"testing-library/no-debugging-utils": "warn",
"testing-library/no-unnecessary-act": "error",
"testing-library/no-wait-for-multiple-assertions": "error",
"testing-library/prefer-screen-queries": "error",
"testing-library/no-promise-in-fire-event": "error",
"testing-library/prefer-find-by": "warn",
"testing-library/prefer-presence-queries": "warn"
}
}