eslint-plugin-react-dom 1.47.3-next.0 → 1.47.4-beta.0
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 +4 -4
- package/package.json +11 -11
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.47.
|
|
70
|
+
var version = "1.47.4-beta.0";
|
|
71
71
|
function createJsxElementResolver(context) {
|
|
72
72
|
const {
|
|
73
73
|
additionalComponents,
|
|
@@ -681,7 +681,7 @@ function create11(context) {
|
|
|
681
681
|
}
|
|
682
682
|
const attributeValue = ER__namespace.getAttributeValue(context, node, ER__namespace.getAttributeName(context, node));
|
|
683
683
|
if (attributeValue.kind === "none" || typeof attributeValue.value !== "string") return;
|
|
684
|
-
if (kit.
|
|
684
|
+
if (kit.RegExp.JAVASCRIPT_PROTOCOL.test(attributeValue.value)) {
|
|
685
685
|
context.report({
|
|
686
686
|
messageId: "noScriptUrl",
|
|
687
687
|
node: node.value
|
|
@@ -1658,7 +1658,7 @@ var no_unknown_property_default = createRule({
|
|
|
1658
1658
|
defaultOptions: []
|
|
1659
1659
|
});
|
|
1660
1660
|
function create12(context) {
|
|
1661
|
-
const report = kit.
|
|
1661
|
+
const report = kit.Reporter.make(context);
|
|
1662
1662
|
function getIgnoreConfig() {
|
|
1663
1663
|
return context.options[0]?.ignore || DEFAULTS.ignore;
|
|
1664
1664
|
}
|
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 {
|
|
7
|
+
import { RegExp, Reporter } 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.47.
|
|
47
|
+
var version = "1.47.4-beta.0";
|
|
48
48
|
function createJsxElementResolver(context) {
|
|
49
49
|
const {
|
|
50
50
|
additionalComponents,
|
|
@@ -658,7 +658,7 @@ function create11(context) {
|
|
|
658
658
|
}
|
|
659
659
|
const attributeValue = ER.getAttributeValue(context, node, ER.getAttributeName(context, node));
|
|
660
660
|
if (attributeValue.kind === "none" || typeof attributeValue.value !== "string") return;
|
|
661
|
-
if (
|
|
661
|
+
if (RegExp.JAVASCRIPT_PROTOCOL.test(attributeValue.value)) {
|
|
662
662
|
context.report({
|
|
663
663
|
messageId: "noScriptUrl",
|
|
664
664
|
node: node.value
|
|
@@ -1635,7 +1635,7 @@ var no_unknown_property_default = createRule({
|
|
|
1635
1635
|
defaultOptions: []
|
|
1636
1636
|
});
|
|
1637
1637
|
function create12(context) {
|
|
1638
|
-
const report =
|
|
1638
|
+
const report = Reporter.make(context);
|
|
1639
1639
|
function getIgnoreConfig() {
|
|
1640
1640
|
return context.options[0]?.ignore || DEFAULTS.ignore;
|
|
1641
1641
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-dom",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.4-beta.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"./package.json"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
47
|
-
"@typescript-eslint/types": "^8.
|
|
48
|
-
"@typescript-eslint/utils": "^8.
|
|
46
|
+
"@typescript-eslint/scope-manager": "^8.30.1",
|
|
47
|
+
"@typescript-eslint/types": "^8.30.1",
|
|
48
|
+
"@typescript-eslint/utils": "^8.30.1",
|
|
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.47.
|
|
53
|
-
"@eslint-react/eff": "1.47.
|
|
54
|
-
"@eslint-react/core": "1.47.
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/shared": "1.47.
|
|
57
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.47.4-beta.0",
|
|
53
|
+
"@eslint-react/eff": "1.47.4-beta.0",
|
|
54
|
+
"@eslint-react/core": "1.47.4-beta.0",
|
|
55
|
+
"@eslint-react/var": "1.47.4-beta.0",
|
|
56
|
+
"@eslint-react/shared": "1.47.4-beta.0",
|
|
57
|
+
"@eslint-react/kit": "1.47.4-beta.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@types/react": "^19.1.
|
|
60
|
+
"@types/react": "^19.1.2",
|
|
61
61
|
"@types/react-dom": "^19.1.2",
|
|
62
62
|
"tsup": "^8.4.0",
|
|
63
63
|
"@local/configs": "0.0.0"
|