eslint-plugin-react-dom 2.0.0-next.159 → 2.0.0-next.160

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/dist/index.d.ts CHANGED
@@ -4,9 +4,7 @@ import * as _eslint_react_kit0 from "@eslint-react/kit";
4
4
  declare const _default: {
5
5
  configs: {
6
6
  recommended: {
7
- plugins: {
8
- "react-dom": _eslint_react_kit0.CompatiblePlugin;
9
- };
7
+ plugins: {};
10
8
  name?: string;
11
9
  rules?: Record<string, _eslint_react_kit0.RuleConfig>;
12
10
  settings?: _eslint_react_kit0.SettingsConfig;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DEFAULT_ESLINT_REACT_SETTINGS, getDocsUrl, getSettingsFromContext } from "@eslint-react/shared";
1
+ import { DEFAULT_ESLINT_REACT_SETTINGS, getConfigAdapters, getDocsUrl, getSettingsFromContext } from "@eslint-react/shared";
2
2
  import * as ER from "@eslint-react/core";
3
3
  import { ESLintUtils } from "@typescript-eslint/utils";
4
4
  import { unit } from "@eslint-react/eff";
@@ -47,7 +47,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
47
47
  //#endregion
48
48
  //#region package.json
49
49
  var name = "eslint-plugin-react-dom";
50
- var version = "2.0.0-next.159";
50
+ var version = "2.0.0-next.160";
51
51
 
52
52
  //#endregion
53
53
  //#region src/utils/create-jsx-element-resolver.ts
@@ -2105,18 +2105,7 @@ const plugin = {
2105
2105
 
2106
2106
  //#endregion
2107
2107
  //#region src/index.ts
2108
- function toFlatConfig(config) {
2109
- return {
2110
- ...config,
2111
- plugins: { "react-dom": plugin }
2112
- };
2113
- }
2114
- function toLegacyConfig({ rules: rules$1 }) {
2115
- return {
2116
- plugins: ["react-dom"],
2117
- rules: rules$1
2118
- };
2119
- }
2108
+ const { toFlatConfig, toLegacyConfig } = getConfigAdapters("react-dom", plugin);
2120
2109
  var src_default = {
2121
2110
  ...plugin,
2122
2111
  configs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "2.0.0-next.159",
3
+ "version": "2.0.0-next.160",
4
4
  "description": "ESLint React's ESLint plugin for React DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -41,12 +41,12 @@
41
41
  "compare-versions": "^6.1.1",
42
42
  "string-ts": "^2.2.1",
43
43
  "ts-pattern": "^5.8.0",
44
- "@eslint-react/ast": "2.0.0-next.159",
45
- "@eslint-react/core": "2.0.0-next.159",
46
- "@eslint-react/eff": "2.0.0-next.159",
47
- "@eslint-react/kit": "2.0.0-next.159",
48
- "@eslint-react/shared": "2.0.0-next.159",
49
- "@eslint-react/var": "2.0.0-next.159"
44
+ "@eslint-react/ast": "2.0.0-next.160",
45
+ "@eslint-react/eff": "2.0.0-next.160",
46
+ "@eslint-react/kit": "2.0.0-next.160",
47
+ "@eslint-react/core": "2.0.0-next.160",
48
+ "@eslint-react/shared": "2.0.0-next.160",
49
+ "@eslint-react/var": "2.0.0-next.160"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/react": "^19.1.12",