eslint-plugin-react-dom 2.0.0-next.155 → 2.0.0-next.156
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 +8 -1
- package/package.json +7 -7
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.156";
|
|
51
51
|
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/utils/create-jsx-element-resolver.ts
|
|
@@ -81,6 +81,13 @@ const createRule = ESLintUtils.RuleCreator(getDocsUrl("dom"));
|
|
|
81
81
|
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/utils/find-custom-component.ts
|
|
84
|
+
/**
|
|
85
|
+
* Finds a custom component prop by its "as" name.
|
|
86
|
+
*
|
|
87
|
+
* @param name - The name to match against the prop's "as" property
|
|
88
|
+
* @param props - Array of normalized custom component props to search through
|
|
89
|
+
* @returns The matching prop if found, undefined otherwise
|
|
90
|
+
*/
|
|
84
91
|
function findCustomComponentProp(name$2, props) {
|
|
85
92
|
return props.findLast((a) => a.as === name$2);
|
|
86
93
|
}
|
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.156",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,12 +41,12 @@
|
|
|
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.156",
|
|
45
|
+
"@eslint-react/core": "2.0.0-next.156",
|
|
46
|
+
"@eslint-react/eff": "2.0.0-next.156",
|
|
47
|
+
"@eslint-react/shared": "2.0.0-next.156",
|
|
48
|
+
"@eslint-react/var": "2.0.0-next.156",
|
|
49
|
+
"@eslint-react/kit": "2.0.0-next.156"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.1.12",
|