eslint-plugin-react-dom 1.23.3-next.4 → 1.23.3-next.6

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.js CHANGED
@@ -32,7 +32,7 @@ var AST__namespace = /*#__PURE__*/_interopNamespace(AST);
32
32
 
33
33
  // package.json
34
34
  var name = "eslint-plugin-react-dom";
35
- var version = "1.23.3-next.4";
35
+ var version = "1.23.3-next.6";
36
36
  var createRule = shared.createRuleForPlugin("dom");
37
37
  function findAttrInCustomAttributes(name2, attributes) {
38
38
  return eff.F.pipe(
@@ -371,7 +371,7 @@ var no_script_url_default = createRule({
371
371
  create(context) {
372
372
  return {
373
373
  JSXAttribute(node) {
374
- if (node.name.type !== types.AST_NODE_TYPES.JSXIdentifier || !node.value) {
374
+ if (node.name.type !== types.AST_NODE_TYPES.JSXIdentifier || node.value == null) {
375
375
  return;
376
376
  }
377
377
  const isJavaScript = eff.F.pipe(
@@ -1638,7 +1638,7 @@ var no_void_elements_with_children_default = createRule({
1638
1638
  return {
1639
1639
  JSXElement(node) {
1640
1640
  const elementName = JSX8__namespace.getElementName(node.openingElement);
1641
- if (!elementName || !voidElements.has(elementName)) {
1641
+ if (elementName.length === 0 || !voidElements.has(elementName)) {
1642
1642
  return;
1643
1643
  }
1644
1644
  if (node.children.length > 0) {
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import { match, P } from 'ts-pattern';
9
9
 
10
10
  // package.json
11
11
  var name = "eslint-plugin-react-dom";
12
- var version = "1.23.3-next.4";
12
+ var version = "1.23.3-next.6";
13
13
  var createRule = createRuleForPlugin("dom");
14
14
  function findAttrInCustomAttributes(name2, attributes) {
15
15
  return F.pipe(
@@ -348,7 +348,7 @@ var no_script_url_default = createRule({
348
348
  create(context) {
349
349
  return {
350
350
  JSXAttribute(node) {
351
- if (node.name.type !== AST_NODE_TYPES.JSXIdentifier || !node.value) {
351
+ if (node.name.type !== AST_NODE_TYPES.JSXIdentifier || node.value == null) {
352
352
  return;
353
353
  }
354
354
  const isJavaScript = F.pipe(
@@ -1615,7 +1615,7 @@ var no_void_elements_with_children_default = createRule({
1615
1615
  return {
1616
1616
  JSXElement(node) {
1617
1617
  const elementName = JSX8.getElementName(node.openingElement);
1618
- if (!elementName || !voidElements.has(elementName)) {
1618
+ if (elementName.length === 0 || !voidElements.has(elementName)) {
1619
1619
  return;
1620
1620
  }
1621
1621
  if (node.children.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "1.23.3-next.4",
3
+ "version": "1.23.3-next.6",
4
4
  "description": "ESLint React's ESLint plugin for React DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -47,16 +47,16 @@
47
47
  "compare-versions": "^6.1.1",
48
48
  "string-ts": "^2.2.0",
49
49
  "ts-pattern": "^5.6.0",
50
- "@eslint-react/ast": "1.23.3-next.4",
51
- "@eslint-react/eff": "1.23.3-next.4",
52
- "@eslint-react/types": "1.23.3-next.4",
53
- "@eslint-react/core": "1.23.3-next.4",
54
- "@eslint-react/var": "1.23.3-next.4",
55
- "@eslint-react/shared": "1.23.3-next.4",
56
- "@eslint-react/jsx": "1.23.3-next.4"
50
+ "@eslint-react/ast": "1.23.3-next.6",
51
+ "@eslint-react/core": "1.23.3-next.6",
52
+ "@eslint-react/jsx": "1.23.3-next.6",
53
+ "@eslint-react/eff": "1.23.3-next.6",
54
+ "@eslint-react/types": "1.23.3-next.6",
55
+ "@eslint-react/var": "1.23.3-next.6",
56
+ "@eslint-react/shared": "1.23.3-next.6"
57
57
  },
58
58
  "devDependencies": {
59
- "@types/react": "^19.0.3",
59
+ "@types/react": "^19.0.4",
60
60
  "@types/react-dom": "^19.0.2",
61
61
  "tsup": "^8.3.5",
62
62
  "@workspace/configs": "0.0.0"