@oxlint/migrate 1.68.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-DFohD9q9.mjs";
1
+ import { t as main } from "../src-OzarEdss.mjs";
2
2
  export { main as default };
@@ -793,6 +793,10 @@ const styleRules = [
793
793
  "vue/define-emits-declaration",
794
794
  "vue/define-props-declaration",
795
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",
796
800
  "vue/require-typed-ref",
797
801
  "typescript/default-param-last",
798
802
  "typescript/init-declarations",
@@ -1182,6 +1186,8 @@ const correctnessRules = [
1182
1186
  "vue/no-expose-after-await",
1183
1187
  "vue/no-lifecycle-after-await",
1184
1188
  "vue/no-reserved-component-names",
1189
+ "vue/no-reserved-keys",
1190
+ "vue/no-reserved-props",
1185
1191
  "vue/no-shared-component-data",
1186
1192
  "vue/no-this-in-before-route-enter",
1187
1193
  "vue/no-watch-after-await",
@@ -1411,6 +1417,7 @@ var unsupportedRules = {
1411
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.",
1412
1418
  "react/static-property-placement": "This rule only applies to legacy class components, which are not widely used in modern React.",
1413
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.",
1414
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.",
1415
1422
  "react/prop-types": "PropTypes are ignored in React 19, and TypeScript + the `no-unsafe-xxx` rules already catches unsafe props in most cases.",
1416
1423
  "react/prefer-stateless-function": "Superseded by `react/prefer-function-component`, which we support.",
@@ -1693,7 +1700,6 @@ function buildUnsupportedRuleExplanations() {
1693
1700
  //#region src/plugins_rules.ts
1694
1701
  const allRules = Object.values(rules_exports).flat();
1695
1702
  const unsupportedRuleExplanations = buildUnsupportedRuleExplanations();
1696
- const OXFMT_SORTING_DOCS_URL = "https://oxc.rs/docs/guide/usage/formatter/sorting.html";
1697
1703
  const oxfmtImportSortingRules = new Set(["sort-imports", "perfectionist/sort-imports"]);
1698
1704
  /**
1699
1705
  * checks if value is validSet, or if validSet is an array, check if value is first value of it
@@ -1713,7 +1719,7 @@ const isWarnValue = (value) => isValueInSet(value, ["warn", 1]);
1713
1719
  const isErrorValue = (value) => isValueInSet(value, ["error", 2]);
1714
1720
  const isOxfmtImportSortingRule = (rule) => oxfmtImportSortingRules.has(rule);
1715
1721
  const addOxfmtImportSortingWarning = (options) => {
1716
- 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");
1717
1723
  };
1718
1724
  const normalizeSeverityValue = (value) => {
1719
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.68.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.68.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
  }