eslint-plugin-react-dom 1.23.3-next.5 → 1.23.3-next.7
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +8 -8
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.
|
|
35
|
+
var version = "1.23.3-next.7";
|
|
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 ||
|
|
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 (
|
|
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.
|
|
12
|
+
var version = "1.23.3-next.7";
|
|
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 ||
|
|
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 (
|
|
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.
|
|
3
|
+
"version": "1.23.3-next.7",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"compare-versions": "^6.1.1",
|
|
48
48
|
"string-ts": "^2.2.0",
|
|
49
49
|
"ts-pattern": "^5.6.0",
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/eff": "1.23.3-next.
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
50
|
+
"@eslint-react/ast": "1.23.3-next.7",
|
|
51
|
+
"@eslint-react/eff": "1.23.3-next.7",
|
|
52
|
+
"@eslint-react/shared": "1.23.3-next.7",
|
|
53
|
+
"@eslint-react/core": "1.23.3-next.7",
|
|
54
|
+
"@eslint-react/jsx": "1.23.3-next.7",
|
|
55
|
+
"@eslint-react/types": "1.23.3-next.7",
|
|
56
|
+
"@eslint-react/var": "1.23.3-next.7"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.4",
|