-
Notifications
You must be signed in to change notification settings - Fork 23
/
.oxlintrc.json
126 lines (126 loc) · 3.97 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"categories": {
"correctness": "error",
"nursery": "off",
"pedantic": "error",
"perf": "error",
"restriction": "error",
"style": "error",
"suspicious": "error"
},
"plugins": [
"import",
"n",
"node",
"react-perf",
"react",
"security",
"tree_shaking",
"typescript",
"unicorn"
],
"overrides": [
{
"files": ["**/__stories__/**/*.{ts,tsx}", "**/__tests__/**/*.{ts,tsx}"],
"rules": {
"react/jsx-key": "off",
"no-console": "off",
"no-alert": "off"
}
},
{
"files": ["**/__tests__/**/*.{ts,tsx}", "setup.ts"],
"plugins": ["vitest"]
}
],
"rules": {
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/ban-tslint-comment": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/prefer-enum-initializers": "off",
"@typescript-eslint/prefer-function-type": "off",
"@typescript-eslint/prefer-literal-enum-member": "off",
"eslint/default-param-last": "off",
"eslint/max-lines": "off",
"eslint/max-params": "off",
"eslint/no-await-in-loop": "off",
"eslint/no-duplicate-imports": "off",
"eslint/no-empty-function": "off",
"eslint/no-magic-numbers": "off",
"eslint/no-ternary": "off",
"eslint/no-undefined": "off",
"eslint/sort-keys": "off",
"eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"eslint/require-await": "off",
"eslint/sort-imports": [
"error",
{
"ignoreDeclarationSort": true,
"memberSyntaxSortOrder": ["single", "multiple", "all", "none"]
}
],
"eslint/yoda": "error",
"import/no-namespace": "off",
"import/max-dependencies": "off",
"import/namespace": "off",
"import/no-default-export": "off",
"import/no-duplicates": "off",
"import/unambiguous": "off",
"react-perf/jsx-no-jsx-as-prop": "off",
"react-perf/jsx-no-new-array-as-prop": "off",
"react-perf/jsx-no-new-function-as-prop": "off",
"react-perf/jsx-no-new-object-as-prop": "off",
"react/jsx-no-useless-fragment": "off",
"react/iframe-missing-sandbox": "error",
"react/jsx-no-target-blank": "off",
"react/react-in-jsx-scope": "off",
"unicorn/error-message": "off",
"unicorn/filename-case": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-await-expression-member": "off",
"unicorn/no-await-in-promise-methods": "off",
"unicorn/no-lonely-if": "off",
"unicorn/prefer-set-has": "off",
"unicorn/no-invalid-remove-event-listener": "off",
"unicorn/no-negated-condition": "off",
"unicorn/no-new-array": "off",
"unicorn/no-null": "off",
"unicorn/no-object-as-default-parameter": "off",
"unicorn/no-process-exit": "off",
"unicorn/no-single-promise-in-promise-methods": "off",
"unicorn/no-useless-promise-resolve-reject": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/no-zero-fractions": "off",
"unicorn/number-literal-case": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-add-event-listener": "off",
"unicorn/prefer-array-some": "off",
"unicorn/prefer-blob-reading-methods": "off",
"unicorn/prefer-code-point": "off",
"unicorn/prefer-dom-node-append": "off",
"unicorn/prefer-dom-node-remove": "off",
"unicorn/prefer-logical-operator-over-ternary": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-string-replace-all": "off",
"unicorn/prefer-string-slice": "off"
},
"settings": {
"jsx-a11y": {
"components": {
"polymorphicPropName": "as"
}
},
"react": {}
}
}