eslint-plugin-react-dom 1.23.1 → 1.23.2-beta.2
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 +8 -8
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var AST__namespace = /*#__PURE__*/_interopNamespace(AST);
|
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
34
|
var name = "eslint-plugin-react-dom";
|
|
35
|
-
var version = "1.23.
|
|
35
|
+
var version = "1.23.2-beta.2";
|
|
36
36
|
var createRule = shared.createRuleForPlugin("dom");
|
|
37
37
|
function findAttrInCustomAttributes(name2, attributes) {
|
|
38
38
|
return eff.F.pipe(
|
|
@@ -1428,7 +1428,7 @@ function report(context, message, messageId, data) {
|
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
1430
|
function testReactVersion(context, comparator, version2) {
|
|
1431
|
-
const { version: localVersion } = shared.
|
|
1431
|
+
const { version: localVersion } = shared.getSettingsFromContext(context);
|
|
1432
1432
|
return compareVersions.compare(localVersion, version2, comparator);
|
|
1433
1433
|
}
|
|
1434
1434
|
var RULE_NAME10 = "no-unsafe-iframe-sandbox";
|
|
@@ -1506,7 +1506,7 @@ var no_unsafe_target_blank_default = createRule({
|
|
|
1506
1506
|
},
|
|
1507
1507
|
name: RULE_NAME11,
|
|
1508
1508
|
create(context) {
|
|
1509
|
-
const settings = shared.
|
|
1509
|
+
const settings = shared.getSettingsFromContext(context);
|
|
1510
1510
|
const additionalComponents = settings.additionalComponents.filter((c) => c.as === "a");
|
|
1511
1511
|
function getReportDescriptor(node) {
|
|
1512
1512
|
const name2 = JSX8__namespace.getElementName(node.openingElement);
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O, F, isString, isNullable } from '@eslint-react/eff';
|
|
2
2
|
import * as JSX8 from '@eslint-react/jsx';
|
|
3
|
-
import { createRuleForPlugin, RE_JAVASCRIPT_PROTOCOL,
|
|
3
|
+
import { createRuleForPlugin, RE_JAVASCRIPT_PROTOCOL, getSettingsFromContext } from '@eslint-react/shared';
|
|
4
4
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
5
5
|
import { getElementRepresentName } from '@eslint-react/core';
|
|
6
6
|
import * as AST from '@eslint-react/ast';
|
|
@@ -9,7 +9,7 @@ import { match, P } from 'ts-pattern';
|
|
|
9
9
|
|
|
10
10
|
// package.json
|
|
11
11
|
var name = "eslint-plugin-react-dom";
|
|
12
|
-
var version = "1.23.
|
|
12
|
+
var version = "1.23.2-beta.2";
|
|
13
13
|
var createRule = createRuleForPlugin("dom");
|
|
14
14
|
function findAttrInCustomAttributes(name2, attributes) {
|
|
15
15
|
return F.pipe(
|
|
@@ -1405,7 +1405,7 @@ function report(context, message, messageId, data) {
|
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
1407
|
function testReactVersion(context, comparator, version2) {
|
|
1408
|
-
const { version: localVersion } =
|
|
1408
|
+
const { version: localVersion } = getSettingsFromContext(context);
|
|
1409
1409
|
return compare(localVersion, version2, comparator);
|
|
1410
1410
|
}
|
|
1411
1411
|
var RULE_NAME10 = "no-unsafe-iframe-sandbox";
|
|
@@ -1483,7 +1483,7 @@ var no_unsafe_target_blank_default = createRule({
|
|
|
1483
1483
|
},
|
|
1484
1484
|
name: RULE_NAME11,
|
|
1485
1485
|
create(context) {
|
|
1486
|
-
const settings =
|
|
1486
|
+
const settings = getSettingsFromContext(context);
|
|
1487
1487
|
const additionalComponents = settings.additionalComponents.filter((c) => c.as === "a");
|
|
1488
1488
|
function getReportDescriptor(node) {
|
|
1489
1489
|
const name2 = JSX8.getElementName(node.openingElement);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-dom",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.2-beta.2",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"compare-versions": "^6.1.1",
|
|
48
48
|
"string-ts": "^2.2.0",
|
|
49
49
|
"ts-pattern": "^5.6.0",
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/shared": "1.23.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
50
|
+
"@eslint-react/ast": "1.23.2-beta.2",
|
|
51
|
+
"@eslint-react/eff": "1.23.2-beta.2",
|
|
52
|
+
"@eslint-react/jsx": "1.23.2-beta.2",
|
|
53
|
+
"@eslint-react/shared": "1.23.2-beta.2",
|
|
54
|
+
"@eslint-react/core": "1.23.2-beta.2",
|
|
55
|
+
"@eslint-react/var": "1.23.2-beta.2",
|
|
56
|
+
"@eslint-react/types": "1.23.2-beta.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.2",
|