eslint-plugin-react-dom 5.28.2 → 5.28.3

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 +3 -3
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_ESLINT_REACT_SETTINGS, RE_JAVASCRIPT_PROTOCOL, getSettingsFromContext } from "@eslint-react/shared";
2
2
  import * as ESLintUtils from "@typescript-eslint/utils/eslint-utils";
3
3
  import "@eslint-react/eslint";
4
- import { findAttribute, getAttributeStaticValue, getElementFullType, hasAnyAttribute, hasAttribute, isHostElement, isPaddingWhitespace, resolveAttributeValue } from "@eslint-react/jsx";
4
+ import { findAttribute, getAttributeStaticValue, getElementFullType, hasAnyAttribute, hasAttribute, isAttribute, isHostElement, isPaddingWhitespace, resolveAttributeValue } from "@eslint-react/jsx";
5
5
  import { Check, Extract } from "@eslint-react/ast";
6
6
  import { createImportLookup } from "@eslint-react/var";
7
7
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
@@ -20,7 +20,7 @@ var __exportAll = (all, no_symbols) => {
20
20
  //#endregion
21
21
  //#region package.json
22
22
  var name$2 = "eslint-plugin-react-dom";
23
- var version = "5.28.2";
23
+ var version = "5.28.3";
24
24
  //#endregion
25
25
  //#region src/utils/create-rule.ts
26
26
  function getDocsUrl(ruleName) {
@@ -1458,7 +1458,7 @@ function getAttributeTagsMap(context) {
1458
1458
  return attributeTagsMap;
1459
1459
  }
1460
1460
  function isValidHTMLTagInJSX(childNode) {
1461
- if (childNode.parent.name.type === AST_NODE_TYPES.JSXIdentifier && /^[a-z][^-]*$/.test(childNode.parent.name.name)) return !childNode.parent.attributes.some((attrNode) => attrNode.type === AST_NODE_TYPES.JSXAttribute && attrNode.name.type === AST_NODE_TYPES.JSXIdentifier && attrNode.name.name === "is");
1461
+ if (childNode.parent.name.type === AST_NODE_TYPES.JSXIdentifier && /^[a-z][^-]*$/.test(childNode.parent.name.name)) return !childNode.parent.attributes.some(isAttribute("is"));
1462
1462
  return false;
1463
1463
  }
1464
1464
  function normalizeAttributeCase(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "5.28.2",
3
+ "version": "5.28.3",
4
4
  "description": "ESLint React's ESLint plugin for DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -37,13 +37,13 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@eslint-react/ast": "5.28.2",
41
- "@eslint-react/eslint": "5.28.2",
42
- "@eslint-react/jsx": "5.28.2",
43
- "@eslint-react/shared": "5.28.2",
44
- "@eslint-react/var": "5.28.2",
45
- "@typescript-eslint/types": "^8.71.2",
46
- "@typescript-eslint/utils": "^8.71.2",
40
+ "@eslint-react/ast": "5.28.3",
41
+ "@eslint-react/eslint": "5.28.3",
42
+ "@eslint-react/jsx": "5.28.3",
43
+ "@eslint-react/shared": "5.28.3",
44
+ "@eslint-react/var": "5.28.3",
45
+ "@typescript-eslint/types": "^8.72.0",
46
+ "@typescript-eslint/utils": "^8.72.0",
47
47
  "compare-versions": "^6.1.1",
48
48
  "ts-pattern": "^5.9.2"
49
49
  },