@oxlint/migrate 1.49.0 → 1.50.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 preFixForJsPlugins, f as buildUnsupportedRuleExplanations, m as rules_exports, p as nurseryRules, u as isOffValue } from "../settings-Bb6227Gq.mjs";
2
+ import { a as preFixForJsPlugins, f as buildUnsupportedRuleExplanations, m as rules_exports, p as nurseryRules, u as isOffValue } from "../settings-D8R7axmT.mjs";
3
3
  import main from "../src/index.mjs";
4
4
  import { program } from "commander";
5
5
  import { existsSync, readFileSync, renameSync, writeFileSync } from "node:fs";
@@ -33,7 +33,7 @@ const loadESLintConfig = async (filePath) => {
33
33
 
34
34
  //#endregion
35
35
  //#region package.json
36
- var version = "1.49.0";
36
+ var version = "1.50.0";
37
37
 
38
38
  //#endregion
39
39
  //#region src/walker/comments/replaceRuleDirectiveComment.ts
@@ -476,6 +476,7 @@ const styleRules = [
476
476
  "unicorn/prefer-string-raw",
477
477
  "unicorn/prefer-string-trim-start-end",
478
478
  "unicorn/prefer-structured-clone",
479
+ "unicorn/prefer-ternary",
479
480
  "unicorn/relative-url-style",
480
481
  "unicorn/require-array-join-separator",
481
482
  "unicorn/require-module-attributes",
@@ -682,6 +683,7 @@ const restrictionRules = [
682
683
  "unicorn/no-process-exit",
683
684
  "unicorn/no-useless-error-capture-stack-trace",
684
685
  "unicorn/prefer-modern-math-apis",
686
+ "unicorn/prefer-module",
685
687
  "unicorn/prefer-node-protocol",
686
688
  "unicorn/prefer-number-properties",
687
689
  "vue/max-props",
@@ -1,4 +1,4 @@
1
- import { c as cleanUpOxlintConfig, d as transformRuleEntry, g as transformEnvAndGlobals, h as detectEnvironmentByGlobals, i as fixForJsPlugins, l as detectNeededRulesPlugins, n as warnSettingsInOverride, o as detectSameOverride, r as processConfigFiles, s as transformIgnorePatterns, t as transformSettings } from "../settings-Bb6227Gq.mjs";
1
+ import { c as cleanUpOxlintConfig, d as transformRuleEntry, g as transformEnvAndGlobals, h as detectEnvironmentByGlobals, i as fixForJsPlugins, l as detectNeededRulesPlugins, n as warnSettingsInOverride, o as detectSameOverride, r as processConfigFiles, s as transformIgnorePatterns, t as transformSettings } from "../settings-D8R7axmT.mjs";
2
2
 
3
3
  //#region src/index.ts
4
4
  const buildConfig = (configs, oxlintConfig, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.49.0",
3
+ "version": "1.50.0",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -46,6 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@antfu/eslint-config": "^7.0.0",
49
+ "@eslint-react/eslint-plugin": "^2.13.0",
49
50
  "@eslint/js": "^9.29.0",
50
51
  "@logux/eslint-config": "^57.0.0",
51
52
  "@oxc-node/core": "^0.0.35",
@@ -72,14 +73,15 @@
72
73
  "eslint-plugin-react-hooks": "^7.0.1",
73
74
  "eslint-plugin-react-perf": "^3.3.3",
74
75
  "eslint-plugin-react-refresh": "^0.5.0",
76
+ "eslint-plugin-react-web-api": "^2.13.0",
75
77
  "eslint-plugin-regexp": "^3.0.0",
76
78
  "eslint-plugin-tsdoc": "^0.5.0",
77
79
  "eslint-plugin-unicorn": "^62.0.0",
78
80
  "husky": "^9.1.7",
79
81
  "lint-staged": "^16.1.2",
80
82
  "next": "^16.0.0",
81
- "oxfmt": "^0.33.0",
82
- "oxlint": "^1.49.0",
83
+ "oxfmt": "^0.34.0",
84
+ "oxlint": "^1.50.0",
83
85
  "oxlint-tsgolint": "^0.14.0",
84
86
  "tsdown": "^0.20.0",
85
87
  "typescript-eslint": "^8.35.0",
@@ -88,5 +90,5 @@
88
90
  "lint-staged": {
89
91
  "*": "oxfmt --no-error-on-unmatched-pattern"
90
92
  },
91
- "packageManager": "pnpm@10.29.3"
93
+ "packageManager": "pnpm@10.30.0"
92
94
  }