eslint-plugin-react-dom 2.0.0-next.153 → 2.0.0-next.154
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.ts +7 -65
- package/dist/index.js +5 -5
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,55 +1,15 @@
|
|
|
1
|
+
import * as _eslint_react_shared0 from "@eslint-react/shared";
|
|
1
2
|
import { RulePreset } from "@eslint-react/kit";
|
|
2
|
-
import * as _typescript_eslint_utils_ts_eslint0 from "@typescript-eslint/utils/ts-eslint";
|
|
3
|
-
import { CamelCase } from "string-ts";
|
|
4
3
|
|
|
5
|
-
//#region src/rules/no-missing-button-type.d.ts
|
|
6
|
-
declare const RULE_NAME$2 = "no-missing-button-type";
|
|
7
|
-
type MessageID$2 = CamelCase<typeof RULE_NAME$2> | RuleSuggestMessageID$2;
|
|
8
|
-
type RuleSuggestMessageID$2 = "addButtonType";
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/rules/no-missing-iframe-sandbox.d.ts
|
|
11
|
-
declare const RULE_NAME$1 = "no-missing-iframe-sandbox";
|
|
12
|
-
type MessageID$1 = CamelCase<typeof RULE_NAME$1> | RuleSuggestMessageID$1;
|
|
13
|
-
type RuleSuggestMessageID$1 = "addIframeSandbox";
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/rules/no-unsafe-target-blank.d.ts
|
|
16
|
-
declare const RULE_NAME = "no-unsafe-target-blank";
|
|
17
|
-
type MessageID = CamelCase<typeof RULE_NAME> | RuleSuggestMessageID;
|
|
18
|
-
type RuleSuggestMessageID = "addRelNoreferrerNoopener";
|
|
19
|
-
//#endregion
|
|
20
4
|
//#region src/index.d.ts
|
|
21
5
|
declare const _default: {
|
|
22
6
|
configs: {
|
|
23
7
|
recommended: {
|
|
24
8
|
plugins: {
|
|
25
|
-
"react-dom":
|
|
26
|
-
readonly meta: {
|
|
27
|
-
readonly name: string;
|
|
28
|
-
readonly version: string;
|
|
29
|
-
};
|
|
30
|
-
readonly rules: {
|
|
31
|
-
readonly "no-dangerously-set-innerhtml": _typescript_eslint_utils_ts_eslint0.RuleModule<"noDangerouslySetInnerhtml", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
32
|
-
readonly "no-dangerously-set-innerhtml-with-children": _typescript_eslint_utils_ts_eslint0.RuleModule<"noDangerouslySetInnerhtmlWithChildren", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
33
|
-
readonly "no-find-dom-node": _typescript_eslint_utils_ts_eslint0.RuleModule<"noFindDomNode", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
34
|
-
readonly "no-flush-sync": _typescript_eslint_utils_ts_eslint0.RuleModule<"noFlushSync", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
35
|
-
readonly "no-hydrate": _typescript_eslint_utils_ts_eslint0.RuleModule<"noHydrate", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
36
|
-
readonly "no-missing-button-type": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
37
|
-
readonly "no-missing-iframe-sandbox": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
38
|
-
readonly "no-namespace": _typescript_eslint_utils_ts_eslint0.RuleModule<"noNamespace", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
39
|
-
readonly "no-render": _typescript_eslint_utils_ts_eslint0.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
40
|
-
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint0.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
41
|
-
readonly "no-script-url": _typescript_eslint_utils_ts_eslint0.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
42
|
-
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint0.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
43
|
-
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint0.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
44
|
-
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint0.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
45
|
-
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
46
|
-
readonly "no-use-form-state": _typescript_eslint_utils_ts_eslint0.RuleModule<"noUseFormState", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
47
|
-
readonly "no-void-elements-with-children": _typescript_eslint_utils_ts_eslint0.RuleModule<"noVoidElementsWithChildren", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
9
|
+
"react-dom": _eslint_react_shared0.CompatiblePlugin;
|
|
50
10
|
};
|
|
51
|
-
name
|
|
52
|
-
rules
|
|
11
|
+
name?: string;
|
|
12
|
+
rules?: Record<string, any>;
|
|
53
13
|
};
|
|
54
14
|
"recommended-legacy": {
|
|
55
15
|
plugins: string[];
|
|
@@ -57,28 +17,10 @@ declare const _default: {
|
|
|
57
17
|
};
|
|
58
18
|
};
|
|
59
19
|
meta: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
rules: {
|
|
64
|
-
readonly "no-dangerously-set-innerhtml": _typescript_eslint_utils_ts_eslint0.RuleModule<"noDangerouslySetInnerhtml", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
65
|
-
readonly "no-dangerously-set-innerhtml-with-children": _typescript_eslint_utils_ts_eslint0.RuleModule<"noDangerouslySetInnerhtmlWithChildren", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
66
|
-
readonly "no-find-dom-node": _typescript_eslint_utils_ts_eslint0.RuleModule<"noFindDomNode", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
67
|
-
readonly "no-flush-sync": _typescript_eslint_utils_ts_eslint0.RuleModule<"noFlushSync", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
68
|
-
readonly "no-hydrate": _typescript_eslint_utils_ts_eslint0.RuleModule<"noHydrate", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
69
|
-
readonly "no-missing-button-type": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
70
|
-
readonly "no-missing-iframe-sandbox": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
71
|
-
readonly "no-namespace": _typescript_eslint_utils_ts_eslint0.RuleModule<"noNamespace", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
72
|
-
readonly "no-render": _typescript_eslint_utils_ts_eslint0.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
73
|
-
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint0.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
74
|
-
readonly "no-script-url": _typescript_eslint_utils_ts_eslint0.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
75
|
-
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint0.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
76
|
-
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint0.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
77
|
-
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint0.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
78
|
-
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
79
|
-
readonly "no-use-form-state": _typescript_eslint_utils_ts_eslint0.RuleModule<"noUseFormState", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
80
|
-
readonly "no-void-elements-with-children": _typescript_eslint_utils_ts_eslint0.RuleModule<"noVoidElementsWithChildren", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
20
|
+
name: string;
|
|
21
|
+
version: string;
|
|
81
22
|
};
|
|
23
|
+
rules: Record<string, any>;
|
|
82
24
|
};
|
|
83
25
|
//#endregion
|
|
84
26
|
export { _default as default };
|
package/dist/index.js
CHANGED
|
@@ -47,7 +47,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region package.json
|
|
49
49
|
var name = "eslint-plugin-react-dom";
|
|
50
|
-
var version = "2.0.0-next.
|
|
50
|
+
var version = "2.0.0-next.154";
|
|
51
51
|
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/utils/create-jsx-element-resolver.ts
|
|
@@ -2050,13 +2050,13 @@ const plugin = {
|
|
|
2050
2050
|
|
|
2051
2051
|
//#endregion
|
|
2052
2052
|
//#region src/index.ts
|
|
2053
|
-
function
|
|
2053
|
+
function toFlatConfig(config) {
|
|
2054
2054
|
return {
|
|
2055
2055
|
...config,
|
|
2056
2056
|
plugins: { "react-dom": plugin }
|
|
2057
2057
|
};
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function toLegacyConfig({ rules: rules$1 }) {
|
|
2060
2060
|
return {
|
|
2061
2061
|
plugins: ["react-dom"],
|
|
2062
2062
|
rules: rules$1
|
|
@@ -2065,8 +2065,8 @@ function makeLegacyConfig({ rules: rules$1 }) {
|
|
|
2065
2065
|
var src_default = {
|
|
2066
2066
|
...plugin,
|
|
2067
2067
|
configs: {
|
|
2068
|
-
["recommended"]:
|
|
2069
|
-
["recommended-legacy"]:
|
|
2068
|
+
["recommended"]: toFlatConfig(recommended_exports),
|
|
2069
|
+
["recommended-legacy"]: toLegacyConfig(recommended_exports)
|
|
2070
2070
|
}
|
|
2071
2071
|
};
|
|
2072
2072
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-dom",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.154",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"compare-versions": "^6.1.1",
|
|
42
42
|
"string-ts": "^2.2.1",
|
|
43
43
|
"ts-pattern": "^5.8.0",
|
|
44
|
-
"@eslint-react/ast": "2.0.0-next.
|
|
45
|
-
"@eslint-react/core": "2.0.0-next.
|
|
46
|
-
"@eslint-react/eff": "2.0.0-next.
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/ast": "2.0.0-next.154",
|
|
45
|
+
"@eslint-react/core": "2.0.0-next.154",
|
|
46
|
+
"@eslint-react/eff": "2.0.0-next.154",
|
|
47
|
+
"@eslint-react/shared": "2.0.0-next.154",
|
|
48
|
+
"@eslint-react/var": "2.0.0-next.154",
|
|
49
|
+
"@eslint-react/kit": "2.0.0-next.154"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.1.12",
|
|
53
|
-
"@types/react-dom": "^19.1.
|
|
53
|
+
"@types/react-dom": "^19.1.9",
|
|
54
54
|
"tsdown": "^0.14.2",
|
|
55
55
|
"@local/configs": "0.0.0"
|
|
56
56
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
|
-
"build": "tsdown
|
|
76
|
+
"build": "tsdown",
|
|
77
77
|
"lint:publish": "publint",
|
|
78
78
|
"lint:ts": "tsc --noEmit"
|
|
79
79
|
}
|