oxlint-config-presets 0.1.9 → 0.1.11
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/@antfu.json +20 -0
- package/@eslint/all.json +5 -0
- package/@typescript-eslint/all.json +1 -0
- package/@typescript-eslint/recommended-type-checked.json +1 -0
- package/@typescript-eslint/strict-type-checked.json +1 -0
- package/@vitest/all.json +1 -0
- package/README.md +199 -203
- package/airbnb/base.json +17 -0
- package/airbnb/legacy.json +9 -0
- package/airbnb/whitespace.json +61 -0
- package/airbnb.json +61 -0
- package/alloy/react.json +2 -0
- package/alloy/typescript.json +1 -0
- package/alloy.json +5 -0
- package/eslint/base.json +6 -0
- package/eslint.json +6 -0
- package/hardcore.json +19 -0
- package/jsdoc/recommended-error.json +4 -1
- package/jsdoc/recommended-tsdoc-error.json +4 -1
- package/jsdoc/recommended-tsdoc.json +4 -1
- package/jsdoc/recommended-typescript-error.json +4 -1
- package/jsdoc/recommended-typescript-flavor-error.json +4 -1
- package/jsdoc/recommended-typescript-flavor.json +4 -1
- package/jsdoc/recommended-typescript.json +4 -1
- package/jsdoc/recommended.json +4 -1
- package/jsx-a11y/recommended.json +57 -0
- package/jsx-a11y/strict.json +29 -0
- package/package.json +1 -1
- package/problems.json +6 -1
- package/react/all.json +2 -0
- package/react-hooks/recommended-latest.json +7 -0
- package/standard.json +7 -0
- package/wikimedia.json +5 -0
- package/xo.json +15 -0
package/@antfu.json
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"no-fallthrough": "error",
|
|
62
62
|
"no-func-assign": "error",
|
|
63
63
|
"no-global-assign": "error",
|
|
64
|
+
"no-implied-eval": "error",
|
|
64
65
|
"no-import-assign": "error",
|
|
65
66
|
"no-invalid-regexp": "off",
|
|
66
67
|
"no-irregular-whitespace": "error",
|
|
@@ -191,6 +192,13 @@
|
|
|
191
192
|
"ignoreConstructors": false
|
|
192
193
|
}
|
|
193
194
|
],
|
|
195
|
+
"prefer-arrow-callback": [
|
|
196
|
+
"error",
|
|
197
|
+
{
|
|
198
|
+
"allowNamedFunctions": false,
|
|
199
|
+
"allowUnboundThis": true
|
|
200
|
+
}
|
|
201
|
+
],
|
|
194
202
|
"prefer-const": [
|
|
195
203
|
"error",
|
|
196
204
|
{
|
|
@@ -200,6 +208,12 @@
|
|
|
200
208
|
],
|
|
201
209
|
"prefer-exponentiation-operator": "error",
|
|
202
210
|
"prefer-promise-reject-errors": "error",
|
|
211
|
+
"prefer-regex-literals": [
|
|
212
|
+
"error",
|
|
213
|
+
{
|
|
214
|
+
"disallowRedundantWrapping": true
|
|
215
|
+
}
|
|
216
|
+
],
|
|
203
217
|
"prefer-rest-params": "error",
|
|
204
218
|
"prefer-spread": "error",
|
|
205
219
|
"prefer-template": "error",
|
|
@@ -225,6 +239,12 @@
|
|
|
225
239
|
"import/no-duplicates": "error",
|
|
226
240
|
"import/no-mutable-exports": "error",
|
|
227
241
|
"import/no-named-default": "error",
|
|
242
|
+
"import/newline-after-import": [
|
|
243
|
+
"error",
|
|
244
|
+
{
|
|
245
|
+
"count": 1
|
|
246
|
+
}
|
|
247
|
+
],
|
|
228
248
|
"unicorn/consistent-empty-array-spread": "error",
|
|
229
249
|
"unicorn/error-message": "error",
|
|
230
250
|
"unicorn/escape-case": "error",
|
package/@eslint/all.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"grouped-accessor-pairs": "error",
|
|
26
26
|
"guard-for-in": "error",
|
|
27
27
|
"id-length": "error",
|
|
28
|
+
"id-match": "error",
|
|
28
29
|
"init-declarations": "error",
|
|
29
30
|
"logical-assignment-operators": "error",
|
|
30
31
|
"max-classes-per-file": "error",
|
|
@@ -77,6 +78,8 @@
|
|
|
77
78
|
"no-func-assign": "error",
|
|
78
79
|
"no-global-assign": "error",
|
|
79
80
|
"no-implicit-coercion": "error",
|
|
81
|
+
"no-implicit-globals": "error",
|
|
82
|
+
"no-implied-eval": "error",
|
|
80
83
|
"no-import-assign": "error",
|
|
81
84
|
"no-inline-comments": "error",
|
|
82
85
|
"no-inner-declarations": "error",
|
|
@@ -158,6 +161,7 @@
|
|
|
158
161
|
"no-with": "error",
|
|
159
162
|
"object-shorthand": "error",
|
|
160
163
|
"operator-assignment": "error",
|
|
164
|
+
"prefer-arrow-callback": "error",
|
|
161
165
|
"prefer-const": "error",
|
|
162
166
|
"prefer-destructuring": "error",
|
|
163
167
|
"prefer-exponentiation-operator": "error",
|
|
@@ -165,6 +169,7 @@
|
|
|
165
169
|
"prefer-object-has-own": "error",
|
|
166
170
|
"prefer-object-spread": "error",
|
|
167
171
|
"prefer-promise-reject-errors": "error",
|
|
172
|
+
"prefer-regex-literals": "error",
|
|
168
173
|
"prefer-rest-params": "error",
|
|
169
174
|
"prefer-spread": "error",
|
|
170
175
|
"prefer-template": "error",
|
package/@vitest/all.json
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"vitest/no-test-prefixes": "warn",
|
|
31
31
|
"vitest/no-test-return-statement": "warn",
|
|
32
32
|
"vitest/no-unneeded-async-expect-function": "warn",
|
|
33
|
+
"vitest/padding-around-after-all-blocks": "warn",
|
|
33
34
|
"vitest/prefer-called-exactly-once-with": "warn",
|
|
34
35
|
"vitest/prefer-called-once": "off",
|
|
35
36
|
"vitest/prefer-called-times": "warn",
|