@oxlint/migrate 1.33.0 → 1.34.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-MX2M8fZn.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.34.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",
|
|
@@ -298,6 +299,7 @@ const pedanticRules = [
|
|
|
298
299
|
];
|
|
299
300
|
const styleRules = [
|
|
300
301
|
"arrow-body-style",
|
|
302
|
+
"capitalized-comments",
|
|
301
303
|
"curly",
|
|
302
304
|
"default-case-last",
|
|
303
305
|
"default-param-last",
|
|
@@ -385,6 +387,8 @@ const styleRules = [
|
|
|
385
387
|
"jest/prefer-strict-equal",
|
|
386
388
|
"jest/prefer-to-be",
|
|
387
389
|
"jest/prefer-to-contain",
|
|
390
|
+
"jest/prefer-to-have-been-called",
|
|
391
|
+
"jest/prefer-to-have-been-called-times",
|
|
388
392
|
"jest/prefer-to-have-length",
|
|
389
393
|
"jest/prefer-todo",
|
|
390
394
|
"jest/require-hook",
|
|
@@ -500,6 +504,7 @@ const styleRules = [
|
|
|
500
504
|
"vitest/no-test-prefixes",
|
|
501
505
|
"vitest/no-test-return-statement",
|
|
502
506
|
"vitest/prefer-each",
|
|
507
|
+
"vitest/prefer-called-with",
|
|
503
508
|
"vitest/prefer-comparison-matcher",
|
|
504
509
|
"vitest/prefer-equality-matcher",
|
|
505
510
|
"vitest/prefer-expect-resolves",
|
|
@@ -507,6 +512,7 @@ const styleRules = [
|
|
|
507
512
|
"vitest/prefer-hooks-on-top",
|
|
508
513
|
"vitest/prefer-lowercase-title",
|
|
509
514
|
"vitest/prefer-mock-promise-shorthand",
|
|
515
|
+
"vitest/prefer-spy-on",
|
|
510
516
|
"vitest/prefer-strict-equal",
|
|
511
517
|
"vitest/prefer-to-be",
|
|
512
518
|
"vitest/prefer-to-contain",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.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.34.0",
|
|
83
83
|
"oxlint-tsgolint": "^0.8.3",
|
|
84
84
|
"tsdown": "^0.18.0",
|
|
85
85
|
"typescript": "^5.8.3",
|