@oxlint/migrate 1.67.0 → 1.68.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 { a as nurseryRules, i as buildUnsupportedRuleExplanations, n as preFixForJsPlugins, o as rules_exports, r as isOffValue, s as normalizeRuleToCanonical, t as main } from "../src-
|
|
2
|
+
import { a as nurseryRules, i as buildUnsupportedRuleExplanations, n as preFixForJsPlugins, o as rules_exports, r as isOffValue, s as normalizeRuleToCanonical, t as main } from "../src-DFohD9q9.mjs";
|
|
3
3
|
import { program } from "commander";
|
|
4
4
|
import { existsSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -30,7 +30,7 @@ const loadESLintConfig = async (filePath) => {
|
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region package.json
|
|
33
|
-
var version = "1.
|
|
33
|
+
var version = "1.68.0";
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/walker/comments/replaceRuleDirectiveComment.ts
|
|
36
36
|
const allRulesSet = new Set(Object.values(rules_exports).flat());
|
package/dist/src/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/oxlint@1.
|
|
1
|
+
//#region node_modules/.pnpm/oxlint@1.68.0_oxlint-tsgolint@0.23.0/node_modules/oxlint/dist/index.d.ts
|
|
2
2
|
//#region src-js/package/config.generated.d.ts
|
|
3
3
|
type AllowWarnDeny = ("allow" | "off" | "warn" | "error" | "deny") | number;
|
|
4
4
|
type GlobalValue = "readonly" | "writable" | "off";
|
|
@@ -451,6 +451,16 @@ interface OxlintOverride {
|
|
|
451
451
|
* Environments enable and disable collections of global variables.
|
|
452
452
|
*/
|
|
453
453
|
env?: OxlintEnv;
|
|
454
|
+
/**
|
|
455
|
+
* A list of glob patterns to exclude from this override.
|
|
456
|
+
*
|
|
457
|
+
* Files matching these patterns are not globally ignored; this override
|
|
458
|
+
* simply does not apply to them.
|
|
459
|
+
*
|
|
460
|
+
* ## Example
|
|
461
|
+
* `[ "*.generated.ts", "fixtures/**" ]`
|
|
462
|
+
*/
|
|
463
|
+
excludeFiles?: GlobSet;
|
|
454
464
|
/**
|
|
455
465
|
* A list of glob patterns to override.
|
|
456
466
|
*
|
|
@@ -618,6 +628,7 @@ interface DummyRuleMap {
|
|
|
618
628
|
"jsdoc/require-throws-description"?: DummyRule;
|
|
619
629
|
"jsdoc/require-throws-type"?: DummyRule;
|
|
620
630
|
"jsdoc/require-yields"?: DummyRule;
|
|
631
|
+
"jsdoc/require-yields-description"?: DummyRule;
|
|
621
632
|
"jsdoc/require-yields-type"?: DummyRule;
|
|
622
633
|
"jsx-a11y/alt-text"?: DummyRule;
|
|
623
634
|
"jsx-a11y/anchor-ambiguous-text"?: DummyRule;
|
|
@@ -847,6 +858,7 @@ interface DummyRuleMap {
|
|
|
847
858
|
"prefer-const"?: DummyRule;
|
|
848
859
|
"prefer-destructuring"?: DummyRule;
|
|
849
860
|
"prefer-exponentiation-operator"?: DummyRule;
|
|
861
|
+
"prefer-named-capture-group"?: DummyRule;
|
|
850
862
|
"prefer-numeric-literals"?: DummyRule;
|
|
851
863
|
"prefer-object-has-own"?: DummyRule;
|
|
852
864
|
"prefer-object-spread"?: DummyRule;
|
|
@@ -963,6 +975,7 @@ interface DummyRuleMap {
|
|
|
963
975
|
"typescript/explicit-function-return-type"?: DummyRule;
|
|
964
976
|
"typescript/explicit-member-accessibility"?: DummyRule;
|
|
965
977
|
"typescript/explicit-module-boundary-types"?: DummyRule;
|
|
978
|
+
"typescript/method-signature-style"?: DummyRule;
|
|
966
979
|
"typescript/no-array-delete"?: DummyRule;
|
|
967
980
|
"typescript/no-base-to-string"?: DummyRule;
|
|
968
981
|
"typescript/no-confusing-non-null-assertion"?: DummyRule;
|
|
@@ -1261,6 +1274,7 @@ interface DummyRuleMap {
|
|
|
1261
1274
|
"vitest/valid-expect-in-promise"?: DummyRule;
|
|
1262
1275
|
"vitest/valid-title"?: DummyRule;
|
|
1263
1276
|
"vitest/warn-todo"?: DummyRule;
|
|
1277
|
+
"vue/component-definition-name-casing"?: DummyRule;
|
|
1264
1278
|
"vue/define-emits-declaration"?: DummyRule;
|
|
1265
1279
|
"vue/define-props-declaration"?: DummyRule;
|
|
1266
1280
|
"vue/define-props-destructuring"?: DummyRule;
|
|
@@ -1280,11 +1294,13 @@ interface DummyRuleMap {
|
|
|
1280
1294
|
"vue/no-lifecycle-after-await"?: DummyRule;
|
|
1281
1295
|
"vue/no-multiple-slot-args"?: DummyRule;
|
|
1282
1296
|
"vue/no-required-prop-with-default"?: DummyRule;
|
|
1297
|
+
"vue/no-reserved-component-names"?: DummyRule;
|
|
1283
1298
|
"vue/no-shared-component-data"?: DummyRule;
|
|
1284
1299
|
"vue/no-this-in-before-route-enter"?: DummyRule;
|
|
1285
1300
|
"vue/no-watch-after-await"?: DummyRule;
|
|
1286
1301
|
"vue/prefer-import-from-vue"?: DummyRule;
|
|
1287
1302
|
"vue/require-default-export"?: DummyRule;
|
|
1303
|
+
"vue/require-prop-type-constructor"?: DummyRule;
|
|
1288
1304
|
"vue/require-render-return"?: DummyRule;
|
|
1289
1305
|
"vue/require-slots-as-functions"?: DummyRule;
|
|
1290
1306
|
"vue/require-typed-ref"?: DummyRule;
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as main } from "../src-
|
|
1
|
+
import { t as main } from "../src-DFohD9q9.mjs";
|
|
2
2
|
export { main as default };
|
|
@@ -570,6 +570,7 @@ const styleRules = [
|
|
|
570
570
|
"prefer-const",
|
|
571
571
|
"prefer-destructuring",
|
|
572
572
|
"prefer-exponentiation-operator",
|
|
573
|
+
"prefer-named-capture-group",
|
|
573
574
|
"prefer-numeric-literals",
|
|
574
575
|
"prefer-object-has-own",
|
|
575
576
|
"prefer-object-spread",
|
|
@@ -642,6 +643,7 @@ const styleRules = [
|
|
|
642
643
|
"jest/require-hook",
|
|
643
644
|
"jest/require-top-level-describe",
|
|
644
645
|
"jsdoc/require-throws-description",
|
|
646
|
+
"jsdoc/require-yields-description",
|
|
645
647
|
"node/callback-return",
|
|
646
648
|
"node/global-require",
|
|
647
649
|
"node/no-exports-assign",
|
|
@@ -676,6 +678,7 @@ const styleRules = [
|
|
|
676
678
|
"typescript/consistent-type-exports",
|
|
677
679
|
"typescript/consistent-type-imports",
|
|
678
680
|
"typescript/dot-notation",
|
|
681
|
+
"typescript/method-signature-style",
|
|
679
682
|
"typescript/no-empty-interface",
|
|
680
683
|
"typescript/no-inferrable-types",
|
|
681
684
|
"typescript/no-unnecessary-qualifier",
|
|
@@ -786,6 +789,7 @@ const styleRules = [
|
|
|
786
789
|
"vitest/prefer-todo",
|
|
787
790
|
"vitest/require-hook",
|
|
788
791
|
"vitest/require-top-level-describe",
|
|
792
|
+
"vue/component-definition-name-casing",
|
|
789
793
|
"vue/define-emits-declaration",
|
|
790
794
|
"vue/define-props-declaration",
|
|
791
795
|
"vue/define-props-destructuring",
|
|
@@ -1177,10 +1181,12 @@ const correctnessRules = [
|
|
|
1177
1181
|
"vue/no-export-in-script-setup",
|
|
1178
1182
|
"vue/no-expose-after-await",
|
|
1179
1183
|
"vue/no-lifecycle-after-await",
|
|
1184
|
+
"vue/no-reserved-component-names",
|
|
1180
1185
|
"vue/no-shared-component-data",
|
|
1181
1186
|
"vue/no-this-in-before-route-enter",
|
|
1182
1187
|
"vue/no-watch-after-await",
|
|
1183
1188
|
"vue/prefer-import-from-vue",
|
|
1189
|
+
"vue/require-prop-type-constructor",
|
|
1184
1190
|
"vue/require-render-return",
|
|
1185
1191
|
"vue/require-slots-as-functions",
|
|
1186
1192
|
"vue/return-in-computed-property",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.68.0",
|
|
4
4
|
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"lint-staged": "^16.1.2",
|
|
85
85
|
"next": "^16.0.0",
|
|
86
86
|
"oxfmt": "^0.51.0",
|
|
87
|
-
"oxlint": "^1.
|
|
87
|
+
"oxlint": "^1.68.0",
|
|
88
88
|
"oxlint-tsgolint": "^0.23.0",
|
|
89
89
|
"tsdown": "^0.22.0",
|
|
90
90
|
"typescript": "^6.0.0",
|