-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.json
70 lines (70 loc) · 1.84 KB
/
.eslintrc.json
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
{
"env": {"browser": true, "es6": true, "node": true},
"extends": [
"react-app",
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:testing-library/react",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:storybook/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {"jsx": true},
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"import",
"flowtype",
"jsx-a11y",
"react",
"react-hooks",
"testing-library",
"@typescript-eslint"
],
"rules": {
"no-useless-computed-key": "off",
"no-useless-rename": "off",
"import/no-unresolved": "off",
"no-extra-boolean-cast": "off",
"no-prototype-builtins": "off",
"no-case-declarations": "off",
"testing-library/no-await-sync-events": "warn",
"testing-library/no-wait-for-snapshot": "error",
"testing-library/prefer-explicit-assert": "warn",
"testing-library/prefer-presence-queries": "error",
"testing-library/prefer-screen-queries": "error",
"testing-library/prefer-wait-for": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-explicit-any": [
"error",
{
"ignoreRestArgs": true
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
},
"overrides": [
{
// story files and test files
"files": ["**/*.stories*"],
"rules": {
"import/no-anonymous-default-export": "off",
"testing-library/no-node-access": "off"
}
}
]
}