eslint-plugin-react-dom 2.0.0-next.4 → 2.0.0-next.44

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. package/package.json +15 -15
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import * as AST from '@eslint-react/ast';
5
5
  import { AST_NODE_TYPES } from '@typescript-eslint/types';
6
6
  import { compare } from 'compare-versions';
7
7
  import { RegExp, Reporter } from '@eslint-react/kit';
8
- import { _ } from '@eslint-react/eff';
8
+ import { unit } from '@eslint-react/eff';
9
9
 
10
10
  var __defProp = Object.defineProperty;
11
11
  var __export = (target, all) => {
@@ -44,7 +44,7 @@ var settings = {
44
44
 
45
45
  // package.json
46
46
  var name2 = "eslint-plugin-react-dom";
47
- var version = "2.0.0-next.4";
47
+ var version = "2.0.0-next.44";
48
48
  function createJsxElementResolver(context) {
49
49
  const { components, polymorphicPropName } = getSettingsFromContext(context);
50
50
  return {
@@ -1834,7 +1834,7 @@ function create14(context) {
1834
1834
  if (attributeValue.kind === "some" && typeof attributeValue.value === "string") {
1835
1835
  return attributeValue.value;
1836
1836
  }
1837
- return _;
1837
+ return unit;
1838
1838
  };
1839
1839
  if (getAttributeStringValue("target") !== "_blank") {
1840
1840
  return;
@@ -1965,9 +1965,10 @@ var no_void_elements_with_children_default = createRule({
1965
1965
  defaultOptions: []
1966
1966
  });
1967
1967
  function create16(context) {
1968
+ const resolver = createJsxElementResolver(context);
1968
1969
  return {
1969
1970
  JSXElement(node) {
1970
- const elementName = ER.getElementType(context, node);
1971
+ const { domElementType: elementName } = resolver.resolve(node);
1971
1972
  if (elementName.length === 0 || !voidElements.has(elementName)) {
1972
1973
  return;
1973
1974
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "2.0.0-next.4",
3
+ "version": "2.0.0-next.44",
4
4
  "description": "ESLint React's ESLint plugin for React DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -35,27 +35,27 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/scope-manager": "^8.30.1",
39
- "@typescript-eslint/types": "^8.30.1",
40
- "@typescript-eslint/utils": "^8.30.1",
38
+ "@typescript-eslint/scope-manager": "^8.34.0",
39
+ "@typescript-eslint/types": "^8.34.0",
40
+ "@typescript-eslint/utils": "^8.34.0",
41
41
  "compare-versions": "^6.1.1",
42
42
  "string-ts": "^2.2.1",
43
- "ts-pattern": "^5.7.0",
44
- "@eslint-react/eff": "2.0.0-next.4",
45
- "@eslint-react/ast": "2.0.0-next.4",
46
- "@eslint-react/var": "2.0.0-next.4",
47
- "@eslint-react/kit": "2.0.0-next.4",
48
- "@eslint-react/shared": "2.0.0-next.4",
49
- "@eslint-react/core": "2.0.0-next.4"
43
+ "ts-pattern": "^5.7.1",
44
+ "@eslint-react/ast": "2.0.0-next.44",
45
+ "@eslint-react/core": "2.0.0-next.44",
46
+ "@eslint-react/kit": "2.0.0-next.44",
47
+ "@eslint-react/shared": "2.0.0-next.44",
48
+ "@eslint-react/var": "2.0.0-next.44",
49
+ "@eslint-react/eff": "2.0.0-next.44"
50
50
  },
51
51
  "devDependencies": {
52
- "@types/react": "^19.1.2",
53
- "@types/react-dom": "^19.1.2",
54
- "tsup": "^8.4.0",
52
+ "@types/react": "^19.1.8",
53
+ "@types/react-dom": "^19.1.6",
54
+ "tsup": "^8.5.0",
55
55
  "@local/configs": "0.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "eslint": "^9.24.0",
58
+ "eslint": "^9.29.0",
59
59
  "typescript": "^4.9.5 || ^5.4.5"
60
60
  },
61
61
  "peerDependenciesMeta": {