@eslint-react/core 2.7.5-next.7 → 2.7.5-next.8
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 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1120,9 +1120,7 @@ function isAssignmentToThisState(node) {
|
|
|
1120
1120
|
* @param isStatic Whether the method is static
|
|
1121
1121
|
*/
|
|
1122
1122
|
function createLifecycleChecker(methodName, isStatic = false) {
|
|
1123
|
-
return
|
|
1124
|
-
return AST.isMethodOrProperty(node) && node.static === isStatic && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === methodName;
|
|
1125
|
-
};
|
|
1123
|
+
return (node) => AST.isMethodOrProperty(node) && node.static === isStatic && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === methodName;
|
|
1126
1124
|
}
|
|
1127
1125
|
const isRender = createLifecycleChecker("render");
|
|
1128
1126
|
const isComponentDidCatch = createLifecycleChecker("componentDidCatch");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.7.5-next.
|
|
3
|
+
"version": "2.7.5-next.8",
|
|
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": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@typescript-eslint/types": "^8.54.0",
|
|
35
35
|
"@typescript-eslint/utils": "^8.54.0",
|
|
36
36
|
"ts-pattern": "^5.9.0",
|
|
37
|
-
"@eslint-react/ast": "2.7.5-next.
|
|
38
|
-
"@eslint-react/eff": "2.7.5-next.
|
|
39
|
-
"@eslint-react/shared": "2.7.5-next.
|
|
40
|
-
"@eslint-react/var": "2.7.5-next.
|
|
37
|
+
"@eslint-react/ast": "2.7.5-next.8",
|
|
38
|
+
"@eslint-react/eff": "2.7.5-next.8",
|
|
39
|
+
"@eslint-react/shared": "2.7.5-next.8",
|
|
40
|
+
"@eslint-react/var": "2.7.5-next.8"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsdown": "^0.20.1",
|