@oxlint/migrate 1.84.0 → 1.86.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-yV7UJ5KA.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.86.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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* What to enforce for `/// <reference types="..." />` references.
|
|
12
12
|
*/
|
|
13
|
-
//#region node_modules/.pnpm/oxlint@1.
|
|
13
|
+
//#region node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/dist/index.d.ts
|
|
14
14
|
//#region src-js/package/config.generated.d.ts
|
|
15
15
|
type AllowWarnDeny = ("allow" | "off" | "warn" | "error" | "deny") | number;
|
|
16
16
|
type GlobalValue = "readonly" | "writable" | "off";
|
|
@@ -1375,6 +1375,7 @@ interface DummyRuleMap {
|
|
|
1375
1375
|
"typescript/no-extraneous-class"?: RuleNoConfig | [AllowWarnDeny, NoExtraneousClass];
|
|
1376
1376
|
"typescript/no-floating-promises"?: RuleNoConfig | [AllowWarnDeny, NoFloatingPromisesConfig];
|
|
1377
1377
|
"typescript/no-for-in-array"?: RuleNoConfig;
|
|
1378
|
+
"typescript/no-generated-empty-object-type"?: RuleNoConfig;
|
|
1378
1379
|
"typescript/no-implied-eval"?: RuleNoConfig;
|
|
1379
1380
|
"typescript/no-import-type-side-effects"?: RuleNoConfig;
|
|
1380
1381
|
"typescript/no-inferrable-types"?: RuleNoConfig | [AllowWarnDeny, NoInferrableTypes];
|
|
@@ -5005,6 +5006,20 @@ interface NoUnstableNestedComponentsConfig {
|
|
|
5005
5006
|
propNamePattern?: string;
|
|
5006
5007
|
}
|
|
5007
5008
|
interface OnlyExportComponentsConfig {
|
|
5009
|
+
/**
|
|
5010
|
+
* Allow an exported object when every property is a React component.
|
|
5011
|
+
* This matches Vite's compound component support. The object must be non-empty,
|
|
5012
|
+
* contain no nested objects, spreads, or accessors, and anonymous functions
|
|
5013
|
+
* must use a component name as a static property key.
|
|
5014
|
+
*
|
|
5015
|
+
* ```jsx
|
|
5016
|
+
* // Allowed when allowCompoundComponents: true
|
|
5017
|
+
* const Root = () => <div />;
|
|
5018
|
+
* const Label = () => <span />;
|
|
5019
|
+
* export const Tag = { Root, Label };
|
|
5020
|
+
* ```
|
|
5021
|
+
*/
|
|
5022
|
+
allowCompoundComponents?: boolean;
|
|
5008
5023
|
/**
|
|
5009
5024
|
* Allow exporting primitive constants (string/number/boolean/template literal)
|
|
5010
5025
|
* alongside component exports without triggering a violation. Recommended when your
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as main } from "../src-
|
|
1
|
+
import { t as main } from "../src-yV7UJ5KA.mjs";
|
|
2
2
|
export { main as default };
|
|
@@ -656,7 +656,6 @@ const styleRules = [
|
|
|
656
656
|
"node/callback-return",
|
|
657
657
|
"node/exports-style",
|
|
658
658
|
"node/global-require",
|
|
659
|
-
"node/no-exports-assign",
|
|
660
659
|
"node/no-mixed-requires",
|
|
661
660
|
"node/no-sync",
|
|
662
661
|
"promise/avoid-new",
|
|
@@ -843,6 +842,7 @@ const suspiciousRules = [
|
|
|
843
842
|
"import/no-self-import",
|
|
844
843
|
"import/no-unassigned-import",
|
|
845
844
|
"jest/no-commented-out-tests",
|
|
845
|
+
"node/no-exports-assign",
|
|
846
846
|
"promise/always-return",
|
|
847
847
|
"promise/no-multiple-resolved",
|
|
848
848
|
"promise/no-promise-in-callback",
|
|
@@ -860,6 +860,7 @@ const suspiciousRules = [
|
|
|
860
860
|
"typescript/consistent-return",
|
|
861
861
|
"typescript/no-confusing-non-null-assertion",
|
|
862
862
|
"typescript/no-extraneous-class",
|
|
863
|
+
"typescript/no-generated-empty-object-type",
|
|
863
864
|
"typescript/no-unnecessary-boolean-literal-compare",
|
|
864
865
|
"typescript/no-unnecessary-template-expression",
|
|
865
866
|
"typescript/no-unnecessary-type-arguments",
|
|
@@ -1292,6 +1293,7 @@ const typeAwareRules = [
|
|
|
1292
1293
|
"typescript/no-duplicate-type-constituents",
|
|
1293
1294
|
"typescript/no-floating-promises",
|
|
1294
1295
|
"typescript/no-for-in-array",
|
|
1296
|
+
"typescript/no-generated-empty-object-type",
|
|
1295
1297
|
"typescript/no-implied-eval",
|
|
1296
1298
|
"typescript/no-meaningless-void-operator",
|
|
1297
1299
|
"typescript/no-misused-promises",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxlint/migrate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.86.0",
|
|
4
4
|
"description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"commander": "^15.0.0",
|
|
31
31
|
"globals": "^17.0.0",
|
|
32
|
-
"oxc-parser": "^0.
|
|
32
|
+
"oxc-parser": "^0.151.0",
|
|
33
33
|
"tinyglobby": "^0.2.14"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"@types/node": "^25.0.0",
|
|
49
49
|
"@typescript-eslint/eslint-plugin": "^8.35.0",
|
|
50
50
|
"@typescript-eslint/parser": "^8.35.0",
|
|
51
|
-
"@vitest/coverage-v8": "^
|
|
51
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
52
52
|
"eslint": "^10.0.0",
|
|
53
53
|
"eslint-config-next": "^16.0.0",
|
|
54
54
|
"eslint-config-prettier": "^10.1.5",
|
|
55
55
|
"eslint-plugin-header": "^3.1.1",
|
|
56
56
|
"eslint-plugin-import": "^2.32.0",
|
|
57
57
|
"eslint-plugin-import-x": "^4.16.0",
|
|
58
|
-
"eslint-plugin-jsdoc": "^
|
|
58
|
+
"eslint-plugin-jsdoc": "^64.0.0",
|
|
59
59
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
60
60
|
"eslint-plugin-local": "^6.0.0",
|
|
61
|
-
"eslint-plugin-mocha": "^
|
|
61
|
+
"eslint-plugin-mocha": "^12.0.0",
|
|
62
62
|
"eslint-plugin-oxlint": "^1.3.0",
|
|
63
63
|
"eslint-plugin-prettier": "^5.5.4",
|
|
64
64
|
"eslint-plugin-react": "^7.37.5",
|
|
@@ -68,17 +68,17 @@
|
|
|
68
68
|
"eslint-plugin-react-web-api": "^5.0.0",
|
|
69
69
|
"eslint-plugin-regexp": "^3.0.0",
|
|
70
70
|
"eslint-plugin-tsdoc": "^0.5.0",
|
|
71
|
-
"eslint-plugin-unicorn": "^
|
|
71
|
+
"eslint-plugin-unicorn": "^76.0.0",
|
|
72
72
|
"husky": "^9.1.7",
|
|
73
73
|
"lint-staged": "^17.0.0",
|
|
74
74
|
"next": "^16.0.0",
|
|
75
|
-
"oxfmt": "^0.
|
|
76
|
-
"oxlint": "^1.
|
|
77
|
-
"oxlint-tsgolint": "^0.
|
|
75
|
+
"oxfmt": "^0.70.0",
|
|
76
|
+
"oxlint": "^1.86.0",
|
|
77
|
+
"oxlint-tsgolint": "^7.0.0",
|
|
78
78
|
"tsdown": "^0.23.0",
|
|
79
|
-
"typescript": "^6.0.
|
|
79
|
+
"typescript": "^6.0.3",
|
|
80
80
|
"typescript-eslint": "^8.35.0",
|
|
81
|
-
"vitest": "^
|
|
81
|
+
"vitest": "^5.0.0"
|
|
82
82
|
},
|
|
83
83
|
"lint-staged": {
|
|
84
84
|
"*": "oxfmt --no-error-on-unmatched-pattern"
|