@oxlint/migrate 1.56.0 → 1.57.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.
package/README.md CHANGED
@@ -114,8 +114,4 @@ Depending on how this is implemented by the given config, these behaviors may no
114
114
 
115
115
  The JS Plugins API supports almost all ESLint v9+ plugins for linting JS/TS/JSX/TSX files, but there are still some minor holes in support. See the [JS Plugins documentation](https://oxc.rs/docs/guide/usage/linter/js-plugins.html) for specifics.
116
116
 
117
- For example, if you currently use `eslint-plugin-prettier`, it will not work as a JS Plugin, as we do not support custom parsers for JS Plugins. To replace the functionality of `eslint-plugin-prettier`, you can use `prettier --check` in CI and/or your git pre-commit hooks to ensure code formatting is enforced.
118
-
119
- You could also consider [replacing Prettier with Oxfmt](https://oxc.rs/docs/guide/usage/formatter/migrate-from-prettier.html).
120
-
121
- Note that `eslint-config-prettier` is different from the prettier plugin, and _will_ be migrated fine, as it's just a config to disable formatting-related ESLint rules, not an actual plugin.
117
+ For example, if you currently use `eslint-plugin-svelte`, only some of its rules will work via JS Plugin, as Oxlint does not yet fully support custom file formats like `.svelte`. This means that Oxlint will only be able to lint the script blocks in your `.svelte` files, and not the template blocks where many of the `eslint-plugin-svelte` rules apply.
@@ -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, t as main } from "../src-DIfNUkJH.mjs";
2
+ import { a as nurseryRules, i as buildUnsupportedRuleExplanations, n as preFixForJsPlugins, o as rules_exports, r as isOffValue, t as main } from "../src-DEzNNXJD.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.56.0";
33
+ var version = "1.57.0";
34
34
  //#endregion
35
35
  //#region src/walker/comments/replaceRuleDirectiveComment.ts
36
36
  const allRules = Object.values(rules_exports).flat();
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/oxlint@1.56.0_oxlint-tsgolint@0.16.0/node_modules/oxlint/dist/index.d.ts
1
+ //#region node_modules/.pnpm/oxlint@1.57.0_oxlint-tsgolint@0.17.1/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-DIfNUkJH.mjs";
1
+ import { t as main } from "../src-DEzNNXJD.mjs";
2
2
  export { main as default };
@@ -440,6 +440,7 @@ const styleRules = [
440
440
  "unicorn/catch-error-name",
441
441
  "unicorn/consistent-date-clone",
442
442
  "unicorn/consistent-existence-index-check",
443
+ "unicorn/custom-error-definition",
443
444
  "unicorn/empty-brace-spaces",
444
445
  "unicorn/error-message",
445
446
  "unicorn/filename-case",
@@ -489,6 +490,7 @@ const styleRules = [
489
490
  "vitest/prefer-describe-function-title",
490
491
  "vitest/prefer-expect-type-of",
491
492
  "vitest/prefer-import-in-mock",
493
+ "vitest/prefer-strict-boolean-matchers",
492
494
  "vitest/prefer-to-be-falsy",
493
495
  "vitest/prefer-to-be-object",
494
496
  "vitest/prefer-to-be-truthy",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.56.0",
3
+ "version": "1.57.0",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -41,13 +41,13 @@
41
41
  "dependencies": {
42
42
  "commander": "^14.0.0",
43
43
  "globals": "^17.0.0",
44
- "oxc-parser": "^0.116.0",
44
+ "oxc-parser": "^0.121.0",
45
45
  "tinyglobby": "^0.2.14"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@antfu/eslint-config": "^7.0.0",
49
49
  "@e18e/eslint-plugin": "^0.2.0",
50
- "@eslint-react/eslint-plugin": "^2.13.0",
50
+ "@eslint-react/eslint-plugin": "^3.0.0",
51
51
  "@eslint/js": "^10.0.0",
52
52
  "@logux/eslint-config": "^57.0.0",
53
53
  "@oxc-node/core": "^0.0.35",
@@ -76,16 +76,16 @@
76
76
  "eslint-plugin-react-hooks": "^7.0.1",
77
77
  "eslint-plugin-react-perf": "^3.3.3",
78
78
  "eslint-plugin-react-refresh": "^0.5.0",
79
- "eslint-plugin-react-web-api": "^2.13.0",
79
+ "eslint-plugin-react-web-api": "^3.0.0",
80
80
  "eslint-plugin-regexp": "^3.0.0",
81
81
  "eslint-plugin-tsdoc": "^0.5.0",
82
82
  "eslint-plugin-unicorn": "^63.0.0",
83
83
  "husky": "^9.1.7",
84
84
  "lint-staged": "^16.1.2",
85
85
  "next": "^16.0.0",
86
- "oxfmt": "^0.36.0",
87
- "oxlint": "^1.56.0",
88
- "oxlint-tsgolint": "^0.16.0",
86
+ "oxfmt": "^0.41.0",
87
+ "oxlint": "^1.57.0",
88
+ "oxlint-tsgolint": "^0.17.0",
89
89
  "tsdown": "^0.21.0",
90
90
  "typescript-eslint": "^8.35.0",
91
91
  "vitest": "^4.0.0"
@@ -93,5 +93,5 @@
93
93
  "lint-staged": {
94
94
  "*": "oxfmt --no-error-on-unmatched-pattern"
95
95
  },
96
- "packageManager": "pnpm@10.30.3"
96
+ "packageManager": "pnpm@10.32.1"
97
97
  }