@naturalcycles/dev-lib 20.14.1 → 20.16.0
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/cfg/eslint.config.js +2 -0
- package/cfg/lint-staged.config.js +1 -0
- package/cfg/oxlint.config.json +40 -33
- package/dist/lint.util.js +1 -1
- package/package.json +1 -1
package/cfg/eslint.config.js
CHANGED
|
@@ -136,6 +136,8 @@ function getConfig(_tsconfigPath) {
|
|
|
136
136
|
...eslintPrettierRules.rules, // disable eslint rules already covered by prettier
|
|
137
137
|
...eslintBiomeRules.rules, // disable eslint rules already covered by biome
|
|
138
138
|
...eslintPluginOxlint.configs['flat/all'][0].rules, // disable eslint rules already covered by oxlint
|
|
139
|
+
// rules that are disabled, but shouldn't yet be disabled
|
|
140
|
+
'@typescript-eslint/return-await': [2, 'always'],
|
|
139
141
|
},
|
|
140
142
|
}
|
|
141
143
|
}
|
package/cfg/oxlint.config.json
CHANGED
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
}
|
|
160
160
|
],
|
|
161
161
|
"unicorn/no-anonymous-default-export": 2,
|
|
162
|
+
"unicorn/no-immediate-mutation": 2,
|
|
162
163
|
"unicorn/no-array-reduce": 2,
|
|
163
164
|
"unicorn/no-document-cookie": 2,
|
|
164
165
|
"unicorn/no-length-as-slice-end": 2,
|
|
@@ -166,6 +167,7 @@
|
|
|
166
167
|
"unicorn/prefer-modern-math-apis": 2,
|
|
167
168
|
"unicorn/prefer-node-protocol": 2,
|
|
168
169
|
"unicorn/require-module-specifiers": 2,
|
|
170
|
+
"unicorn/require-module-attributes": 2,
|
|
169
171
|
"unicorn/prefer-classlist-toggle": 2,
|
|
170
172
|
"unicorn/no-unnecessary-array-splice-count": 2,
|
|
171
173
|
"unicorn/no-useless-error-capture-stack-trace": 2,
|
|
@@ -205,12 +207,12 @@
|
|
|
205
207
|
],
|
|
206
208
|
"unicorn/no-accessor-recursion": 2,
|
|
207
209
|
"unicorn/prefer-string-slice": 2,
|
|
208
|
-
"unicorn/no-unnecessary-array-flat-depth":
|
|
209
|
-
"unicorn/no-unnecessary-slice-end":
|
|
210
|
-
"unicorn/no-unreadable-array-destructuring":
|
|
211
|
-
"unicorn/no-unreadable-iife":
|
|
212
|
-
"unicorn/no-useless-collection-argument":
|
|
213
|
-
"unicorn/no-useless-promise-resolve-reject":
|
|
210
|
+
"unicorn/no-unnecessary-array-flat-depth": 2,
|
|
211
|
+
"unicorn/no-unnecessary-slice-end": 2,
|
|
212
|
+
"unicorn/no-unreadable-array-destructuring": 2,
|
|
213
|
+
"unicorn/no-unreadable-iife": 2,
|
|
214
|
+
"unicorn/no-useless-collection-argument": 2,
|
|
215
|
+
"unicorn/no-useless-promise-resolve-reject": 2,
|
|
214
216
|
"unicorn/numeric-separators-style": [
|
|
215
217
|
2,
|
|
216
218
|
{
|
|
@@ -234,24 +236,24 @@
|
|
|
234
236
|
}
|
|
235
237
|
],
|
|
236
238
|
"unicorn/prefer-add-event-listener": [2, {}],
|
|
237
|
-
"unicorn/prefer-array-index-of":
|
|
238
|
-
"unicorn/prefer-bigint-literals":
|
|
239
|
-
"unicorn/prefer-blob-reading-methods":
|
|
240
|
-
"unicorn/prefer-dom-node-append":
|
|
241
|
-
"unicorn/prefer-dom-node-dataset":
|
|
242
|
-
"unicorn/prefer-dom-node-remove":
|
|
243
|
-
"unicorn/prefer-dom-node-text-content":
|
|
244
|
-
"unicorn/prefer-event-target":
|
|
245
|
-
"unicorn/prefer-logical-operator-over-ternary":
|
|
246
|
-
"unicorn/prefer-modern-dom-apis":
|
|
247
|
-
"unicorn/prefer-native-coercion-functions":
|
|
239
|
+
"unicorn/prefer-array-index-of": 2,
|
|
240
|
+
"unicorn/prefer-bigint-literals": 2,
|
|
241
|
+
"unicorn/prefer-blob-reading-methods": 2,
|
|
242
|
+
"unicorn/prefer-dom-node-append": 2,
|
|
243
|
+
"unicorn/prefer-dom-node-dataset": 2,
|
|
244
|
+
"unicorn/prefer-dom-node-remove": 2,
|
|
245
|
+
"unicorn/prefer-dom-node-text-content": 2,
|
|
246
|
+
"unicorn/prefer-event-target": 2,
|
|
247
|
+
"unicorn/prefer-logical-operator-over-ternary": 2,
|
|
248
|
+
"unicorn/prefer-modern-dom-apis": 2,
|
|
249
|
+
"unicorn/prefer-native-coercion-functions": 2,
|
|
248
250
|
"unicorn/prefer-object-from-entries": [2, {}],
|
|
249
|
-
"unicorn/prefer-optional-catch-binding":
|
|
250
|
-
"unicorn/prefer-reflect-apply":
|
|
251
|
-
"unicorn/prefer-string-raw":
|
|
252
|
-
"unicorn/prefer-string-trim-start-end":
|
|
253
|
-
"unicorn/prefer-type-error":
|
|
254
|
-
"unicorn/require-array-join-separator":
|
|
251
|
+
"unicorn/prefer-optional-catch-binding": 2,
|
|
252
|
+
"unicorn/prefer-reflect-apply": 2,
|
|
253
|
+
"unicorn/prefer-string-raw": 2,
|
|
254
|
+
"unicorn/prefer-string-trim-start-end": 2,
|
|
255
|
+
"unicorn/prefer-type-error": 2,
|
|
256
|
+
"unicorn/require-array-join-separator": 2,
|
|
255
257
|
"unicorn/switch-case-braces": [2, "always"],
|
|
256
258
|
"unicorn/text-encoding-identifier-case": [
|
|
257
259
|
2,
|
|
@@ -259,18 +261,22 @@
|
|
|
259
261
|
"withDash": false
|
|
260
262
|
}
|
|
261
263
|
],
|
|
262
|
-
"vitest/no-duplicate-hooks":
|
|
263
|
-
"vitest/no-focused-tests":
|
|
264
|
-
"vitest/no-identical-title":
|
|
265
|
-
"vitest/no-test-return-statement":
|
|
266
|
-
"vitest/prefer-hooks-in-order":
|
|
267
|
-
"vitest/prefer-hooks-on-top":
|
|
268
|
-
"vitest/prefer-mock-promise-shorthand":
|
|
269
|
-
"vitest/prefer-to-have-length":
|
|
270
|
-
"vitest/require-to-throw-message":
|
|
264
|
+
"vitest/no-duplicate-hooks": 2,
|
|
265
|
+
"vitest/no-focused-tests": 2,
|
|
266
|
+
"vitest/no-identical-title": 2,
|
|
267
|
+
"vitest/no-test-return-statement": 2,
|
|
268
|
+
"vitest/prefer-hooks-in-order": 2,
|
|
269
|
+
"vitest/prefer-hooks-on-top": 2,
|
|
270
|
+
"vitest/prefer-mock-promise-shorthand": 2,
|
|
271
|
+
"vitest/prefer-to-have-length": 2,
|
|
272
|
+
"vitest/require-to-throw-message": 2,
|
|
271
273
|
"vitest/valid-describe-callback": 0,
|
|
272
274
|
"vitest/valid-expect": 0,
|
|
273
275
|
"vitest/no-import-node-test": 2,
|
|
276
|
+
"vitest/no-mocks-import": 2,
|
|
277
|
+
"vitest/prefer-spy-on": 2,
|
|
278
|
+
"vitest/prefer-to-be": 2,
|
|
279
|
+
"vitest/prefer-to-contain": 2,
|
|
274
280
|
"jest/consistent-test-it": [
|
|
275
281
|
2,
|
|
276
282
|
{
|
|
@@ -281,8 +287,9 @@
|
|
|
281
287
|
"jest/max-nested-describe": [0, { "max": 4 }], // not good
|
|
282
288
|
"jest/no-alias-methods": 2,
|
|
283
289
|
"vue/no-multiple-slot-args": 2,
|
|
290
|
+
"vue/no-deprecated-destroyed-lifecycle": 2,
|
|
284
291
|
"vue/define-emits-declaration": [2, "type-based"],
|
|
285
|
-
"vue/define-props-declaration":
|
|
292
|
+
"vue/define-props-declaration": 2
|
|
286
293
|
},
|
|
287
294
|
"settings": {
|
|
288
295
|
"jsdoc": {
|
package/dist/lint.util.js
CHANGED
|
@@ -140,7 +140,7 @@ export function runOxlint(fix = true) {
|
|
|
140
140
|
exec2.spawn(oxlintPath, {
|
|
141
141
|
name: ['oxlint', !fix && '--no-fix'].filter(Boolean).join(' '),
|
|
142
142
|
args: [
|
|
143
|
-
// '--report-unused-disable-directives',
|
|
143
|
+
// '--report-unused-disable-directives', // wrongly reports disabled eslint (not oxlint) rules
|
|
144
144
|
'--max-warnings=0',
|
|
145
145
|
'--type-aware',
|
|
146
146
|
'--type-check',
|