@eslint-react/ast 1.28.1-next.5 → 1.28.1-next.7
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/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -265,7 +265,7 @@ function getFunctionIdentifier(node) {
|
|
|
265
265
|
return node.parent.key;
|
|
266
266
|
// class {MaybeComponent = () => {}}
|
|
267
267
|
// class {MaybeComponent() {}}
|
|
268
|
-
case (
|
|
268
|
+
case (isMethodOrProperty(node.parent) && node.parent.value === node && node.parent.key.type === types.AST_NODE_TYPES.Identifier):
|
|
269
269
|
return node.parent.key;
|
|
270
270
|
// Follow spec convention for `IsAnonymousFunctionDefinition()` usage.
|
|
271
271
|
//
|
package/dist/index.mjs
CHANGED
|
@@ -263,7 +263,7 @@ function getFunctionIdentifier(node) {
|
|
|
263
263
|
return node.parent.key;
|
|
264
264
|
// class {MaybeComponent = () => {}}
|
|
265
265
|
// class {MaybeComponent() {}}
|
|
266
|
-
case (
|
|
266
|
+
case (isMethodOrProperty(node.parent) && node.parent.value === node && node.parent.key.type === AST_NODE_TYPES.Identifier):
|
|
267
267
|
return node.parent.key;
|
|
268
268
|
// Follow spec convention for `IsAnonymousFunctionDefinition()` usage.
|
|
269
269
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/ast",
|
|
3
|
-
"version": "1.28.1-next.
|
|
3
|
+
"version": "1.28.1-next.7",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@typescript-eslint/utils": "^8.25.0",
|
|
41
41
|
"string-ts": "^2.2.1",
|
|
42
42
|
"ts-pattern": "^5.6.2",
|
|
43
|
-
"@eslint-react/eff": "1.28.1-next.
|
|
43
|
+
"@eslint-react/eff": "1.28.1-next.7"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"tsup": "^8.4.0",
|