eslint-plugin-react-dom 1.37.4-next.0 → 1.38.0-beta.11
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -4
- package/dist/index.mjs +5 -3
- package/package.json +8 -7
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var shared = require('@eslint-react/shared');
|
|
4
4
|
var JSX = require('@eslint-react/jsx');
|
|
5
|
+
var utils = require('@typescript-eslint/utils');
|
|
5
6
|
var types = require('@typescript-eslint/types');
|
|
6
7
|
var compareVersions = require('compare-versions');
|
|
7
8
|
var AST = require('@eslint-react/ast');
|
|
9
|
+
var kit = require('@eslint-react/kit');
|
|
8
10
|
var eff = require('@eslint-react/eff');
|
|
9
11
|
|
|
10
12
|
function _interopNamespace(e) {
|
|
@@ -66,8 +68,8 @@ var settings = {
|
|
|
66
68
|
|
|
67
69
|
// package.json
|
|
68
70
|
var name2 = "eslint-plugin-react-dom";
|
|
69
|
-
var version = "1.
|
|
70
|
-
var createRule = shared.
|
|
71
|
+
var version = "1.38.0-beta.11";
|
|
72
|
+
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("dom"));
|
|
71
73
|
|
|
72
74
|
// src/utils/find-custom-component.ts
|
|
73
75
|
function findCustomComponent(name3, components) {
|
|
@@ -655,7 +657,7 @@ function create11(context) {
|
|
|
655
657
|
const attributeName = JSX__namespace.getAttributeName(node);
|
|
656
658
|
const attributeValue = JSX__namespace.getAttributeValue(node, attributeName, attributeScope);
|
|
657
659
|
if (attributeValue.kind === "none" || typeof attributeValue.value !== "string") return;
|
|
658
|
-
if (
|
|
660
|
+
if (kit.RE_JAVASCRIPT_PROTOCOL.test(attributeValue.value)) {
|
|
659
661
|
context.report({
|
|
660
662
|
messageId: "noScriptUrl",
|
|
661
663
|
node: node.value
|
|
@@ -1632,7 +1634,7 @@ var no_unknown_property_default = createRule({
|
|
|
1632
1634
|
defaultOptions: []
|
|
1633
1635
|
});
|
|
1634
1636
|
function create12(context) {
|
|
1635
|
-
const report =
|
|
1637
|
+
const report = kit.createReport(context);
|
|
1636
1638
|
function getIgnoreConfig() {
|
|
1637
1639
|
return context.options[0]?.ignore || DEFAULTS.ignore;
|
|
1638
1640
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDocsUrl, getSettingsFromContext, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
|
|
2
2
|
import * as JSX from '@eslint-react/jsx';
|
|
3
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
3
4
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
4
5
|
import { compare } from 'compare-versions';
|
|
5
6
|
import * as AST from '@eslint-react/ast';
|
|
7
|
+
import { RE_JAVASCRIPT_PROTOCOL, createReport } from '@eslint-react/kit';
|
|
6
8
|
import { _ } from '@eslint-react/eff';
|
|
7
9
|
|
|
8
10
|
var __defProp = Object.defineProperty;
|
|
@@ -43,8 +45,8 @@ var settings = {
|
|
|
43
45
|
|
|
44
46
|
// package.json
|
|
45
47
|
var name2 = "eslint-plugin-react-dom";
|
|
46
|
-
var version = "1.
|
|
47
|
-
var createRule =
|
|
48
|
+
var version = "1.38.0-beta.11";
|
|
49
|
+
var createRule = ESLintUtils.RuleCreator(getDocsUrl("dom"));
|
|
48
50
|
|
|
49
51
|
// src/utils/find-custom-component.ts
|
|
50
52
|
function findCustomComponent(name3, components) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-dom",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0-beta.11",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,12 +49,13 @@
|
|
|
49
49
|
"compare-versions": "^6.1.1",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.6.2",
|
|
52
|
-
"@eslint-react/ast": "1.
|
|
53
|
-
"@eslint-react/eff": "1.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/jsx": "1.
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.38.0-beta.11",
|
|
53
|
+
"@eslint-react/eff": "1.38.0-beta.11",
|
|
54
|
+
"@eslint-react/core": "1.38.0-beta.11",
|
|
55
|
+
"@eslint-react/jsx": "1.38.0-beta.11",
|
|
56
|
+
"@eslint-react/kit": "1.38.0-beta.11",
|
|
57
|
+
"@eslint-react/shared": "1.38.0-beta.11",
|
|
58
|
+
"@eslint-react/var": "1.38.0-beta.11"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"@types/react": "^19.0.12",
|