@eslint-react/ast 5.30.5 → 5.30.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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ declare const isProperty: (node: TSESTree.Node | null | undefined) => node is TS
|
|
|
87
87
|
* Abstract and accessor member definitions (`TSAbstractMethodDefinition`, `TSAbstractPropertyDefinition`,
|
|
88
88
|
* `AccessorProperty`, `TSAbstractAccessorProperty`) are not included.
|
|
89
89
|
*/
|
|
90
|
-
declare const isPropertyOrMethod: (node: TSESTree.Node | null | undefined) => node is TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.PropertyDefinitionComputedName | TSESTree.PropertyDefinitionNonComputedName;
|
|
90
|
+
declare const isPropertyOrMethod: (node: TSESTree.Node | null | undefined) => node is TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionConstructor | TSESTree.MethodDefinitionNonComputedName | TSESTree.PropertyDefinitionComputedName | TSESTree.PropertyDefinitionNonComputedName;
|
|
91
91
|
/**
|
|
92
92
|
* Check if a node is the default value of an array pattern element, i.e. an
|
|
93
93
|
* `AssignmentPattern` directly nested in an `ArrayPattern` (ex: `const [a = 1] = arr`).
|
package/dist/index.js
CHANGED
|
@@ -124,7 +124,7 @@ function isArrayPatternElementDefault(node) {
|
|
|
124
124
|
return node.type === AST_NODE_TYPES.AssignmentPattern && node.parent.type === AST_NODE_TYPES.ArrayPattern;
|
|
125
125
|
}
|
|
126
126
|
function isObjectPatternElementDefault(node) {
|
|
127
|
-
return node.type === AST_NODE_TYPES.AssignmentPattern && node.parent.type === AST_NODE_TYPES.Property && node.parent.value === node
|
|
127
|
+
return node.type === AST_NODE_TYPES.AssignmentPattern && node.parent.type === AST_NODE_TYPES.Property && node.parent.value === node;
|
|
128
128
|
}
|
|
129
129
|
const isJSX = isOneOf([
|
|
130
130
|
AST_NODE_TYPES.JSXIdentifier,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/ast",
|
|
3
|
-
"version": "5.30.
|
|
3
|
+
"version": "5.30.7",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@typescript-eslint/types": "^8.
|
|
33
|
-
"@typescript-eslint/utils": "^8.
|
|
34
|
-
"@typescript-eslint/visitor-keys": "^8.
|
|
32
|
+
"@typescript-eslint/types": "^8.74.0",
|
|
33
|
+
"@typescript-eslint/utils": "^8.74.0",
|
|
34
|
+
"@typescript-eslint/visitor-keys": "^8.74.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@local/configs": "0.0.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint": "^10.15.0",
|
|
43
43
|
"tsdown": "^0.23.7",
|
|
44
44
|
"typescript": "6.0.3",
|
|
45
|
-
"vitest": "^5.1.
|
|
45
|
+
"vitest": "^5.1.2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"eslint": "*",
|