@oxlint/migrate 1.66.0 → 1.67.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-lamrnkq_.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.67.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.67.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";
|
|
@@ -808,6 +808,7 @@ interface DummyRuleMap {
|
|
|
808
808
|
"no-void"?: DummyRule;
|
|
809
809
|
"no-warning-comments"?: DummyRule;
|
|
810
810
|
"no-with"?: DummyRule;
|
|
811
|
+
"node/callback-return"?: DummyRule;
|
|
811
812
|
"node/global-require"?: DummyRule;
|
|
812
813
|
"node/handle-callback-err"?: DummyRule;
|
|
813
814
|
"node/no-exports-assign"?: DummyRule;
|
|
@@ -1067,6 +1068,7 @@ interface DummyRuleMap {
|
|
|
1067
1068
|
"unicorn/escape-case"?: DummyRule;
|
|
1068
1069
|
"unicorn/explicit-length-check"?: DummyRule;
|
|
1069
1070
|
"unicorn/filename-case"?: DummyRule;
|
|
1071
|
+
"unicorn/import-style"?: DummyRule;
|
|
1070
1072
|
"unicorn/new-for-builtins"?: DummyRule;
|
|
1071
1073
|
"unicorn/no-abusive-eslint-disable"?: DummyRule;
|
|
1072
1074
|
"unicorn/no-accessor-recursion"?: DummyRule;
|
|
@@ -1264,26 +1266,36 @@ interface DummyRuleMap {
|
|
|
1264
1266
|
"vue/define-props-destructuring"?: DummyRule;
|
|
1265
1267
|
"vue/max-props"?: DummyRule;
|
|
1266
1268
|
"vue/no-arrow-functions-in-watch"?: DummyRule;
|
|
1269
|
+
"vue/no-computed-properties-in-data"?: DummyRule;
|
|
1267
1270
|
"vue/no-deprecated-data-object-declaration"?: DummyRule;
|
|
1268
1271
|
"vue/no-deprecated-delete-set"?: DummyRule;
|
|
1269
1272
|
"vue/no-deprecated-destroyed-lifecycle"?: DummyRule;
|
|
1270
1273
|
"vue/no-deprecated-events-api"?: DummyRule;
|
|
1271
1274
|
"vue/no-deprecated-model-definition"?: DummyRule;
|
|
1275
|
+
"vue/no-deprecated-props-default-this"?: DummyRule;
|
|
1272
1276
|
"vue/no-deprecated-vue-config-keycodes"?: DummyRule;
|
|
1273
1277
|
"vue/no-export-in-script-setup"?: DummyRule;
|
|
1278
|
+
"vue/no-expose-after-await"?: DummyRule;
|
|
1274
1279
|
"vue/no-import-compiler-macros"?: DummyRule;
|
|
1275
1280
|
"vue/no-lifecycle-after-await"?: DummyRule;
|
|
1276
1281
|
"vue/no-multiple-slot-args"?: DummyRule;
|
|
1277
1282
|
"vue/no-required-prop-with-default"?: DummyRule;
|
|
1283
|
+
"vue/no-shared-component-data"?: DummyRule;
|
|
1278
1284
|
"vue/no-this-in-before-route-enter"?: DummyRule;
|
|
1285
|
+
"vue/no-watch-after-await"?: DummyRule;
|
|
1279
1286
|
"vue/prefer-import-from-vue"?: DummyRule;
|
|
1280
1287
|
"vue/require-default-export"?: DummyRule;
|
|
1288
|
+
"vue/require-render-return"?: DummyRule;
|
|
1289
|
+
"vue/require-slots-as-functions"?: DummyRule;
|
|
1281
1290
|
"vue/require-typed-ref"?: DummyRule;
|
|
1282
1291
|
"vue/return-in-computed-property"?: DummyRule;
|
|
1292
|
+
"vue/return-in-emits-validator"?: DummyRule;
|
|
1283
1293
|
"vue/valid-define-emits"?: DummyRule;
|
|
1294
|
+
"vue/valid-define-options"?: DummyRule;
|
|
1284
1295
|
"vue/valid-define-props"?: DummyRule;
|
|
1296
|
+
"vue/valid-next-tick"?: DummyRule;
|
|
1285
1297
|
yoda?: DummyRule;
|
|
1286
|
-
[k: string]: DummyRule;
|
|
1298
|
+
[k: string]: DummyRule | undefined;
|
|
1287
1299
|
}
|
|
1288
1300
|
/**
|
|
1289
1301
|
* Configure the behavior of linter plugins.
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as main } from "../src-
|
|
1
|
+
import { t as main } from "../src-lamrnkq_.mjs";
|
|
2
2
|
export { main as default };
|
|
@@ -642,6 +642,7 @@ const styleRules = [
|
|
|
642
642
|
"jest/require-hook",
|
|
643
643
|
"jest/require-top-level-describe",
|
|
644
644
|
"jsdoc/require-throws-description",
|
|
645
|
+
"node/callback-return",
|
|
645
646
|
"node/global-require",
|
|
646
647
|
"node/no-exports-assign",
|
|
647
648
|
"promise/avoid-new",
|
|
@@ -924,6 +925,7 @@ const restrictionRules = [
|
|
|
924
925
|
"typescript/prefer-literal-enum-member",
|
|
925
926
|
"typescript/promise-function-async",
|
|
926
927
|
"typescript/use-unknown-in-catch-callback-variable",
|
|
928
|
+
"unicorn/import-style",
|
|
927
929
|
"unicorn/no-abusive-eslint-disable",
|
|
928
930
|
"unicorn/no-anonymous-default-export",
|
|
929
931
|
"unicorn/no-array-for-each",
|
|
@@ -1164,19 +1166,29 @@ const correctnessRules = [
|
|
|
1164
1166
|
"vitest/valid-title",
|
|
1165
1167
|
"vitest/warn-todo",
|
|
1166
1168
|
"vue/no-arrow-functions-in-watch",
|
|
1169
|
+
"vue/no-computed-properties-in-data",
|
|
1167
1170
|
"vue/no-deprecated-data-object-declaration",
|
|
1168
1171
|
"vue/no-deprecated-delete-set",
|
|
1169
1172
|
"vue/no-deprecated-destroyed-lifecycle",
|
|
1170
1173
|
"vue/no-deprecated-events-api",
|
|
1171
1174
|
"vue/no-deprecated-model-definition",
|
|
1175
|
+
"vue/no-deprecated-props-default-this",
|
|
1172
1176
|
"vue/no-deprecated-vue-config-keycodes",
|
|
1173
1177
|
"vue/no-export-in-script-setup",
|
|
1178
|
+
"vue/no-expose-after-await",
|
|
1174
1179
|
"vue/no-lifecycle-after-await",
|
|
1180
|
+
"vue/no-shared-component-data",
|
|
1175
1181
|
"vue/no-this-in-before-route-enter",
|
|
1182
|
+
"vue/no-watch-after-await",
|
|
1176
1183
|
"vue/prefer-import-from-vue",
|
|
1184
|
+
"vue/require-render-return",
|
|
1185
|
+
"vue/require-slots-as-functions",
|
|
1177
1186
|
"vue/return-in-computed-property",
|
|
1187
|
+
"vue/return-in-emits-validator",
|
|
1178
1188
|
"vue/valid-define-emits",
|
|
1189
|
+
"vue/valid-define-options",
|
|
1179
1190
|
"vue/valid-define-props",
|
|
1191
|
+
"vue/valid-next-tick",
|
|
1180
1192
|
"typescript/no-dupe-class-members",
|
|
1181
1193
|
"typescript/no-loss-of-precision",
|
|
1182
1194
|
"typescript/no-unused-expressions",
|
|
@@ -1312,6 +1324,7 @@ var unsupportedRules = {
|
|
|
1312
1324
|
"n/no-restricted-import": "No need to implement, already implemented by `no-restricted-imports` rule.",
|
|
1313
1325
|
"n/no-restricted-require": "No need to implement, already implemented by `no-restricted-imports` rule.",
|
|
1314
1326
|
"import/order": "Not implementing this in Oxlint as its behavior is covered very well by [Oxfmt's import sorting](https://oxc.rs/docs/guide/usage/formatter/sorting.html).",
|
|
1327
|
+
"unicorn/template-indent": "Stylistic rule.",
|
|
1315
1328
|
"jsdoc/type-formatting": "Experimental rule in the original plugin, may reconsider once stable.",
|
|
1316
1329
|
"jsdoc/convert-to-jsdoc-comments": "Experimental rule in the original plugin, may reconsider once stable.",
|
|
1317
1330
|
"jsdoc/check-examples": "Deprecated.",
|
|
@@ -1320,7 +1333,6 @@ var unsupportedRules = {
|
|
|
1320
1333
|
"jest/no-error-equal": "Requires type information. Not currently possible to implement in oxlint.",
|
|
1321
1334
|
"jest/valid-expect-with-promise": "Requires type information. Not currently possible to implement in oxlint.",
|
|
1322
1335
|
"vitest/unbound-method": "Requires type information. Not currently possible to implement in oxlint.",
|
|
1323
|
-
"vitest/prefer-vi-mocked": "Requires type information. Not currently possible to implement in oxlint.",
|
|
1324
1336
|
"eslint/no-process-env": "Deprecated, replaced by `node/no-process-env`, which we already support.",
|
|
1325
1337
|
"eslint/no-new-require": "Deprecated, replaced by `node/no-new-require`, which we already support.",
|
|
1326
1338
|
"eslint/no-buffer-constructor": "Replaced by `node/no-deprecated-api`.",
|
|
@@ -1367,6 +1379,8 @@ var unsupportedRules = {
|
|
|
1367
1379
|
"react/use-memo": "React Compiler rules will not be implemented in oxlint for now, as they require integration with the react compiler itself. These rules can be used via JS Plugins if desired.",
|
|
1368
1380
|
"react/incompatible-library": "React Compiler rules will not be implemented in oxlint for now, as they require integration with the react compiler itself. These rules can be used via JS Plugins if desired.",
|
|
1369
1381
|
"react/automatic-effect-dependencies": "React Compiler rules will not be implemented in oxlint for now, as they require integration with the react compiler itself. These rules can be used via JS Plugins if desired.",
|
|
1382
|
+
"react/memo-dependencies": "React Compiler rules will not be implemented in oxlint for now, as they require integration with the react compiler itself. These rules can be used via JS Plugins if desired.",
|
|
1383
|
+
"react/exhaustive-effect-dependencies": "React Compiler rules will not be implemented in oxlint for now, as they require integration with the react compiler itself. These rules can be used via JS Plugins if desired.",
|
|
1370
1384
|
"react/capitalized-calls": "React Compiler rules will not be implemented in oxlint for now, as they require integration with the react compiler itself. These rules can be used via JS Plugins if desired.",
|
|
1371
1385
|
"react/fbt": "React Compiler rules will not be implemented in oxlint for now, as they require integration with the react compiler itself. These rules can be used via JS Plugins if desired.",
|
|
1372
1386
|
"react/fire": "React Compiler rules will not be implemented in oxlint for now, as they require integration with the react compiler itself. These rules can be used via JS Plugins if desired.",
|
|
@@ -1393,6 +1407,7 @@ var unsupportedRules = {
|
|
|
1393
1407
|
"react/require-optimization": "This rule only applies to legacy class components, which are not widely used in modern React.",
|
|
1394
1408
|
"react/prefer-read-only-props": "This rule is niche and primarily applies to legacy class components, which are not widely used in modern React.",
|
|
1395
1409
|
"react/prop-types": "PropTypes are ignored in React 19, and TypeScript + the `no-unsafe-xxx` rules already catches unsafe props in most cases.",
|
|
1410
|
+
"react/prefer-stateless-function": "Superseded by `react/prefer-function-component`, which we support.",
|
|
1396
1411
|
"typescript/sort-type-constituents": "Deprecated, replaced by `perfectionist/sort-intersection-types` and `perfectionist/sort-union-types` rules.",
|
|
1397
1412
|
"typescript/no-type-alias": "Deprecated, replaced by `typescript-eslint/consistent-type-definitions` rule.",
|
|
1398
1413
|
"typescript/typedef": "Deprecated.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.67.0",
|
|
4
4
|
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"commander": "^14.0.0",
|
|
42
42
|
"globals": "^17.0.0",
|
|
43
|
-
"oxc-parser": "^0.
|
|
43
|
+
"oxc-parser": "^0.132.0",
|
|
44
44
|
"tinyglobby": "^0.2.14"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"husky": "^9.1.7",
|
|
84
84
|
"lint-staged": "^16.1.2",
|
|
85
85
|
"next": "^16.0.0",
|
|
86
|
-
"oxfmt": "^0.
|
|
87
|
-
"oxlint": "^1.
|
|
88
|
-
"oxlint-tsgolint": "^0.
|
|
86
|
+
"oxfmt": "^0.51.0",
|
|
87
|
+
"oxlint": "^1.67.0",
|
|
88
|
+
"oxlint-tsgolint": "^0.23.0",
|
|
89
89
|
"tsdown": "^0.22.0",
|
|
90
90
|
"typescript": "^6.0.0",
|
|
91
91
|
"typescript-eslint": "^8.35.0",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"lint-staged": {
|
|
95
95
|
"*": "oxfmt --no-error-on-unmatched-pattern"
|
|
96
96
|
},
|
|
97
|
-
"packageManager": "pnpm@11.
|
|
97
|
+
"packageManager": "pnpm@11.2.2"
|
|
98
98
|
}
|