@oxlint/migrate 1.5.0 → 1.7.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,4 +1,4 @@
1
- const version = "1.5.0";
1
+ const version = "1.7.0";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -10,7 +10,8 @@ const ES_VERSIONS = [
10
10
  2022,
11
11
  2023,
12
12
  2024,
13
- 2025
13
+ 2025,
14
+ 2026
14
15
  ];
15
16
  const OTHER_SUPPORTED_ENVS = [
16
17
  "browser",
@@ -86,6 +87,9 @@ const detectEnvironmentByGlobals = (config) => {
86
87
  if (!env.startsWith("es") && !OTHER_SUPPORTED_ENVS.includes(env)) {
87
88
  continue;
88
89
  }
90
+ if (env.startsWith("es") && !ES_VERSIONS.includes(parseInt(env.replace(/^es/, "")))) {
91
+ continue;
92
+ }
89
93
  let search = Object.keys(entries);
90
94
  let matches = search.filter(
91
95
  (entry) => (
@@ -509,6 +509,7 @@ const correctnessRules = [
509
509
  "@next/next/no-title-in-document-head",
510
510
  "@next/next/no-typos",
511
511
  "@next/next/no-unwanted-polyfillio",
512
+ "@next/next/no-html-link-for-pages",
512
513
  "promise/no-callback-in-promise",
513
514
  "promise/no-new-statics",
514
515
  "promise/valid-params",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "type": "module",
6
6
  "bin": {
@@ -40,7 +40,7 @@
40
40
  "@antfu/eslint-config": "^4.16.1",
41
41
  "@eslint/eslintrc": "^3.3.1",
42
42
  "@eslint/js": "^9.29.0",
43
- "@logux/eslint-config": "^55.2.1",
43
+ "@logux/eslint-config": "^56.0.0",
44
44
  "@oxc-node/core": "^0.0.29",
45
45
  "@stylistic/eslint-plugin": "^5.0.0",
46
46
  "@stylistic/eslint-plugin-ts": "^4.4.1",
@@ -62,7 +62,7 @@
62
62
  "husky": "^9.1.7",
63
63
  "jiti": "^2.4.2",
64
64
  "lint-staged": "^16.1.2",
65
- "oxlint": "^1.5.0",
65
+ "oxlint": "^1.7.0",
66
66
  "prettier": "^3.6.1",
67
67
  "typescript": "^5.8.3",
68
68
  "typescript-eslint": "^8.35.0",
@@ -80,5 +80,5 @@
80
80
  "globals": "^14.0.0 || ^15.0.0 || ^16.0.0",
81
81
  "jiti": "*"
82
82
  },
83
- "packageManager": "pnpm@10.12.4"
83
+ "packageManager": "pnpm@10.13.1"
84
84
  }