@oxlint/migrate 1.52.0 → 1.54.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 nurseryRules, i as buildUnsupportedRuleExplanations, n as preFixForJsPlugins, o as rules_exports, r as isOffValue, t as main } from "../src-TZG8ybfH.mjs";
2
+ import { a as nurseryRules, i as buildUnsupportedRuleExplanations, n as preFixForJsPlugins, o as rules_exports, r as isOffValue, t as main } from "../src-DJ9UxHkF.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.52.0";
33
+ var version = "1.54.0";
34
34
  //#endregion
35
35
  //#region src/walker/comments/replaceRuleDirectiveComment.ts
36
36
  const allRules = Object.values(rules_exports).flat();
@@ -1,2 +1,2 @@
1
- import { t as main } from "../src-TZG8ybfH.mjs";
1
+ import { t as main } from "../src-DJ9UxHkF.mjs";
2
2
  export { main as default };
@@ -649,8 +649,10 @@ const restrictionRules = [
649
649
  "react/forbid-dom-props",
650
650
  "react/forbid-elements",
651
651
  "react/jsx-filename-extension",
652
+ "react/no-clone-element",
652
653
  "react/no-danger",
653
654
  "react/no-multi-comp",
655
+ "react/no-react-children",
654
656
  "react/no-unknown-property",
655
657
  "react/only-export-components",
656
658
  "@typescript-eslint/explicit-function-return-type",
@@ -1698,7 +1700,7 @@ const transformRuleEntry = (eslintConfig, targetConfig, baseConfig, options, ove
1698
1700
  if (isOffValue(normalizedConfig)) {
1699
1701
  const resolvedRule = resolveJsPluginRuleName(rule, effectivePlugins);
1700
1702
  if (eslintConfig.files === void 0) delete targetConfig.rules[resolvedRule];
1701
- else if (!isIgnoredPluginRule(rule)) targetConfig.rules[resolvedRule] = normalizedConfig;
1703
+ else if (!isIgnoredPluginRule(rule)) enableJsPluginRule(targetConfig, resolvedRule, normalizedConfig, effectivePlugins);
1702
1704
  if (eslintConfig.files === void 0) {
1703
1705
  options?.reporter?.removeSkipped(rule, "js-plugins");
1704
1706
  options?.reporter?.removeSkipped(rule, "not-implemented");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxlint/migrate",
3
- "version": "1.52.0",
3
+ "version": "1.54.0",
4
4
  "description": "Generates a `.oxlintrc.json` from a existing eslint flat config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -84,7 +84,7 @@
84
84
  "lint-staged": "^16.1.2",
85
85
  "next": "^16.0.0",
86
86
  "oxfmt": "^0.36.0",
87
- "oxlint": "^1.52.0",
87
+ "oxlint": "^1.54.0",
88
88
  "oxlint-tsgolint": "^0.16.0",
89
89
  "tsdown": "^0.21.0",
90
90
  "typescript-eslint": "^8.35.0",