eslint-plugin-react-debug 5.24.1 → 5.24.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 +1 -15
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region package.json
|
|
32
32
|
var name$1 = "eslint-plugin-react-debug";
|
|
33
|
-
var version = "5.24.
|
|
33
|
+
var version = "5.24.2";
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/utils/create-rule.ts
|
|
@@ -109,13 +109,6 @@ function create$3(context) {
|
|
|
109
109
|
|
|
110
110
|
//#endregion
|
|
111
111
|
//#region src/rules/is-from-react/lib.ts
|
|
112
|
-
/**
|
|
113
|
-
* Check if an identifier node is initialized from React
|
|
114
|
-
* @param node The identifier node to check
|
|
115
|
-
* @param initialScope Initial scope to search for the identifier
|
|
116
|
-
* @param importSource The import source to check against
|
|
117
|
-
* @returns Whether the identifier node is initialized from React
|
|
118
|
-
*/
|
|
119
112
|
function isFromReact(node, initialScope, importSource = "react") {
|
|
120
113
|
const name = node.name;
|
|
121
114
|
switch (true) {
|
|
@@ -171,13 +164,6 @@ function getRefInitNode(context, node, initialScope) {
|
|
|
171
164
|
default: return getRefInit(context, name, initialScope);
|
|
172
165
|
}
|
|
173
166
|
}
|
|
174
|
-
/**
|
|
175
|
-
* Get the init expression of a ref variable
|
|
176
|
-
* @param context The rule context
|
|
177
|
-
* @param name The variable name
|
|
178
|
-
* @param initialScope The initial scope
|
|
179
|
-
* @returns The init expression node if the variable is derived from a ref, or null otherwise
|
|
180
|
-
*/
|
|
181
167
|
function getRefInit(context, name, initialScope) {
|
|
182
168
|
const { additionalRefHooks } = getSettingsFromContext(context);
|
|
183
169
|
for (const { node } of findVariable(initialScope, name)?.defs ?? []) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "5.24.
|
|
3
|
+
"version": "5.24.2",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eslint-react/ast": "5.24.
|
|
41
|
-
"@eslint-react/core": "5.24.
|
|
42
|
-
"@eslint-react/eslint": "5.24.
|
|
43
|
-
"@eslint-react/jsx": "5.24.
|
|
44
|
-
"@eslint-react/shared": "5.24.
|
|
45
|
-
"@eslint-react/var": "5.24.
|
|
40
|
+
"@eslint-react/ast": "5.24.2",
|
|
41
|
+
"@eslint-react/core": "5.24.2",
|
|
42
|
+
"@eslint-react/eslint": "5.24.2",
|
|
43
|
+
"@eslint-react/jsx": "5.24.2",
|
|
44
|
+
"@eslint-react/shared": "5.24.2",
|
|
45
|
+
"@eslint-react/var": "5.24.2",
|
|
46
46
|
"@typescript-eslint/scope-manager": "^8.71.0",
|
|
47
47
|
"@typescript-eslint/types": "^8.71.0",
|
|
48
48
|
"@typescript-eslint/utils": "^8.71.0",
|