eslint-plugin-react-dom 3.0.0-next.20 → 3.0.0-next.23

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 +7 -7
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ var __exportAll = (all, no_symbols) => {
23
23
  //#endregion
24
24
  //#region package.json
25
25
  var name$2 = "eslint-plugin-react-dom";
26
- var version = "3.0.0-next.20";
26
+ var version = "3.0.0-next.23";
27
27
 
28
28
  //#endregion
29
29
  //#region src/utils/create-jsx-element-resolver.ts
@@ -1649,7 +1649,7 @@ function create$5(context) {
1649
1649
  return defineRuleListener({ JSXAttribute(node) {
1650
1650
  const ignoreNames = getIgnoreConfig();
1651
1651
  const actualName = getText(context, node.name);
1652
- if (ignoreNames.indexOf(actualName) >= 0) return;
1652
+ if (ignoreNames.includes(actualName)) return;
1653
1653
  const name = normalizeAttributeCase(actualName);
1654
1654
  if (tagNameHasDot(node)) return;
1655
1655
  if (isValidDataAttribute(name)) {
@@ -1669,7 +1669,7 @@ function create$5(context) {
1669
1669
  if (!isValidHTMLTagInJSX(node)) return;
1670
1670
  const allowedTags = has(ATTRIBUTE_TAGS_MAP, name) ? ATTRIBUTE_TAGS_MAP[name] : null;
1671
1671
  if (tagName != null && allowedTags != null) {
1672
- if (allowedTags.indexOf(tagName) === -1) context.report({
1672
+ if (!allowedTags.includes(tagName)) context.report({
1673
1673
  messageId: "invalidPropOnTag",
1674
1674
  node,
1675
1675
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "3.0.0-next.20",
3
+ "version": "3.0.0-next.23",
4
4
  "description": "ESLint React's ESLint plugin for DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -43,11 +43,11 @@
43
43
  "@typescript-eslint/utils": "canary",
44
44
  "compare-versions": "^6.1.1",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/ast": "3.0.0-next.20",
47
- "@eslint-react/core": "3.0.0-next.20",
48
- "@eslint-react/eff": "3.0.0-next.20",
49
- "@eslint-react/var": "3.0.0-next.20",
50
- "@eslint-react/shared": "3.0.0-next.20"
46
+ "@eslint-react/ast": "3.0.0-next.23",
47
+ "@eslint-react/eff": "3.0.0-next.23",
48
+ "@eslint-react/shared": "3.0.0-next.23",
49
+ "@eslint-react/core": "3.0.0-next.23",
50
+ "@eslint-react/var": "3.0.0-next.23"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.14",
@@ -68,6 +68,6 @@
68
68
  "scripts": {
69
69
  "build": "tsdown",
70
70
  "lint:publish": "publint",
71
- "lint:ts": "tsc --noEmit"
71
+ "lint:ts": "tsl"
72
72
  }
73
73
  }