eslint-plugin-react-dom 2.0.0-next.178 → 2.0.0-next.179

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 +11 -11
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -3,21 +3,22 @@ import * as ER from "@eslint-react/core";
3
3
  import { ESLintUtils } from "@typescript-eslint/utils";
4
4
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
5
5
  import { compare } from "compare-versions";
6
- import { RegExp, Reporter } from "@eslint-react/kit";
6
+ import { RE_JAVASCRIPT_PROTOCOL } from "@eslint-react/kit";
7
7
 
8
8
  //#region rolldown:runtime
9
9
  var __defProp = Object.defineProperty;
10
- var __export = (target, all) => {
10
+ var __export = (all) => {
11
+ let target = {};
11
12
  for (var name$2 in all) __defProp(target, name$2, {
12
13
  get: all[name$2],
13
14
  enumerable: true
14
15
  });
16
+ return target;
15
17
  };
16
18
 
17
19
  //#endregion
18
20
  //#region src/configs/recommended.ts
19
- var recommended_exports = {};
20
- __export(recommended_exports, {
21
+ var recommended_exports = __export({
21
22
  name: () => name$1,
22
23
  rules: () => rules,
23
24
  settings: () => settings
@@ -46,7 +47,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
46
47
  //#endregion
47
48
  //#region package.json
48
49
  var name = "eslint-plugin-react-dom";
49
- var version = "2.0.0-next.178";
50
+ var version = "2.0.0-next.179";
50
51
 
51
52
  //#endregion
52
53
  //#region src/utils/create-jsx-element-resolver.ts
@@ -621,7 +622,7 @@ function create$6(context) {
621
622
  return { JSXAttribute(node) {
622
623
  if (node.name.type !== AST_NODE_TYPES.JSXIdentifier || node.value == null) return;
623
624
  const value = ER.resolveAttributeValue(context, node).toStatic();
624
- if (typeof value === "string" && RegExp.JAVASCRIPT_PROTOCOL.test(value)) context.report({
625
+ if (typeof value === "string" && RE_JAVASCRIPT_PROTOCOL.test(value)) context.report({
625
626
  messageId: "noScriptUrl",
626
627
  node: node.value
627
628
  });
@@ -1720,7 +1721,6 @@ var no_unknown_property_default = createRule({
1720
1721
  * @returns Rule listener
1721
1722
  */
1722
1723
  function create$4(context) {
1723
- const report = Reporter.make(context);
1724
1724
  /**
1725
1725
  * Gets the ignore configuration from rule options
1726
1726
  * @returns Array of attribute names to ignore
@@ -1742,7 +1742,7 @@ function create$4(context) {
1742
1742
  const name$2 = normalizeAttributeCase(actualName);
1743
1743
  if (tagNameHasDot(node)) return;
1744
1744
  if (isValidDataAttribute(name$2)) {
1745
- if (getRequireDataLowercase() && hasUpperCaseCharacter(name$2)) report.send({
1745
+ if (getRequireDataLowercase() && hasUpperCaseCharacter(name$2)) context.report({
1746
1746
  node,
1747
1747
  messageId: "dataLowercaseRequired",
1748
1748
  data: {
@@ -1758,7 +1758,7 @@ function create$4(context) {
1758
1758
  if (!isValidHTMLTagInJSX(node)) return;
1759
1759
  const allowedTags = has(ATTRIBUTE_TAGS_MAP, name$2) ? ATTRIBUTE_TAGS_MAP[name$2] : null;
1760
1760
  if (tagName && allowedTags) {
1761
- if (allowedTags.indexOf(tagName) === -1) report.send({
1761
+ if (allowedTags.indexOf(tagName) === -1) context.report({
1762
1762
  node,
1763
1763
  messageId: "invalidPropOnTag",
1764
1764
  data: {
@@ -1773,7 +1773,7 @@ function create$4(context) {
1773
1773
  const hasStandardNameButIsNotUsed = !!standardName && standardName !== name$2;
1774
1774
  if (!!standardName && standardName === name$2) return;
1775
1775
  if (hasStandardNameButIsNotUsed) {
1776
- report.send({
1776
+ context.report({
1777
1777
  node,
1778
1778
  messageId: "unknownPropWithStandardName",
1779
1779
  data: {
@@ -1786,7 +1786,7 @@ function create$4(context) {
1786
1786
  });
1787
1787
  return;
1788
1788
  }
1789
- report.send({
1789
+ context.report({
1790
1790
  node,
1791
1791
  messageId: "unknownProp",
1792
1792
  data: { name: actualName }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "2.0.0-next.178",
3
+ "version": "2.0.0-next.179",
4
4
  "description": "ESLint React's ESLint plugin for React DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -41,12 +41,12 @@
41
41
  "compare-versions": "^6.1.1",
42
42
  "string-ts": "^2.2.1",
43
43
  "ts-pattern": "^5.8.0",
44
- "@eslint-react/core": "2.0.0-next.178",
45
- "@eslint-react/ast": "2.0.0-next.178",
46
- "@eslint-react/eff": "2.0.0-next.178",
47
- "@eslint-react/kit": "2.0.0-next.178",
48
- "@eslint-react/shared": "2.0.0-next.178",
49
- "@eslint-react/var": "2.0.0-next.178"
44
+ "@eslint-react/ast": "2.0.0-next.179",
45
+ "@eslint-react/core": "2.0.0-next.179",
46
+ "@eslint-react/eff": "2.0.0-next.179",
47
+ "@eslint-react/kit": "2.0.0-next.179",
48
+ "@eslint-react/shared": "2.0.0-next.179",
49
+ "@eslint-react/var": "2.0.0-next.179"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/react": "^19.1.12",