@oxlint/migrate 1.58.0 → 1.59.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-BLIW50Ng.mjs";
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-DuN61x5i.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.58.0";
33
+ var version = "1.59.0";
34
34
  //#endregion
35
35
  //#region src/walker/comments/replaceRuleDirectiveComment.ts
36
36
  const allRulesSet = new Set(Object.values(rules_exports).flat());
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/oxlint@1.58.0_oxlint-tsgolint@0.18.1/node_modules/oxlint/dist/index.d.ts
1
+ //#region node_modules/.pnpm/oxlint@1.59.0_oxlint-tsgolint@0.19.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";
@@ -1,2 +1,2 @@
1
- import { t as main } from "../src-BLIW50Ng.mjs";
1
+ import { t as main } from "../src-DuN61x5i.mjs";
2
2
  export { main as default };
@@ -497,6 +497,7 @@ const pedanticRules = [
497
497
  "unicorn/prefer-dom-node-dataset",
498
498
  "unicorn/prefer-dom-node-remove",
499
499
  "unicorn/prefer-event-target",
500
+ "unicorn/prefer-import-meta-properties",
500
501
  "unicorn/prefer-math-min-max",
501
502
  "unicorn/prefer-math-trunc",
502
503
  "unicorn/prefer-native-coercion-functions",
@@ -546,6 +547,7 @@ const styleRules = [
546
547
  "no-template-curly-in-string",
547
548
  "no-ternary",
548
549
  "no-useless-computed-key",
550
+ "object-shorthand",
549
551
  "operator-assignment",
550
552
  "prefer-const",
551
553
  "prefer-destructuring",
@@ -593,6 +595,7 @@ const styleRules = [
593
595
  "jest/no-test-return-statement",
594
596
  "jest/no-unneeded-async-expect-function",
595
597
  "jest/no-untyped-mock-factory",
598
+ "jest/padding-around-after-all-blocks",
596
599
  "jest/padding-around-test-blocks",
597
600
  "jest/prefer-called-with",
598
601
  "jest/prefer-comparison-matcher",
@@ -624,6 +627,7 @@ const styleRules = [
624
627
  "promise/prefer-await-to-callbacks",
625
628
  "promise/prefer-await-to-then",
626
629
  "promise/prefer-catch",
630
+ "react/hook-use-state",
627
631
  "react/jsx-boolean-value",
628
632
  "react/jsx-curly-brace-presence",
629
633
  "react/jsx-fragments",
@@ -644,7 +648,9 @@ const styleRules = [
644
648
  "typescript/consistent-indexed-object-style",
645
649
  "typescript/consistent-type-assertions",
646
650
  "typescript/consistent-type-definitions",
651
+ "typescript/consistent-type-exports",
647
652
  "typescript/consistent-type-imports",
653
+ "typescript/dot-notation",
648
654
  "typescript/no-empty-interface",
649
655
  "typescript/no-inferrable-types",
650
656
  "typescript/parameter-properties",
@@ -699,6 +705,7 @@ const styleRules = [
699
705
  "unicorn/require-array-join-separator",
700
706
  "unicorn/require-module-attributes",
701
707
  "unicorn/switch-case-braces",
708
+ "unicorn/switch-case-break-position",
702
709
  "unicorn/text-encoding-identifier-case",
703
710
  "unicorn/throw-new-error",
704
711
  "vitest/consistent-test-filename",
@@ -711,6 +718,7 @@ const styleRules = [
711
718
  "vitest/prefer-describe-function-title",
712
719
  "vitest/prefer-expect-type-of",
713
720
  "vitest/prefer-import-in-mock",
721
+ "vitest/prefer-importing-vitest-globals",
714
722
  "vitest/prefer-strict-boolean-matchers",
715
723
  "vitest/prefer-to-be-falsy",
716
724
  "vitest/prefer-to-be-object",
@@ -786,6 +794,7 @@ const suspiciousRules = [
786
794
  "react/no-namespace",
787
795
  "react/react-in-jsx-scope",
788
796
  "react/style-prop-object",
797
+ "typescript/consistent-return",
789
798
  "typescript/no-confusing-non-null-assertion",
790
799
  "typescript/no-extraneous-class",
791
800
  "typescript/no-unnecessary-boolean-literal-compare",
@@ -793,6 +802,7 @@ const suspiciousRules = [
793
802
  "typescript/no-unnecessary-type-arguments",
794
803
  "typescript/no-unnecessary-type-assertion",
795
804
  "typescript/no-unnecessary-type-constraint",
805
+ "typescript/no-unnecessary-type-conversion",
796
806
  "typescript/no-unsafe-enum-comparison",
797
807
  "typescript/no-unsafe-type-assertion",
798
808
  "unicorn/consistent-function-scoping",
@@ -860,6 +870,7 @@ const restrictionRules = [
860
870
  "react/no-react-children",
861
871
  "react/no-unknown-property",
862
872
  "react/only-export-components",
873
+ "react/prefer-function-component",
863
874
  "typescript/explicit-function-return-type",
864
875
  "typescript/explicit-module-boundary-types",
865
876
  "typescript/no-dynamic-delete",
@@ -963,6 +974,7 @@ const correctnessRules = [
963
974
  "jest/no-export",
964
975
  "jest/no-focused-tests",
965
976
  "jest/no-standalone-expect",
977
+ "jest/prefer-snapshot-hint",
966
978
  "jest/require-to-throw-message",
967
979
  "jest/valid-describe-callback",
968
980
  "jest/valid-expect",
@@ -1111,6 +1123,7 @@ const correctnessRules = [
1111
1123
  "vitest/no-disabled-tests",
1112
1124
  "vitest/no-focused-tests",
1113
1125
  "vitest/no-standalone-expect",
1126
+ "vitest/prefer-snapshot-hint",
1114
1127
  "vitest/require-to-throw-message",
1115
1128
  "vitest/valid-describe-callback",
1116
1129
  "vitest/valid-expect",
@@ -1118,23 +1131,22 @@ const correctnessRules = [
1118
1131
  ];
1119
1132
  const nurseryRules = [
1120
1133
  "getter-return",
1134
+ "no-restricted-exports",
1121
1135
  "no-undef",
1122
1136
  "no-unreachable",
1137
+ "no-useless-assignment",
1123
1138
  "import/export",
1124
1139
  "import/named",
1125
1140
  "promise/no-return-in-finally",
1126
1141
  "react/require-render-return",
1127
- "typescript/consistent-return",
1128
- "typescript/consistent-type-exports",
1129
- "typescript/dot-notation",
1130
1142
  "typescript/no-unnecessary-condition",
1131
1143
  "typescript/no-unnecessary-qualifier",
1132
- "typescript/no-unnecessary-type-conversion",
1133
1144
  "typescript/no-unnecessary-type-parameters",
1134
1145
  "typescript/no-useless-default-assignment",
1135
1146
  "typescript/prefer-optional-chain",
1136
1147
  "typescript/prefer-readonly-parameter-types",
1137
- "typescript/strict-void-return"
1148
+ "typescript/strict-void-return",
1149
+ "unicorn/no-useless-iterator-to-array"
1138
1150
  ];
1139
1151
  const perfRules = [
1140
1152
  "no-await-in-loop",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.58.0",
3
+ "version": "1.59.0",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "commander": "^14.0.0",
43
43
  "globals": "^17.0.0",
44
- "oxc-parser": "^0.121.0",
44
+ "oxc-parser": "^0.123.0",
45
45
  "tinyglobby": "^0.2.14"
46
46
  },
47
47
  "devDependencies": {
@@ -51,7 +51,7 @@
51
51
  "@eslint-react/eslint-plugin": "^3.0.0",
52
52
  "@eslint/js": "^10.0.0",
53
53
  "@logux/eslint-config": "^57.0.0",
54
- "@oxc-node/core": "^0.0.35",
54
+ "@oxc-node/core": "^0.1.0",
55
55
  "@stylistic/eslint-plugin": "^5.0.0",
56
56
  "@stylistic/eslint-plugin-ts": "^4.4.1",
57
57
  "@tanstack/eslint-plugin-query": "^5.91.4",
@@ -84,9 +84,9 @@
84
84
  "husky": "^9.1.7",
85
85
  "lint-staged": "^16.1.2",
86
86
  "next": "^16.0.0",
87
- "oxfmt": "^0.42.0",
88
- "oxlint": "^1.58.0",
89
- "oxlint-tsgolint": "^0.18.0",
87
+ "oxfmt": "^0.43.0",
88
+ "oxlint": "^1.59.0",
89
+ "oxlint-tsgolint": "^0.19.0",
90
90
  "tsdown": "^0.21.0",
91
91
  "typescript": "^6.0.0",
92
92
  "typescript-eslint": "^8.35.0",