@oxlint/migrate 1.34.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
|
@@ -252,6 +252,7 @@ const pedanticRules = [
|
|
|
252
252
|
"unicorn/escape-case",
|
|
253
253
|
"unicorn/explicit-length-check",
|
|
254
254
|
"unicorn/new-for-builtins",
|
|
255
|
+
"unicorn/no-immediate-mutation",
|
|
255
256
|
"unicorn/no-unnecessary-array-splice-count",
|
|
256
257
|
"unicorn/no-array-callback-reference",
|
|
257
258
|
"unicorn/no-unnecessary-array-flat-depth",
|
|
@@ -310,6 +311,7 @@ const styleRules = [
|
|
|
310
311
|
"id-length",
|
|
311
312
|
"init-declarations",
|
|
312
313
|
"max-params",
|
|
314
|
+
"max-statements",
|
|
313
315
|
"new-cap",
|
|
314
316
|
"no-implicit-coercion",
|
|
315
317
|
"no-useless-computed-key",
|
|
@@ -462,11 +464,13 @@ const styleRules = [
|
|
|
462
464
|
"unicorn/prefer-string-raw",
|
|
463
465
|
"unicorn/prefer-string-trim-start-end",
|
|
464
466
|
"unicorn/prefer-structured-clone",
|
|
467
|
+
"unicorn/require-module-attributes",
|
|
465
468
|
"unicorn/require-array-join-separator",
|
|
466
469
|
"unicorn/switch-case-braces",
|
|
467
470
|
"unicorn/text-encoding-identifier-case",
|
|
468
471
|
"unicorn/throw-new-error",
|
|
469
472
|
"vitest/no-import-node-test",
|
|
473
|
+
"vitest/prefer-called-times",
|
|
470
474
|
"vitest/prefer-to-be-falsy",
|
|
471
475
|
"vitest/prefer-to-be-object",
|
|
472
476
|
"vitest/prefer-to-be-truthy",
|
|
@@ -802,6 +806,7 @@ const correctnessRules = [
|
|
|
802
806
|
"react/no-is-mounted",
|
|
803
807
|
"react/no-render-return-value",
|
|
804
808
|
"react/no-string-refs",
|
|
809
|
+
"react/no-unsafe",
|
|
805
810
|
"react/void-dom-elements-no-children",
|
|
806
811
|
"@typescript-eslint/await-thenable",
|
|
807
812
|
"@typescript-eslint/no-floating-promises",
|
|
@@ -843,6 +848,7 @@ const correctnessRules = [
|
|
|
843
848
|
"unicorn/prefer-string-starts-ends-with",
|
|
844
849
|
"vitest/no-conditional-tests",
|
|
845
850
|
"vitest/require-local-test-context-for-concurrent-snapshots",
|
|
851
|
+
"vue/no-deprecated-destroyed-lifecycle",
|
|
846
852
|
"vue/no-export-in-script-setup",
|
|
847
853
|
"vue/prefer-import-from-vue",
|
|
848
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",
|