eslint-plugin-react-dom 1.45.3-next.0 → 1.45.4-beta.5
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 +6 -6
- package/dist/index.mjs +7 -7
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -67,7 +67,7 @@ var settings = {
|
|
|
67
67
|
|
|
68
68
|
// package.json
|
|
69
69
|
var name2 = "eslint-plugin-react-dom";
|
|
70
|
-
var version = "1.45.
|
|
70
|
+
var version = "1.45.4-beta.5";
|
|
71
71
|
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("dom"));
|
|
72
72
|
|
|
73
73
|
// src/utils/find-custom-component.ts
|
|
@@ -1633,7 +1633,7 @@ var no_unknown_property_default = createRule({
|
|
|
1633
1633
|
defaultOptions: []
|
|
1634
1634
|
});
|
|
1635
1635
|
function create12(context) {
|
|
1636
|
-
const report = kit.
|
|
1636
|
+
const report = kit.Report.make(context);
|
|
1637
1637
|
function getIgnoreConfig() {
|
|
1638
1638
|
return context.options[0]?.ignore || DEFAULTS.ignore;
|
|
1639
1639
|
}
|
|
@@ -1653,7 +1653,7 @@ function create12(context) {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
if (isValidDataAttribute(name3)) {
|
|
1655
1655
|
if (getRequireDataLowercase() && hasUpperCaseCharacter(name3)) {
|
|
1656
|
-
report({
|
|
1656
|
+
report.send({
|
|
1657
1657
|
node,
|
|
1658
1658
|
messageId: "dataLowercaseRequired",
|
|
1659
1659
|
data: {
|
|
@@ -1671,7 +1671,7 @@ function create12(context) {
|
|
|
1671
1671
|
const allowedTags = has(ATTRIBUTE_TAGS_MAP, name3) ? ATTRIBUTE_TAGS_MAP[name3] : null;
|
|
1672
1672
|
if (tagName && allowedTags) {
|
|
1673
1673
|
if (allowedTags.indexOf(tagName) === -1) {
|
|
1674
|
-
report({
|
|
1674
|
+
report.send({
|
|
1675
1675
|
node,
|
|
1676
1676
|
messageId: "invalidPropOnTag",
|
|
1677
1677
|
data: {
|
|
@@ -1690,7 +1690,7 @@ function create12(context) {
|
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
1692
|
if (hasStandardNameButIsNotUsed) {
|
|
1693
|
-
report({
|
|
1693
|
+
report.send({
|
|
1694
1694
|
node,
|
|
1695
1695
|
messageId: "unknownPropWithStandardName",
|
|
1696
1696
|
data: {
|
|
@@ -1703,7 +1703,7 @@ function create12(context) {
|
|
|
1703
1703
|
});
|
|
1704
1704
|
return;
|
|
1705
1705
|
}
|
|
1706
|
-
report({
|
|
1706
|
+
report.send({
|
|
1707
1707
|
node,
|
|
1708
1708
|
messageId: "unknownProp",
|
|
1709
1709
|
data: {
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { ESLintUtils } from '@typescript-eslint/utils';
|
|
|
4
4
|
import * as AST from '@eslint-react/ast';
|
|
5
5
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
6
6
|
import { compare } from 'compare-versions';
|
|
7
|
-
import { RE,
|
|
7
|
+
import { RE, Report } from '@eslint-react/kit';
|
|
8
8
|
import { _ } from '@eslint-react/eff';
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -44,7 +44,7 @@ var settings = {
|
|
|
44
44
|
|
|
45
45
|
// package.json
|
|
46
46
|
var name2 = "eslint-plugin-react-dom";
|
|
47
|
-
var version = "1.45.
|
|
47
|
+
var version = "1.45.4-beta.5";
|
|
48
48
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("dom"));
|
|
49
49
|
|
|
50
50
|
// src/utils/find-custom-component.ts
|
|
@@ -1610,7 +1610,7 @@ var no_unknown_property_default = createRule({
|
|
|
1610
1610
|
defaultOptions: []
|
|
1611
1611
|
});
|
|
1612
1612
|
function create12(context) {
|
|
1613
|
-
const report =
|
|
1613
|
+
const report = Report.make(context);
|
|
1614
1614
|
function getIgnoreConfig() {
|
|
1615
1615
|
return context.options[0]?.ignore || DEFAULTS.ignore;
|
|
1616
1616
|
}
|
|
@@ -1630,7 +1630,7 @@ function create12(context) {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
if (isValidDataAttribute(name3)) {
|
|
1632
1632
|
if (getRequireDataLowercase() && hasUpperCaseCharacter(name3)) {
|
|
1633
|
-
report({
|
|
1633
|
+
report.send({
|
|
1634
1634
|
node,
|
|
1635
1635
|
messageId: "dataLowercaseRequired",
|
|
1636
1636
|
data: {
|
|
@@ -1648,7 +1648,7 @@ function create12(context) {
|
|
|
1648
1648
|
const allowedTags = has(ATTRIBUTE_TAGS_MAP, name3) ? ATTRIBUTE_TAGS_MAP[name3] : null;
|
|
1649
1649
|
if (tagName && allowedTags) {
|
|
1650
1650
|
if (allowedTags.indexOf(tagName) === -1) {
|
|
1651
|
-
report({
|
|
1651
|
+
report.send({
|
|
1652
1652
|
node,
|
|
1653
1653
|
messageId: "invalidPropOnTag",
|
|
1654
1654
|
data: {
|
|
@@ -1667,7 +1667,7 @@ function create12(context) {
|
|
|
1667
1667
|
return;
|
|
1668
1668
|
}
|
|
1669
1669
|
if (hasStandardNameButIsNotUsed) {
|
|
1670
|
-
report({
|
|
1670
|
+
report.send({
|
|
1671
1671
|
node,
|
|
1672
1672
|
messageId: "unknownPropWithStandardName",
|
|
1673
1673
|
data: {
|
|
@@ -1680,7 +1680,7 @@ function create12(context) {
|
|
|
1680
1680
|
});
|
|
1681
1681
|
return;
|
|
1682
1682
|
}
|
|
1683
|
-
report({
|
|
1683
|
+
report.send({
|
|
1684
1684
|
node,
|
|
1685
1685
|
messageId: "unknownProp",
|
|
1686
1686
|
data: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-dom",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.4-beta.5",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"compare-versions": "^6.1.1",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.7.0",
|
|
52
|
-
"@eslint-react/ast": "1.45.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/kit": "1.45.
|
|
57
|
-
"@eslint-react/
|
|
58
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.45.4-beta.5",
|
|
53
|
+
"@eslint-react/core": "1.45.4-beta.5",
|
|
54
|
+
"@eslint-react/jsx": "1.45.4-beta.5",
|
|
55
|
+
"@eslint-react/eff": "1.45.4-beta.5",
|
|
56
|
+
"@eslint-react/kit": "1.45.4-beta.5",
|
|
57
|
+
"@eslint-react/shared": "1.45.4-beta.5",
|
|
58
|
+
"@eslint-react/var": "1.45.4-beta.5"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.1.1",
|