eslint-plugin-react-dom 1.52.9 → 1.52.10-next.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/dist/index.d.mts CHANGED
@@ -1,25 +1,23 @@
1
- import * as _eslint_react_shared from '@eslint-react/shared';
2
- import { RulePreset } from '@eslint-react/kit';
1
+ import * as _eslint_react_kit from '@eslint-react/kit';
3
2
 
4
3
  declare const _default: {
5
4
  configs: {
6
5
  recommended: {
7
- plugins: {
8
- "react-dom": _eslint_react_shared.CompatiblePlugin;
9
- };
6
+ plugins: {};
10
7
  name?: string;
11
- rules?: Record<string, any>;
8
+ rules?: Record<string, _eslint_react_kit.RuleConfig>;
9
+ settings?: _eslint_react_kit.SettingsConfig;
12
10
  };
13
11
  "recommended-legacy": {
14
12
  plugins: string[];
15
- rules: RulePreset;
13
+ rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
16
14
  };
17
15
  };
18
16
  meta: {
19
17
  name: string;
20
18
  version: string;
21
19
  };
22
- rules: Record<string, any>;
20
+ rules: Record<string, _eslint_react_kit.CompatibleRule>;
23
21
  };
24
22
 
25
23
  export { _default as default };
package/dist/index.d.ts CHANGED
@@ -1,25 +1,23 @@
1
- import * as _eslint_react_shared from '@eslint-react/shared';
2
- import { RulePreset } from '@eslint-react/kit';
1
+ import * as _eslint_react_kit from '@eslint-react/kit';
3
2
 
4
3
  declare const _default: {
5
4
  configs: {
6
5
  recommended: {
7
- plugins: {
8
- "react-dom": _eslint_react_shared.CompatiblePlugin;
9
- };
6
+ plugins: {};
10
7
  name?: string;
11
- rules?: Record<string, any>;
8
+ rules?: Record<string, _eslint_react_kit.RuleConfig>;
9
+ settings?: _eslint_react_kit.SettingsConfig;
12
10
  };
13
11
  "recommended-legacy": {
14
12
  plugins: string[];
15
- rules: RulePreset;
13
+ rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
16
14
  };
17
15
  };
18
16
  meta: {
19
17
  name: string;
20
18
  version: string;
21
19
  };
22
- rules: Record<string, any>;
20
+ rules: Record<string, _eslint_react_kit.CompatibleRule>;
23
21
  };
24
22
 
25
23
  export { _default as default };
package/dist/index.js CHANGED
@@ -65,7 +65,7 @@ var settings = {
65
65
 
66
66
  // package.json
67
67
  var name2 = "eslint-plugin-react-dom";
68
- var version = "1.52.9";
68
+ var version = "1.52.10-next.0";
69
69
  function createJsxElementResolver(context) {
70
70
  const { components, polymorphicPropName } = shared.getSettingsFromContext(context);
71
71
  return {
@@ -2052,20 +2052,7 @@ var plugin = {
2052
2052
  };
2053
2053
 
2054
2054
  // src/index.ts
2055
- function toFlatConfig(config) {
2056
- return {
2057
- ...config,
2058
- plugins: {
2059
- "react-dom": plugin
2060
- }
2061
- };
2062
- }
2063
- function toLegacyConfig({ rules: rules2 }) {
2064
- return {
2065
- plugins: ["react-dom"],
2066
- rules: rules2
2067
- };
2068
- }
2055
+ var { toFlatConfig, toLegacyConfig } = shared.getConfigAdapters("react-dom", plugin);
2069
2056
  var index_default = {
2070
2057
  ...plugin,
2071
2058
  configs: {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { getDocsUrl, getSettingsFromContext, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
1
+ import { getDocsUrl, getSettingsFromContext, getConfigAdapters, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
2
2
  import * as ER from '@eslint-react/core';
3
3
  import { ESLintUtils } from '@typescript-eslint/utils';
4
4
  import { AST_NODE_TYPES } from '@typescript-eslint/types';
@@ -43,7 +43,7 @@ var settings = {
43
43
 
44
44
  // package.json
45
45
  var name2 = "eslint-plugin-react-dom";
46
- var version = "1.52.9";
46
+ var version = "1.52.10-next.0";
47
47
  function createJsxElementResolver(context) {
48
48
  const { components, polymorphicPropName } = getSettingsFromContext(context);
49
49
  return {
@@ -2030,20 +2030,7 @@ var plugin = {
2030
2030
  };
2031
2031
 
2032
2032
  // src/index.ts
2033
- function toFlatConfig(config) {
2034
- return {
2035
- ...config,
2036
- plugins: {
2037
- "react-dom": plugin
2038
- }
2039
- };
2040
- }
2041
- function toLegacyConfig({ rules: rules2 }) {
2042
- return {
2043
- plugins: ["react-dom"],
2044
- rules: rules2
2045
- };
2046
- }
2033
+ var { toFlatConfig, toLegacyConfig } = getConfigAdapters("react-dom", plugin);
2047
2034
  var index_default = {
2048
2035
  ...plugin,
2049
2036
  configs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "1.52.9",
3
+ "version": "1.52.10-next.0",
4
4
  "description": "ESLint React's ESLint plugin for React DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -49,12 +49,12 @@
49
49
  "compare-versions": "^6.1.1",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.8.0",
52
- "@eslint-react/ast": "1.52.9",
53
- "@eslint-react/core": "1.52.9",
54
- "@eslint-react/eff": "1.52.9",
55
- "@eslint-react/kit": "1.52.9",
56
- "@eslint-react/var": "1.52.9",
57
- "@eslint-react/shared": "1.52.9"
52
+ "@eslint-react/ast": "1.52.10-next.0",
53
+ "@eslint-react/eff": "1.52.10-next.0",
54
+ "@eslint-react/kit": "1.52.10-next.0",
55
+ "@eslint-react/var": "1.52.10-next.0",
56
+ "@eslint-react/core": "1.52.10-next.0",
57
+ "@eslint-react/shared": "1.52.10-next.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.1.12",