@oxlint/migrate 1.67.0 → 1.69.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,2 +1,2 @@
1
- import { t as main } from "../src-lamrnkq_.mjs";
1
+ import { t as main } from "../src-OzarEdss.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,9 +789,14 @@ 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",
796
+ "vue/next-tick-style",
797
+ "vue/prop-name-casing",
798
+ "vue/require-direct-export",
799
+ "vue/require-prop-types",
792
800
  "vue/require-typed-ref",
793
801
  "typescript/default-param-last",
794
802
  "typescript/init-declarations",
@@ -1177,10 +1185,14 @@ const correctnessRules = [
1177
1185
  "vue/no-export-in-script-setup",
1178
1186
  "vue/no-expose-after-await",
1179
1187
  "vue/no-lifecycle-after-await",
1188
+ "vue/no-reserved-component-names",
1189
+ "vue/no-reserved-keys",
1190
+ "vue/no-reserved-props",
1180
1191
  "vue/no-shared-component-data",
1181
1192
  "vue/no-this-in-before-route-enter",
1182
1193
  "vue/no-watch-after-await",
1183
1194
  "vue/prefer-import-from-vue",
1195
+ "vue/require-prop-type-constructor",
1184
1196
  "vue/require-render-return",
1185
1197
  "vue/require-slots-as-functions",
1186
1198
  "vue/return-in-computed-property",
@@ -1405,6 +1417,7 @@ var unsupportedRules = {
1405
1417
  "react/sort-prop-types": "PropTypes are ignored in React 19, and this rule is only relevant if you use the PropTypes package. Also stylistic.",
1406
1418
  "react/static-property-placement": "This rule only applies to legacy class components, which are not widely used in modern React.",
1407
1419
  "react/require-optimization": "This rule only applies to legacy class components, which are not widely used in modern React.",
1420
+ "react/require-default-props": "`defaultProps` is removed entirely in React 19, this rule is no longer relevant.",
1408
1421
  "react/prefer-read-only-props": "This rule is niche and primarily applies to legacy class components, which are not widely used in modern React.",
1409
1422
  "react/prop-types": "PropTypes are ignored in React 19, and TypeScript + the `no-unsafe-xxx` rules already catches unsafe props in most cases.",
1410
1423
  "react/prefer-stateless-function": "Superseded by `react/prefer-function-component`, which we support.",
@@ -1687,7 +1700,6 @@ function buildUnsupportedRuleExplanations() {
1687
1700
  //#region src/plugins_rules.ts
1688
1701
  const allRules = Object.values(rules_exports).flat();
1689
1702
  const unsupportedRuleExplanations = buildUnsupportedRuleExplanations();
1690
- const OXFMT_SORTING_DOCS_URL = "https://oxc.rs/docs/guide/usage/formatter/sorting.html";
1691
1703
  const oxfmtImportSortingRules = new Set(["sort-imports", "perfectionist/sort-imports"]);
1692
1704
  /**
1693
1705
  * checks if value is validSet, or if validSet is an array, check if value is first value of it
@@ -1707,7 +1719,7 @@ const isWarnValue = (value) => isValueInSet(value, ["warn", 1]);
1707
1719
  const isErrorValue = (value) => isValueInSet(value, ["error", 2]);
1708
1720
  const isOxfmtImportSortingRule = (rule) => oxfmtImportSortingRules.has(rule);
1709
1721
  const addOxfmtImportSortingWarning = (options) => {
1710
- options?.reporter?.addWarning("ESLint import-sorting rules like `sort-imports` were not migrated because they conflict with Oxfmt's import sorting.\nUse Oxfmt's `sortImports` formatter option instead. It is based on `eslint-plugin-perfectionist/sort-imports`, is disabled by default, and will need to be enabled.\n" + OXFMT_SORTING_DOCS_URL);
1722
+ options?.reporter?.addWarning("ESLint import-sorting rules like `sort-imports` were not migrated because they conflict with Oxfmt's import sorting.\nUse Oxfmt's `sortImports` formatter option instead. It is based on `eslint-plugin-perfectionist/sort-imports`, is disabled by default, and will need to be enabled.\nhttps://oxc.rs/docs/guide/usage/formatter/sorting.html");
1711
1723
  };
1712
1724
  const normalizeSeverityValue = (value) => {
1713
1725
  if (value === void 0) return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.67.0",
3
+ "version": "1.69.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.132.0",
43
+ "oxc-parser": "^0.134.0",
44
44
  "tinyglobby": "^0.2.14"
45
45
  },
46
46
  "devDependencies": {
@@ -83,8 +83,8 @@
83
83
  "husky": "^9.1.7",
84
84
  "lint-staged": "^16.1.2",
85
85
  "next": "^16.0.0",
86
- "oxfmt": "^0.51.0",
87
- "oxlint": "^1.67.0",
86
+ "oxfmt": "^0.53.0",
87
+ "oxlint": "^1.69.0",
88
88
  "oxlint-tsgolint": "^0.23.0",
89
89
  "tsdown": "^0.22.0",
90
90
  "typescript": "^6.0.0",
@@ -94,5 +94,5 @@
94
94
  "lint-staged": {
95
95
  "*": "oxfmt --no-error-on-unmatched-pattern"
96
96
  },
97
- "packageManager": "pnpm@11.2.2"
97
+ "packageManager": "pnpm@11.5.1"
98
98
  }