@eslint-react/core 5.27.1 → 5.27.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 -1
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -256,7 +256,7 @@ const isGetDefaultProps = createLifecycleChecker("getDefaultProps", true);
|
|
|
256
256
|
const isGetDerivedStateFromProps = createLifecycleChecker("getDerivedStateFromProps", true);
|
|
257
257
|
const isGetDerivedStateFromError = createLifecycleChecker("getDerivedStateFromError", true);
|
|
258
258
|
function isRenderMethodLike(node) {
|
|
259
|
-
return Check.isPropertyOrMethod(node) && Check.isIdentifier(node.key) && node.key.name.startsWith("render") && Check.
|
|
259
|
+
return Check.isPropertyOrMethod(node) && Check.isIdentifier(node.key) && node.key.name.startsWith("render") && Check.isClass(node.parent.parent);
|
|
260
260
|
}
|
|
261
261
|
function isRenderMethodCallback(node) {
|
|
262
262
|
let parent = node.parent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "5.27.
|
|
3
|
+
"version": "5.27.2",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint-react/ast": "5.27.
|
|
33
|
-
"@eslint-react/eslint": "5.27.
|
|
34
|
-
"@eslint-react/shared": "5.27.
|
|
35
|
-
"@eslint-react/var": "5.27.
|
|
32
|
+
"@eslint-react/ast": "5.27.2",
|
|
33
|
+
"@eslint-react/eslint": "5.27.2",
|
|
34
|
+
"@eslint-react/shared": "5.27.2",
|
|
35
|
+
"@eslint-react/var": "5.27.2",
|
|
36
36
|
"@typescript-eslint/types": "^8.71.2",
|
|
37
37
|
"@typescript-eslint/utils": "^8.71.2",
|
|
38
38
|
"ts-pattern": "^5.9.2"
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"@local/configs": "0.0.0",
|
|
42
42
|
"@local/eff": "0.0.0",
|
|
43
43
|
"@local/testkit": "0.0.0",
|
|
44
|
+
"@tsconfig/node20": "^20.1.10",
|
|
44
45
|
"@types/node": "^20.19.43",
|
|
45
46
|
"@typescript-eslint/typescript-estree": "^8.71.2",
|
|
46
47
|
"dedent": "^1.7.2",
|