eslint-plugin-react-dom 1.17.4-next.10 → 1.17.4-next.11

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.17.4-next.10";
35
+ var version = "1.17.4-next.11";
36
36
  var createRule = shared.createRuleForPlugin("dom");
37
37
  function findAttrInCustomAttributes(name2, attributes) {
38
38
  return tools.F.pipe(
@@ -44,7 +44,7 @@ function findAttrInCustomAttributes(name2, attributes) {
44
44
 
45
45
  // src/rules/no-children-in-void-dom-elements.ts
46
46
  var RULE_NAME = "no-children-in-void-dom-elements";
47
- var voidElements = /* @__PURE__ */ new Set([
47
+ var voidElements = [
48
48
  "area",
49
49
  "base",
50
50
  "br",
@@ -61,7 +61,7 @@ var voidElements = /* @__PURE__ */ new Set([
61
61
  "source",
62
62
  "track",
63
63
  "wbr"
64
- ]);
64
+ ];
65
65
  var no_children_in_void_dom_elements_default = createRule({
66
66
  meta: {
67
67
  type: "problem",
@@ -78,7 +78,7 @@ var no_children_in_void_dom_elements_default = createRule({
78
78
  return {
79
79
  JSXElement(node) {
80
80
  const elementName = core.getElementRepresentName(node.openingElement, context);
81
- if (!elementName || !voidElements.has(elementName)) return;
81
+ if (!elementName || !voidElements.includes(elementName)) return;
82
82
  if (node.children.length > 0) {
83
83
  context.report({
84
84
  messageId: "noChildrenInVoidDomElements",
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.17.4-next.10";
12
+ var version = "1.17.4-next.11";
13
13
  var createRule = createRuleForPlugin("dom");
14
14
  function findAttrInCustomAttributes(name2, attributes) {
15
15
  return F.pipe(
@@ -21,7 +21,7 @@ function findAttrInCustomAttributes(name2, attributes) {
21
21
 
22
22
  // src/rules/no-children-in-void-dom-elements.ts
23
23
  var RULE_NAME = "no-children-in-void-dom-elements";
24
- var voidElements = /* @__PURE__ */ new Set([
24
+ var voidElements = [
25
25
  "area",
26
26
  "base",
27
27
  "br",
@@ -38,7 +38,7 @@ var voidElements = /* @__PURE__ */ new Set([
38
38
  "source",
39
39
  "track",
40
40
  "wbr"
41
- ]);
41
+ ];
42
42
  var no_children_in_void_dom_elements_default = createRule({
43
43
  meta: {
44
44
  type: "problem",
@@ -55,7 +55,7 @@ var no_children_in_void_dom_elements_default = createRule({
55
55
  return {
56
56
  JSXElement(node) {
57
57
  const elementName = getElementRepresentName(node.openingElement, context);
58
- if (!elementName || !voidElements.has(elementName)) return;
58
+ if (!elementName || !voidElements.includes(elementName)) return;
59
59
  if (node.children.length > 0) {
60
60
  context.report({
61
61
  messageId: "noChildrenInVoidDomElements",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "1.17.4-next.10",
3
+ "version": "1.17.4-next.11",
4
4
  "description": "ESLint React's ESLint plugin for React DOM related rules.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -47,13 +47,13 @@
47
47
  "@typescript-eslint/utils": "^8.17.0",
48
48
  "compare-versions": "^6.1.1",
49
49
  "ts-pattern": "^5.5.0",
50
- "@eslint-react/ast": "1.17.4-next.10",
51
- "@eslint-react/core": "1.17.4-next.10",
52
- "@eslint-react/jsx": "1.17.4-next.10",
53
- "@eslint-react/shared": "1.17.4-next.10",
54
- "@eslint-react/var": "1.17.4-next.10",
55
- "@eslint-react/tools": "1.17.4-next.10",
56
- "@eslint-react/types": "1.17.4-next.10"
50
+ "@eslint-react/ast": "1.17.4-next.11",
51
+ "@eslint-react/core": "1.17.4-next.11",
52
+ "@eslint-react/jsx": "1.17.4-next.11",
53
+ "@eslint-react/shared": "1.17.4-next.11",
54
+ "@eslint-react/tools": "1.17.4-next.11",
55
+ "@eslint-react/types": "1.17.4-next.11",
56
+ "@eslint-react/var": "1.17.4-next.11"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/react": "^19.0.1",