eslint-plugin-react-dom 2.0.0-next.4 → 2.0.0-next.43
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 -2
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var settings = {
|
|
|
44
44
|
|
|
45
45
|
// package.json
|
|
46
46
|
var name2 = "eslint-plugin-react-dom";
|
|
47
|
-
var version = "2.0.0-next.
|
|
47
|
+
var version = "2.0.0-next.43";
|
|
48
48
|
function createJsxElementResolver(context) {
|
|
49
49
|
const { components, polymorphicPropName } = getSettingsFromContext(context);
|
|
50
50
|
return {
|
|
@@ -1965,9 +1965,10 @@ var no_void_elements_with_children_default = createRule({
|
|
|
1965
1965
|
defaultOptions: []
|
|
1966
1966
|
});
|
|
1967
1967
|
function create16(context) {
|
|
1968
|
+
const resolver = createJsxElementResolver(context);
|
|
1968
1969
|
return {
|
|
1969
1970
|
JSXElement(node) {
|
|
1970
|
-
const elementName =
|
|
1971
|
+
const { domElementType: elementName } = resolver.resolve(node);
|
|
1971
1972
|
if (elementName.length === 0 || !voidElements.has(elementName)) {
|
|
1972
1973
|
return;
|
|
1973
1974
|
}
|
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.43",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -35,27 +35,27 @@
|
|
|
35
35
|
"./package.json"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
39
|
-
"@typescript-eslint/types": "^8.
|
|
40
|
-
"@typescript-eslint/utils": "^8.
|
|
38
|
+
"@typescript-eslint/scope-manager": "^8.34.0",
|
|
39
|
+
"@typescript-eslint/types": "^8.34.0",
|
|
40
|
+
"@typescript-eslint/utils": "^8.34.0",
|
|
41
41
|
"compare-versions": "^6.1.1",
|
|
42
42
|
"string-ts": "^2.2.1",
|
|
43
|
-
"ts-pattern": "^5.7.
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/kit": "2.0.0-next.
|
|
48
|
-
"@eslint-react/shared": "2.0.0-next.
|
|
49
|
-
"@eslint-react/
|
|
43
|
+
"ts-pattern": "^5.7.1",
|
|
44
|
+
"@eslint-react/core": "2.0.0-next.43",
|
|
45
|
+
"@eslint-react/eff": "2.0.0-next.43",
|
|
46
|
+
"@eslint-react/ast": "2.0.0-next.43",
|
|
47
|
+
"@eslint-react/kit": "2.0.0-next.43",
|
|
48
|
+
"@eslint-react/shared": "2.0.0-next.43",
|
|
49
|
+
"@eslint-react/var": "2.0.0-next.43"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/react": "^19.1.
|
|
53
|
-
"@types/react-dom": "^19.1.
|
|
54
|
-
"tsup": "^8.
|
|
52
|
+
"@types/react": "^19.1.8",
|
|
53
|
+
"@types/react-dom": "^19.1.6",
|
|
54
|
+
"tsup": "^8.5.0",
|
|
55
55
|
"@local/configs": "0.0.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"eslint": "^9.
|
|
58
|
+
"eslint": "^9.28.0",
|
|
59
59
|
"typescript": "^4.9.5 || ^5.4.5"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|