@oxlint/migrate 1.33.0 → 1.35.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as rules_exports, n as preFixForJsPlugins, r as nurseryRules, t as src_default } from "../src-
|
|
2
|
+
import { i as rules_exports, n as preFixForJsPlugins, r as nurseryRules, t as src_default } from "../src-BZSZU3Et.mjs";
|
|
3
3
|
import { program } from "commander";
|
|
4
4
|
import { existsSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -40,7 +40,7 @@ const loadESLintConfig = async (filePath) => {
|
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region package.json
|
|
43
|
-
var version = "1.
|
|
43
|
+
var version = "1.35.0";
|
|
44
44
|
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/walker/comments/replaceRuleDirectiveComment.ts
|
package/dist/src/index.mjs
CHANGED
|
@@ -186,6 +186,7 @@ const pedanticRules = [
|
|
|
186
186
|
"max-lines-per-function",
|
|
187
187
|
"max-lines",
|
|
188
188
|
"max-nested-callbacks",
|
|
189
|
+
"no-inline-comments",
|
|
189
190
|
"no-loop-func",
|
|
190
191
|
"no-array-constructor",
|
|
191
192
|
"no-case-declarations",
|
|
@@ -251,6 +252,7 @@ const pedanticRules = [
|
|
|
251
252
|
"unicorn/escape-case",
|
|
252
253
|
"unicorn/explicit-length-check",
|
|
253
254
|
"unicorn/new-for-builtins",
|
|
255
|
+
"unicorn/no-immediate-mutation",
|
|
254
256
|
"unicorn/no-unnecessary-array-splice-count",
|
|
255
257
|
"unicorn/no-array-callback-reference",
|
|
256
258
|
"unicorn/no-unnecessary-array-flat-depth",
|
|
@@ -298,6 +300,7 @@ const pedanticRules = [
|
|
|
298
300
|
];
|
|
299
301
|
const styleRules = [
|
|
300
302
|
"arrow-body-style",
|
|
303
|
+
"capitalized-comments",
|
|
301
304
|
"curly",
|
|
302
305
|
"default-case-last",
|
|
303
306
|
"default-param-last",
|
|
@@ -308,6 +311,7 @@ const styleRules = [
|
|
|
308
311
|
"id-length",
|
|
309
312
|
"init-declarations",
|
|
310
313
|
"max-params",
|
|
314
|
+
"max-statements",
|
|
311
315
|
"new-cap",
|
|
312
316
|
"no-implicit-coercion",
|
|
313
317
|
"no-useless-computed-key",
|
|
@@ -385,6 +389,8 @@ const styleRules = [
|
|
|
385
389
|
"jest/prefer-strict-equal",
|
|
386
390
|
"jest/prefer-to-be",
|
|
387
391
|
"jest/prefer-to-contain",
|
|
392
|
+
"jest/prefer-to-have-been-called",
|
|
393
|
+
"jest/prefer-to-have-been-called-times",
|
|
388
394
|
"jest/prefer-to-have-length",
|
|
389
395
|
"jest/prefer-todo",
|
|
390
396
|
"jest/require-hook",
|
|
@@ -458,11 +464,13 @@ const styleRules = [
|
|
|
458
464
|
"unicorn/prefer-string-raw",
|
|
459
465
|
"unicorn/prefer-string-trim-start-end",
|
|
460
466
|
"unicorn/prefer-structured-clone",
|
|
467
|
+
"unicorn/require-module-attributes",
|
|
461
468
|
"unicorn/require-array-join-separator",
|
|
462
469
|
"unicorn/switch-case-braces",
|
|
463
470
|
"unicorn/text-encoding-identifier-case",
|
|
464
471
|
"unicorn/throw-new-error",
|
|
465
472
|
"vitest/no-import-node-test",
|
|
473
|
+
"vitest/prefer-called-times",
|
|
466
474
|
"vitest/prefer-to-be-falsy",
|
|
467
475
|
"vitest/prefer-to-be-object",
|
|
468
476
|
"vitest/prefer-to-be-truthy",
|
|
@@ -500,6 +508,7 @@ const styleRules = [
|
|
|
500
508
|
"vitest/no-test-prefixes",
|
|
501
509
|
"vitest/no-test-return-statement",
|
|
502
510
|
"vitest/prefer-each",
|
|
511
|
+
"vitest/prefer-called-with",
|
|
503
512
|
"vitest/prefer-comparison-matcher",
|
|
504
513
|
"vitest/prefer-equality-matcher",
|
|
505
514
|
"vitest/prefer-expect-resolves",
|
|
@@ -507,6 +516,7 @@ const styleRules = [
|
|
|
507
516
|
"vitest/prefer-hooks-on-top",
|
|
508
517
|
"vitest/prefer-lowercase-title",
|
|
509
518
|
"vitest/prefer-mock-promise-shorthand",
|
|
519
|
+
"vitest/prefer-spy-on",
|
|
510
520
|
"vitest/prefer-strict-equal",
|
|
511
521
|
"vitest/prefer-to-be",
|
|
512
522
|
"vitest/prefer-to-contain",
|
|
@@ -796,6 +806,7 @@ const correctnessRules = [
|
|
|
796
806
|
"react/no-is-mounted",
|
|
797
807
|
"react/no-render-return-value",
|
|
798
808
|
"react/no-string-refs",
|
|
809
|
+
"react/no-unsafe",
|
|
799
810
|
"react/void-dom-elements-no-children",
|
|
800
811
|
"@typescript-eslint/await-thenable",
|
|
801
812
|
"@typescript-eslint/no-floating-promises",
|
|
@@ -837,6 +848,7 @@ const correctnessRules = [
|
|
|
837
848
|
"unicorn/prefer-string-starts-ends-with",
|
|
838
849
|
"vitest/no-conditional-tests",
|
|
839
850
|
"vitest/require-local-test-context-for-concurrent-snapshots",
|
|
851
|
+
"vue/no-deprecated-destroyed-lifecycle",
|
|
840
852
|
"vue/no-export-in-script-setup",
|
|
841
853
|
"vue/prefer-import-from-vue",
|
|
842
854
|
"vue/valid-define-emits",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0",
|
|
4
4
|
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"lint-staged": "^16.1.2",
|
|
80
80
|
"next": "^16.0.0",
|
|
81
81
|
"oxfmt": "^0.18.0",
|
|
82
|
-
"oxlint": "^1.
|
|
82
|
+
"oxlint": "^1.35.0",
|
|
83
83
|
"oxlint-tsgolint": "^0.8.3",
|
|
84
84
|
"tsdown": "^0.18.0",
|
|
85
85
|
"typescript": "^5.8.3",
|