@scaleway/oxlint-config 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configs/index.json +37 -39
- package/configs/react.json +8 -9
- package/configs/typescript.json +1 -1
- package/configs/vitest.json +30 -28
- package/package.json +4 -4
package/configs/index.json
CHANGED
|
@@ -1,41 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": [
|
|
4
|
-
"import",
|
|
5
|
-
"node",
|
|
6
|
-
"oxc",
|
|
7
|
-
"unicorn"
|
|
8
|
-
],
|
|
9
3
|
"categories": {
|
|
10
4
|
"correctness": "deny",
|
|
11
|
-
"
|
|
12
|
-
"suspicious": "deny",
|
|
13
|
-
"perf": "deny",
|
|
5
|
+
"nursery": "off",
|
|
14
6
|
"pedantic": "deny",
|
|
7
|
+
"perf": "deny",
|
|
15
8
|
"restriction": "deny",
|
|
16
|
-
"
|
|
9
|
+
"style": "deny",
|
|
10
|
+
"suspicious": "deny"
|
|
17
11
|
},
|
|
12
|
+
"plugins": ["import", "node", "oxc", "unicorn"],
|
|
18
13
|
"rules": {
|
|
19
|
-
"
|
|
14
|
+
"capitalized-comments": "off",
|
|
20
15
|
"eslint/array-callback-return": "error",
|
|
21
16
|
"eslint/constructor-super": "error",
|
|
22
17
|
"eslint/default-case-last": "error",
|
|
23
18
|
"eslint/default-param-last": "off",
|
|
24
19
|
"eslint/eqeqeq": "error",
|
|
25
20
|
"eslint/for-direction": "error",
|
|
21
|
+
"eslint/func-style": "off",
|
|
26
22
|
"eslint/getter-return": "error",
|
|
27
23
|
"eslint/guard-for-in": "error",
|
|
28
24
|
"eslint/id-length": "off",
|
|
25
|
+
"eslint/init-declarations": "off",
|
|
29
26
|
"eslint/max-classes-per-file": "error",
|
|
27
|
+
"eslint/max-depth": "off",
|
|
30
28
|
"eslint/max-lines": "off",
|
|
29
|
+
"eslint/max-lines-per-function": "off",
|
|
30
|
+
"eslint/max-nested-callbacks": "off",
|
|
31
31
|
"eslint/max-params": "off",
|
|
32
|
+
"eslint/max-statements": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
"max": 20
|
|
36
|
+
}
|
|
37
|
+
],
|
|
32
38
|
"eslint/new-cap": "off",
|
|
33
39
|
"eslint/no-array-constructor": "error",
|
|
34
40
|
"eslint/no-async-promise-executor": "error",
|
|
35
41
|
"eslint/no-await-in-loop": "off",
|
|
36
42
|
"eslint/no-bitwise": "error",
|
|
37
43
|
"eslint/no-caller": "error",
|
|
38
|
-
"eslint/no-implicit-coercion": ["error", { "allow": ["!!"] }],
|
|
39
44
|
"eslint/no-case-declarations": "error",
|
|
40
45
|
"eslint/no-class-assign": "error",
|
|
41
46
|
"eslint/no-compare-neg-zero": "error",
|
|
@@ -65,13 +70,16 @@
|
|
|
65
70
|
"eslint/no-fallthrough": "error",
|
|
66
71
|
"eslint/no-func-assign": "error",
|
|
67
72
|
"eslint/no-global-assign": "error",
|
|
73
|
+
"eslint/no-implicit-coercion": ["error", { "allow": ["!!"] }],
|
|
68
74
|
"eslint/no-import-assign": "error",
|
|
75
|
+
"eslint/no-inline-comments": "off",
|
|
69
76
|
"eslint/no-inner-declarations": "error",
|
|
70
77
|
"eslint/no-irregular-whitespace": "error",
|
|
71
78
|
"eslint/no-iterator": "error",
|
|
72
79
|
"eslint/no-loss-of-precision": "error",
|
|
73
80
|
"eslint/no-magic-numbers": "off",
|
|
74
81
|
"eslint/no-mixed-operators": "error",
|
|
82
|
+
"eslint/no-named-export": "off",
|
|
75
83
|
"eslint/no-new-native-nonconstructor": "error",
|
|
76
84
|
"eslint/no-new-symbol": "error",
|
|
77
85
|
"eslint/no-new-wrappers": "error",
|
|
@@ -109,8 +117,11 @@
|
|
|
109
117
|
"eslint/no-useless-rename": "error",
|
|
110
118
|
"eslint/no-var": "error",
|
|
111
119
|
"eslint/no-void": "error",
|
|
120
|
+
"eslint/no-warning-comments": "off",
|
|
112
121
|
"eslint/no-with": "error",
|
|
122
|
+
"eslint/prefer-destructuring": "off",
|
|
113
123
|
"eslint/radix": "error",
|
|
124
|
+
"eslint/react-in-jsx-scope": "off",
|
|
114
125
|
"eslint/require-await": "off",
|
|
115
126
|
"eslint/require-yield": "error",
|
|
116
127
|
"eslint/sort-imports": [
|
|
@@ -120,19 +131,10 @@
|
|
|
120
131
|
"memberSyntaxSortOrder": ["single", "multiple", "all", "none"]
|
|
121
132
|
}
|
|
122
133
|
],
|
|
134
|
+
"eslint/sort-keys": "off",
|
|
123
135
|
"eslint/unicode-bom": "error",
|
|
124
136
|
"eslint/use-isnan": "error",
|
|
125
137
|
"eslint/valid-typeof": "error",
|
|
126
|
-
"eslint/init-declarations": "off",
|
|
127
|
-
"eslint/func-style": "off",
|
|
128
|
-
"eslint/no-inline-comments": "off",
|
|
129
|
-
"eslint/max-lines-per-function": "off",
|
|
130
|
-
"eslint/max-nested-callbacks": "off",
|
|
131
|
-
"eslint/no-warning-comments": "off",
|
|
132
|
-
"eslint/max-depth": "off",
|
|
133
|
-
"eslint/prefer-destructuring": "off",
|
|
134
|
-
"eslint/react-in-jsx-scope": "off",
|
|
135
|
-
"eslint/sort-keys": "off",
|
|
136
138
|
"eslint/yoda": "error",
|
|
137
139
|
"import/consistent-type-specifier-style": "error",
|
|
138
140
|
"import/default": "error",
|
|
@@ -141,18 +143,15 @@
|
|
|
141
143
|
"import/group-exports": "off",
|
|
142
144
|
"import/import-no-namespace": "off",
|
|
143
145
|
"import/max-dependencies": "off",
|
|
144
|
-
"eslint/max-statements":["error", {
|
|
145
|
-
"max": 20
|
|
146
|
-
}],
|
|
147
146
|
"import/named": "error",
|
|
148
147
|
"import/namespace": "off",
|
|
149
148
|
"import/no-amd": "error",
|
|
150
149
|
"import/no-cycle": "error",
|
|
151
150
|
"import/no-default-export": "off",
|
|
152
151
|
"import/no-duplicates": "error",
|
|
153
|
-
"import/no-named-export": "off",
|
|
154
152
|
"import/no-named-as-default": "error",
|
|
155
153
|
"import/no-named-as-default-member": "error",
|
|
154
|
+
"import/no-named-export": "off",
|
|
156
155
|
"import/no-self-import": "error",
|
|
157
156
|
"import/no-unassigned-import": "error",
|
|
158
157
|
"import/no-unused-modules": "off",
|
|
@@ -161,18 +160,11 @@
|
|
|
161
160
|
"oxc/bad-bitwise-operator": "error",
|
|
162
161
|
"oxc/no-accumulating-spread": "off",
|
|
163
162
|
"oxc/no-async-await": "off",
|
|
164
|
-
"oxc/no-map-spread": "off",
|
|
165
163
|
"oxc/no-barrel-file": "off",
|
|
166
164
|
"oxc/no-const-enum": "error",
|
|
165
|
+
"oxc/no-map-spread": "off",
|
|
167
166
|
"oxc/no-optional-chaining": "off",
|
|
168
167
|
"oxc/no-rest-spread-properties": "off",
|
|
169
|
-
|
|
170
|
-
"unicorn/no-instanceof-builtins": "error",
|
|
171
|
-
"unicorn/prefer-array-index-of": "off",
|
|
172
|
-
"unicorn/prefer-array-find": "off",
|
|
173
|
-
"unicorn/no-for-loop": "off",
|
|
174
|
-
"unicorn/prefer-object-from-entries": "off",
|
|
175
|
-
"unicorn/prefer-global-this": "error",
|
|
176
168
|
"unicorn/catch-error-name": "error",
|
|
177
169
|
"unicorn/empty-brace-spaces": "error",
|
|
178
170
|
"unicorn/error-message": "off",
|
|
@@ -184,14 +176,17 @@
|
|
|
184
176
|
"unicorn/no-anonymous-default-export": "off",
|
|
185
177
|
"unicorn/no-array-for-each": "off",
|
|
186
178
|
"unicorn/no-array-reduce": "off",
|
|
179
|
+
"unicorn/no-array-sort": "off",
|
|
187
180
|
"unicorn/no-await-expression-member": "off",
|
|
188
181
|
"unicorn/no-await-in-promise-methods": "off",
|
|
189
|
-
"unicorn/prefer-set-has": "off",
|
|
190
182
|
"unicorn/no-console-spaces": "error",
|
|
191
183
|
"unicorn/no-document-cookie": "off",
|
|
192
184
|
"unicorn/no-empty-file": "error",
|
|
185
|
+
"unicorn/no-for-loop": "off",
|
|
193
186
|
"unicorn/no-hex-escape": "error",
|
|
194
187
|
"unicorn/no-instanceof-array": "error",
|
|
188
|
+
|
|
189
|
+
"unicorn/no-instanceof-builtins": "error",
|
|
195
190
|
"unicorn/no-invalid-remove-event-listener": "off",
|
|
196
191
|
"unicorn/no-lonely-if": "error",
|
|
197
192
|
"unicorn/no-magic-array-flat-depth": "off",
|
|
@@ -220,8 +215,10 @@
|
|
|
220
215
|
"unicorn/number-literal-case": "off",
|
|
221
216
|
"unicorn/numeric-separators-style": "off",
|
|
222
217
|
"unicorn/prefer-add-event-listener": "off",
|
|
218
|
+
"unicorn/prefer-array-find": "off",
|
|
223
219
|
"unicorn/prefer-array-flat": "error",
|
|
224
220
|
"unicorn/prefer-array-flat-map": "error",
|
|
221
|
+
"unicorn/prefer-array-index-of": "off",
|
|
225
222
|
"unicorn/prefer-array-some": "off",
|
|
226
223
|
"unicorn/prefer-blob-reading-methods": "off",
|
|
227
224
|
"unicorn/prefer-code-point": "off",
|
|
@@ -231,6 +228,7 @@
|
|
|
231
228
|
"unicorn/prefer-dom-node-remove": "off",
|
|
232
229
|
"unicorn/prefer-dom-node-text-content": "error",
|
|
233
230
|
"unicorn/prefer-event-target": "error",
|
|
231
|
+
"unicorn/prefer-global-this": "error",
|
|
234
232
|
"unicorn/prefer-includes": "error",
|
|
235
233
|
"unicorn/prefer-logical-operator-over-ternary": "off",
|
|
236
234
|
"unicorn/prefer-math-trunc": "error",
|
|
@@ -239,25 +237,25 @@
|
|
|
239
237
|
"unicorn/prefer-native-coercion-functions": "error",
|
|
240
238
|
"unicorn/prefer-node-protocol": "off",
|
|
241
239
|
"unicorn/prefer-number-properties": "error",
|
|
240
|
+
"unicorn/prefer-object-from-entries": "off",
|
|
242
241
|
"unicorn/prefer-optional-catch-binding": "error",
|
|
243
242
|
"unicorn/prefer-prototype-methods": "error",
|
|
244
243
|
"unicorn/prefer-query-selector": "off",
|
|
245
244
|
"unicorn/prefer-reflect-apply": "error",
|
|
246
245
|
"unicorn/prefer-regexp-test": "error",
|
|
246
|
+
"unicorn/prefer-set-has": "off",
|
|
247
247
|
"unicorn/prefer-set-size": "error",
|
|
248
248
|
"unicorn/prefer-spread": "error",
|
|
249
249
|
"unicorn/prefer-string-replace-all": "off",
|
|
250
250
|
"unicorn/prefer-string-slice": "off",
|
|
251
251
|
"unicorn/prefer-string-starts-ends-with": "error",
|
|
252
252
|
"unicorn/prefer-string-trim-start-end": "error",
|
|
253
|
+
"unicorn/prefer-top-level-await": "off",
|
|
253
254
|
"unicorn/prefer-type-error": "error",
|
|
254
255
|
"unicorn/require-array-join-separator": "error",
|
|
255
256
|
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
256
257
|
"unicorn/switch-case-braces": "error",
|
|
257
258
|
"unicorn/text-encoding-identifier-case": "error",
|
|
258
|
-
"unicorn/throw-new-error": "error"
|
|
259
|
-
"unicorn/prefer-top-level-await": "off",
|
|
260
|
-
"unicorn/no-array-sort": "off",
|
|
261
|
-
"capitalized-comments": "off"
|
|
259
|
+
"unicorn/throw-new-error": "error"
|
|
262
260
|
}
|
|
263
261
|
}
|
package/configs/react.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["react","jsx-a11y"],
|
|
4
3
|
"extends": ["./index.json"],
|
|
4
|
+
"plugins": ["react", "jsx-a11y"],
|
|
5
5
|
"rules": {
|
|
6
|
-
"react-perf/jsx-no-jsx-as-prop": "off",
|
|
7
|
-
"react-perf/jsx-no-new-array-as-prop": "off",
|
|
8
|
-
"react-perf/jsx-no-new-function-as-prop": "off",
|
|
9
|
-
"react-perf/jsx-no-new-object-as-prop": "off",
|
|
10
6
|
"react_perf/jsx-no-jsx-as-prop": "error",
|
|
11
7
|
"react_perf/jsx-no-new-array-as-prop": "error",
|
|
12
8
|
"react_perf/jsx-no-new-function-as-props": "error",
|
|
13
9
|
"react_perf/jsx-no-new-object-as-prop": "error",
|
|
10
|
+
"react-perf/jsx-no-jsx-as-prop": "off",
|
|
11
|
+
"react-perf/jsx-no-new-array-as-prop": "off",
|
|
12
|
+
"react-perf/jsx-no-new-function-as-prop": "off",
|
|
13
|
+
"react-perf/jsx-no-new-object-as-prop": "off",
|
|
14
14
|
"react/button-has-type": "error",
|
|
15
15
|
"react/exhaustive-deps": "error",
|
|
16
|
+
"react/iframe-missing-sandbox": "error",
|
|
16
17
|
"react/jsx-filename-extension": [
|
|
17
18
|
"error",
|
|
18
19
|
{
|
|
19
20
|
"extensions": [".jsx", ".tsx"]
|
|
20
21
|
}
|
|
21
22
|
],
|
|
22
|
-
"react/iframe-missing-sandbox": "error",
|
|
23
|
-
"react/jsx-key": "error",
|
|
24
23
|
"react/jsx-handler-names": "off",
|
|
24
|
+
"react/jsx-key": "error",
|
|
25
25
|
"react/jsx-no-comment-text-nodes": "error",
|
|
26
26
|
"react/jsx-no-duplicate-props": "error",
|
|
27
27
|
"react/jsx-no-target-blank": "off",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react/no-unescaped-entities": "error",
|
|
39
39
|
"react/no-unknown-property": "error",
|
|
40
40
|
"react/react-in-jsx-scope": "off",
|
|
41
|
-
"react/require-render-return": "error"
|
|
41
|
+
"react/require-render-return": "error"
|
|
42
42
|
},
|
|
43
43
|
"settings": {
|
|
44
44
|
"jsx-a11y": {
|
|
@@ -48,5 +48,4 @@
|
|
|
48
48
|
},
|
|
49
49
|
"react": {}
|
|
50
50
|
}
|
|
51
|
-
|
|
52
51
|
}
|
package/configs/typescript.json
CHANGED
package/configs/vitest.json
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
|
|
2
1
|
{
|
|
3
2
|
"$schema": "../node_modules/oxlint/configuration_schema.json",
|
|
4
|
-
"plugins": [],
|
|
5
3
|
"extends": ["./index.json"],
|
|
6
|
-
"overrides": [
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
4
|
+
"overrides": [
|
|
5
|
+
{
|
|
6
|
+
"files": [
|
|
7
|
+
"**/__tests__/**/*.{ts,tsx}",
|
|
8
|
+
"**/__mocks__/**/*.{ts,tsx}",
|
|
9
|
+
"**/*.test.{ts,tsx}",
|
|
10
|
+
"**/*.spec.{ts,tsx}"
|
|
11
|
+
],
|
|
12
|
+
"plugins": ["import", "oxc", "vitest"],
|
|
13
|
+
"rules": {
|
|
14
|
+
"@typescript-eslint/consistent-type-imports": "off",
|
|
15
|
+
"eslint/no-alert": "off",
|
|
16
|
+
"eslint/no-console": "off",
|
|
17
|
+
"import/export": "off",
|
|
18
|
+
"import/no-anonymous-default-export": "off",
|
|
19
|
+
"import/no-named-export": "off",
|
|
20
|
+
"import/no-namespace": "off",
|
|
21
|
+
"import/no-unassigned-import": "off",
|
|
22
|
+
"jsx_a11y/label-has-associated-control": "off",
|
|
23
|
+
"node/no-process-env": "off",
|
|
24
|
+
"react/jsx-pascal-case": "off",
|
|
25
|
+
"react/jsx-props-no-spreading": "off",
|
|
26
|
+
"react/only-export-components": "off",
|
|
27
|
+
"unicorn/no-array-callback-reference": "off",
|
|
28
|
+
"vitest/prefer-called-once": "error",
|
|
29
|
+
"vitest/prefer-called-times": "off",
|
|
30
|
+
"vitest/prefer-lowercase-title": "error"
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"plugins": []
|
|
33
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/oxlint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Scaleway's shareable configuration for oxlint",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxlint",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"./typescript": "./configs/typescript.json",
|
|
34
34
|
"./vitest": "./configs/vitest.json"
|
|
35
35
|
},
|
|
36
|
-
"
|
|
37
|
-
"oxlint": "1.
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"oxlint": "1.39.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"oxlint": "1.
|
|
40
|
+
"oxlint": "1.39.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"test": "echo \"Error: no test specified\" && exit 1"
|