-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy path.oxlintrc.json
71 lines (71 loc) · 1.5 KB
/
.oxlintrc.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
71
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"react",
"typescript"
],
"categories": {
"correctness": "off"
},
"env": {
"builtin": true
},
"rules": {
"curly": "error",
"default-case": "error",
"default-case-last": "error",
"eqeqeq": [
"error",
"smart"
],
"no-async-promise-executor": "off",
"no-case-declarations": "off",
"no-duplicate-imports": "off",
"no-prototype-builtins": "off",
"no-redeclare": "error",
"no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"no-var": "error",
"react/no-unescaped-entities": "off",
"react/jsx-key": [
"error",
{
"checkFragmentShorthand": true
}
],
"react/no-array-index-key": "error",
"react/self-closing-comp": "error",
"react-hooks/rules-of-hooks": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "array",
"readonly": "array"
}
],
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-definitions": [
"error",
"interface"
],
"@typescript-eslint/no-empty-interface": [
"error",
{
"allowSingleExtends": true
}
],
"@typescript-eslint/no-namespace": [
"error",
{
"allowDeclarations": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"react/no-find-dom-node": "off",
"no-empty-function": "off"
}
}