-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
81 lines (81 loc) · 1.62 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
{
"root": true,
"extends": [
"@markuplint-dev/eslint-config",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:testing-library/react"
],
"plugins": ["react", "react-hooks", "react-refresh", "testing-library", "vitest"],
"env": {
"browser": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": []
}
},
"rules": {
"@typescript-eslint/no-unused-vars": [2, { "argsIgnorePattern": "^_", "ignoreRestSiblings": true }],
"@typescript-eslint/prefer-readonly-parameter-types": [
1,
{
"allow": [
{ "from": "lib", "name": "URL" },
{ "from": "package", "package": "json-schema", "name": "JSONSchema7" },
{ "from": "package", "package": "json-schema", "name": "JSONSchema7Definition" }
],
"checkParameterProperties": false,
"ignoreInferredTypes": true
}
],
"react/display-name": 0,
"react/prop-types": 0,
"react-refresh/only-export-components": "warn"
},
"globals": {
"React": true,
"JSX": true
},
"overrides": [
{
"files": ["./*.js"],
"rules": {
"@typescript-eslint/no-var-requires": 0
}
},
{
"files": ["./*.mjs"],
"rules": {
"import/no-named-as-default-member": 0
}
},
{
"files": ["./**/*.tsx"],
"rules": {
"unicorn/filename-case": 0
}
},
{
"files": ["./**/*.spec.ts", "./**/*.spec.tsx"],
"rules": {
"testing-library/prefer-user-event": 2,
"testing-library/no-manual-cleanup": 0
}
},
{
"files": ["./vitest.config.ts"],
"rules": {
"import/no-default-export": 0
}
}
]
}