@eslint-react/ast 1.40.4-beta.0 → 1.40.4-beta.4
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.mts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +14 -13
- package/dist/index.mjs +14 -13
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -230,12 +230,6 @@ declare function isArrayMapCallLoose(node: TSESTree.Node): node is TSESTree.Call
|
|
|
230
230
|
|
|
231
231
|
declare function isEmptyFunction(node: TSESTreeFunction): boolean;
|
|
232
232
|
|
|
233
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "boolean"): node is TSESTree.BooleanLiteral;
|
|
234
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "null"): node is TSESTree.NullLiteral;
|
|
235
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "number"): node is TSESTree.NumberLiteral;
|
|
236
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "regexp"): node is TSESTree.RegExpLiteral;
|
|
237
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "string"): node is TSESTree.StringLiteral;
|
|
238
|
-
|
|
239
233
|
/**
|
|
240
234
|
* Check if a node is a line break
|
|
241
235
|
* @param node The AST node to check
|
|
@@ -243,6 +237,13 @@ declare function isKindOfLiteral(node: TSESTree.Node, kind: "string"): node is T
|
|
|
243
237
|
*/
|
|
244
238
|
declare function isLineBreak(node: TSESTree.Node): boolean;
|
|
245
239
|
|
|
240
|
+
declare function isLiteral(node: TSESTree.Node): node is TSESTree.Literal;
|
|
241
|
+
declare function isLiteral(node: TSESTree.Node, type: "boolean"): node is TSESTree.BooleanLiteral;
|
|
242
|
+
declare function isLiteral(node: TSESTree.Node, type: "null"): node is TSESTree.NullLiteral;
|
|
243
|
+
declare function isLiteral(node: TSESTree.Node, type: "number"): node is TSESTree.NumberLiteral;
|
|
244
|
+
declare function isLiteral(node: TSESTree.Node, type: "regexp"): node is TSESTree.RegExpLiteral;
|
|
245
|
+
declare function isLiteral(node: TSESTree.Node, type: "string"): node is TSESTree.StringLiteral;
|
|
246
|
+
|
|
246
247
|
/**
|
|
247
248
|
* Check if a node is multiline
|
|
248
249
|
* @param node The AST node to check
|
|
@@ -280,4 +281,4 @@ declare function toReadableNodeName(node: TSESTree.Node, getText: (node: TSESTre
|
|
|
280
281
|
declare function toReadableNodeType(node: TSESTree.Node): "property" | "RegExp literal" | "string literal" | "number literal" | "bigint literal" | "boolean literal" | "symbol literal" | "undefined literal" | "object literal" | "function literal" | "null literal" | "identifier" | "member expression" | "JSX attribute" | "JSX element" | "JSX fragment" | "JSX identifier" | "JSX text" | "JSX closing element" | "JSX closing fragment" | "JSX empty expression" | "JSX expression container" | "JSX member expression" | "JSX namespaced name" | "JSX opening element" | "JSX opening fragment" | "JSX spread attribute" | "JSX spread child" | "decorator" | "program" | "super" | "accessor property" | "array expression" | "array pattern" | "function expression" | "arrow function expression" | "assignment expression" | "assignment pattern" | "await expression" | "binary expression" | "block statement" | "break statement" | "call expression" | "catch clause" | "chain expression" | "class body" | "class declaration" | "class expression" | "conditional expression" | "continue statement" | "debugger statement" | "while statement" | "do while statement" | "empty statement" | "export all declaration" | "export default declaration" | "export named declaration" | "export specifier" | "expression statement" | "for in statement" | "for of statement" | "for statement" | "function declaration" | "if statement" | "import attribute" | "import declaration" | "import default specifier" | "import expression" | "import namespace specifier" | "import specifier" | "labeled statement" | "logical expression" | "meta property" | "method definition" | "new expression" | "object expression" | "object pattern" | "private identifier" | "property definition" | "rest element" | "return statement" | "sequence expression" | "spread element" | "static block" | "switch case" | "switch statement" | "tagged template expression" | "template element" | "template literal" | "this expression" | "throw statement" | "try statement" | "unary expression" | "update expression" | "variable declaration" | "variable declarator" | "with statement" | "yield expression" | "ts abstract accessor property" | "ts abstract keyword" | "ts abstract method definition" | "ts abstract property definition" | "ts any keyword" | "ts array type" | "ts as expression" | "ts async keyword" | "ts big int keyword" | "ts boolean keyword" | "ts call signature declaration" | "ts class implements" | "ts conditional type" | "ts constructor type" | "ts construct signature declaration" | "ts declare function" | "ts declare keyword" | "ts empty body function expression" | "ts enum body" | "ts enum declaration" | "ts enum member" | "ts export assignment" | "ts export keyword" | "ts external module reference" | "ts function type" | "ts import equals declaration" | "ts import type" | "ts indexed access type" | "ts index signature" | "ts infer type" | "ts instantiation expression" | "ts interface body" | "ts interface declaration" | "ts interface heritage" | "ts intersection type" | "ts intrinsic keyword" | "ts literal type" | "ts mapped type" | "ts method signature" | "ts module block" | "ts module declaration" | "ts named tuple member" | "ts namespace export declaration" | "ts never keyword" | "ts non null expression" | "ts null keyword" | "ts number keyword" | "ts object keyword" | "ts optional type" | "ts parameter property" | "ts private keyword" | "ts property signature" | "ts protected keyword" | "ts public keyword" | "ts qualified name" | "ts readonly keyword" | "ts rest type" | "ts satisfies expression" | "ts static keyword" | "ts string keyword" | "ts symbol keyword" | "ts template literal type" | "ts this type" | "ts tuple type" | "ts type alias declaration" | "ts type annotation" | "ts type assertion" | "ts type literal" | "ts type operator" | "ts type parameter" | "ts type parameter declaration" | "ts type parameter instantiation" | "ts type predicate" | "ts type query" | "ts type reference" | "ts undefined keyword" | "ts union type" | "ts unknown keyword" | "ts void keyword";
|
|
281
282
|
type ReadableNodeType = ReturnType<typeof toReadableNodeType>;
|
|
282
283
|
|
|
283
|
-
export { type FunctionInitPath, ITERATOR_FUNCTION_INDEX_PARAM_POSITION, type ReadableNodeType, type TSESTreeArrayTupleType, type TSESTreeClass, type TSESTreeDestructuringPattern, type TSESTreeFunction, type TSESTreeFunctionType, type TSESTreeJSX, type TSESTreeLoop, type TSESTreeMethodOrProperty, type TSESTreeProperty, type TSESTreeTypeAssertionExpression, type TSESTreeTypeDeclaration, type TSESTreeTypeExpression, findParentNode, getClassIdentifier, getEcmaExpression, getFunctionIdentifier, getFunctionInitPath, getLiteralValueType, getNestedCallExpressions, getNestedExpressionsOfType, getNestedIdentifiers, getNestedNewExpressions, getNestedReturnStatements, getPropertyName, getTopLevelIdentifier, hasCallInFunctionInitPath, is, isArrayMapCallLoose, isArrayTupleType, isClass, isConditional, isControlFlow, isDestructuringPattern, isEmptyFunction, isFunction, isFunctionType, isJSX, isJSXElement, isJSXFragment, isJSXTagNameExpression,
|
|
284
|
+
export { type FunctionInitPath, ITERATOR_FUNCTION_INDEX_PARAM_POSITION, type ReadableNodeType, type TSESTreeArrayTupleType, type TSESTreeClass, type TSESTreeDestructuringPattern, type TSESTreeFunction, type TSESTreeFunctionType, type TSESTreeJSX, type TSESTreeLoop, type TSESTreeMethodOrProperty, type TSESTreeProperty, type TSESTreeTypeAssertionExpression, type TSESTreeTypeDeclaration, type TSESTreeTypeExpression, findParentNode, getClassIdentifier, getEcmaExpression, getFunctionIdentifier, getFunctionInitPath, getLiteralValueType, getNestedCallExpressions, getNestedExpressionsOfType, getNestedIdentifiers, getNestedNewExpressions, getNestedReturnStatements, getPropertyName, getTopLevelIdentifier, hasCallInFunctionInitPath, is, isArrayMapCallLoose, isArrayTupleType, isClass, isConditional, isControlFlow, isDestructuringPattern, isEmptyFunction, isFunction, isFunctionType, isJSX, isJSXElement, isJSXFragment, isJSXTagNameExpression, isLeftHandSideExpression, isLeftHandSideExpressionType, isLineBreak, isLiteral, isLoop, isMethodOrProperty, isMultiLine, isNodeEqual, isOneOf, isProperty, isThisExpression, isTypeAssertionExpression, isTypeDeclaration, isTypeExpression, toReadableNodeName, toReadableNodeType };
|
package/dist/index.d.ts
CHANGED
|
@@ -230,12 +230,6 @@ declare function isArrayMapCallLoose(node: TSESTree.Node): node is TSESTree.Call
|
|
|
230
230
|
|
|
231
231
|
declare function isEmptyFunction(node: TSESTreeFunction): boolean;
|
|
232
232
|
|
|
233
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "boolean"): node is TSESTree.BooleanLiteral;
|
|
234
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "null"): node is TSESTree.NullLiteral;
|
|
235
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "number"): node is TSESTree.NumberLiteral;
|
|
236
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "regexp"): node is TSESTree.RegExpLiteral;
|
|
237
|
-
declare function isKindOfLiteral(node: TSESTree.Node, kind: "string"): node is TSESTree.StringLiteral;
|
|
238
|
-
|
|
239
233
|
/**
|
|
240
234
|
* Check if a node is a line break
|
|
241
235
|
* @param node The AST node to check
|
|
@@ -243,6 +237,13 @@ declare function isKindOfLiteral(node: TSESTree.Node, kind: "string"): node is T
|
|
|
243
237
|
*/
|
|
244
238
|
declare function isLineBreak(node: TSESTree.Node): boolean;
|
|
245
239
|
|
|
240
|
+
declare function isLiteral(node: TSESTree.Node): node is TSESTree.Literal;
|
|
241
|
+
declare function isLiteral(node: TSESTree.Node, type: "boolean"): node is TSESTree.BooleanLiteral;
|
|
242
|
+
declare function isLiteral(node: TSESTree.Node, type: "null"): node is TSESTree.NullLiteral;
|
|
243
|
+
declare function isLiteral(node: TSESTree.Node, type: "number"): node is TSESTree.NumberLiteral;
|
|
244
|
+
declare function isLiteral(node: TSESTree.Node, type: "regexp"): node is TSESTree.RegExpLiteral;
|
|
245
|
+
declare function isLiteral(node: TSESTree.Node, type: "string"): node is TSESTree.StringLiteral;
|
|
246
|
+
|
|
246
247
|
/**
|
|
247
248
|
* Check if a node is multiline
|
|
248
249
|
* @param node The AST node to check
|
|
@@ -280,4 +281,4 @@ declare function toReadableNodeName(node: TSESTree.Node, getText: (node: TSESTre
|
|
|
280
281
|
declare function toReadableNodeType(node: TSESTree.Node): "property" | "RegExp literal" | "string literal" | "number literal" | "bigint literal" | "boolean literal" | "symbol literal" | "undefined literal" | "object literal" | "function literal" | "null literal" | "identifier" | "member expression" | "JSX attribute" | "JSX element" | "JSX fragment" | "JSX identifier" | "JSX text" | "JSX closing element" | "JSX closing fragment" | "JSX empty expression" | "JSX expression container" | "JSX member expression" | "JSX namespaced name" | "JSX opening element" | "JSX opening fragment" | "JSX spread attribute" | "JSX spread child" | "decorator" | "program" | "super" | "accessor property" | "array expression" | "array pattern" | "function expression" | "arrow function expression" | "assignment expression" | "assignment pattern" | "await expression" | "binary expression" | "block statement" | "break statement" | "call expression" | "catch clause" | "chain expression" | "class body" | "class declaration" | "class expression" | "conditional expression" | "continue statement" | "debugger statement" | "while statement" | "do while statement" | "empty statement" | "export all declaration" | "export default declaration" | "export named declaration" | "export specifier" | "expression statement" | "for in statement" | "for of statement" | "for statement" | "function declaration" | "if statement" | "import attribute" | "import declaration" | "import default specifier" | "import expression" | "import namespace specifier" | "import specifier" | "labeled statement" | "logical expression" | "meta property" | "method definition" | "new expression" | "object expression" | "object pattern" | "private identifier" | "property definition" | "rest element" | "return statement" | "sequence expression" | "spread element" | "static block" | "switch case" | "switch statement" | "tagged template expression" | "template element" | "template literal" | "this expression" | "throw statement" | "try statement" | "unary expression" | "update expression" | "variable declaration" | "variable declarator" | "with statement" | "yield expression" | "ts abstract accessor property" | "ts abstract keyword" | "ts abstract method definition" | "ts abstract property definition" | "ts any keyword" | "ts array type" | "ts as expression" | "ts async keyword" | "ts big int keyword" | "ts boolean keyword" | "ts call signature declaration" | "ts class implements" | "ts conditional type" | "ts constructor type" | "ts construct signature declaration" | "ts declare function" | "ts declare keyword" | "ts empty body function expression" | "ts enum body" | "ts enum declaration" | "ts enum member" | "ts export assignment" | "ts export keyword" | "ts external module reference" | "ts function type" | "ts import equals declaration" | "ts import type" | "ts indexed access type" | "ts index signature" | "ts infer type" | "ts instantiation expression" | "ts interface body" | "ts interface declaration" | "ts interface heritage" | "ts intersection type" | "ts intrinsic keyword" | "ts literal type" | "ts mapped type" | "ts method signature" | "ts module block" | "ts module declaration" | "ts named tuple member" | "ts namespace export declaration" | "ts never keyword" | "ts non null expression" | "ts null keyword" | "ts number keyword" | "ts object keyword" | "ts optional type" | "ts parameter property" | "ts private keyword" | "ts property signature" | "ts protected keyword" | "ts public keyword" | "ts qualified name" | "ts readonly keyword" | "ts rest type" | "ts satisfies expression" | "ts static keyword" | "ts string keyword" | "ts symbol keyword" | "ts template literal type" | "ts this type" | "ts tuple type" | "ts type alias declaration" | "ts type annotation" | "ts type assertion" | "ts type literal" | "ts type operator" | "ts type parameter" | "ts type parameter declaration" | "ts type parameter instantiation" | "ts type predicate" | "ts type query" | "ts type reference" | "ts undefined keyword" | "ts union type" | "ts unknown keyword" | "ts void keyword";
|
|
281
282
|
type ReadableNodeType = ReturnType<typeof toReadableNodeType>;
|
|
282
283
|
|
|
283
|
-
export { type FunctionInitPath, ITERATOR_FUNCTION_INDEX_PARAM_POSITION, type ReadableNodeType, type TSESTreeArrayTupleType, type TSESTreeClass, type TSESTreeDestructuringPattern, type TSESTreeFunction, type TSESTreeFunctionType, type TSESTreeJSX, type TSESTreeLoop, type TSESTreeMethodOrProperty, type TSESTreeProperty, type TSESTreeTypeAssertionExpression, type TSESTreeTypeDeclaration, type TSESTreeTypeExpression, findParentNode, getClassIdentifier, getEcmaExpression, getFunctionIdentifier, getFunctionInitPath, getLiteralValueType, getNestedCallExpressions, getNestedExpressionsOfType, getNestedIdentifiers, getNestedNewExpressions, getNestedReturnStatements, getPropertyName, getTopLevelIdentifier, hasCallInFunctionInitPath, is, isArrayMapCallLoose, isArrayTupleType, isClass, isConditional, isControlFlow, isDestructuringPattern, isEmptyFunction, isFunction, isFunctionType, isJSX, isJSXElement, isJSXFragment, isJSXTagNameExpression,
|
|
284
|
+
export { type FunctionInitPath, ITERATOR_FUNCTION_INDEX_PARAM_POSITION, type ReadableNodeType, type TSESTreeArrayTupleType, type TSESTreeClass, type TSESTreeDestructuringPattern, type TSESTreeFunction, type TSESTreeFunctionType, type TSESTreeJSX, type TSESTreeLoop, type TSESTreeMethodOrProperty, type TSESTreeProperty, type TSESTreeTypeAssertionExpression, type TSESTreeTypeDeclaration, type TSESTreeTypeExpression, findParentNode, getClassIdentifier, getEcmaExpression, getFunctionIdentifier, getFunctionInitPath, getLiteralValueType, getNestedCallExpressions, getNestedExpressionsOfType, getNestedIdentifiers, getNestedNewExpressions, getNestedReturnStatements, getPropertyName, getTopLevelIdentifier, hasCallInFunctionInitPath, is, isArrayMapCallLoose, isArrayTupleType, isClass, isConditional, isControlFlow, isDestructuringPattern, isEmptyFunction, isFunction, isFunctionType, isJSX, isJSXElement, isJSXFragment, isJSXTagNameExpression, isLeftHandSideExpression, isLeftHandSideExpressionType, isLineBreak, isLiteral, isLoop, isMethodOrProperty, isMultiLine, isNodeEqual, isOneOf, isProperty, isThisExpression, isTypeAssertionExpression, isTypeDeclaration, isTypeExpression, toReadableNodeName, toReadableNodeType };
|
package/dist/index.js
CHANGED
|
@@ -466,9 +466,20 @@ function isArrayMapCallLoose(node) {
|
|
|
466
466
|
function isEmptyFunction(node) {
|
|
467
467
|
return node.body.type === types.AST_NODE_TYPES.BlockStatement && node.body.body.length === 0;
|
|
468
468
|
}
|
|
469
|
-
|
|
469
|
+
|
|
470
|
+
// src/is-multi-line.ts
|
|
471
|
+
function isMultiLine(node) {
|
|
472
|
+
return node.loc.start.line !== node.loc.end.line;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// src/is-line-break.ts
|
|
476
|
+
function isLineBreak(node) {
|
|
477
|
+
return isOneOf([types.AST_NODE_TYPES.Literal, types.AST_NODE_TYPES.JSXText])(node) && typeof node.value === "string" && node.value.trim() === "" && isMultiLine(node);
|
|
478
|
+
}
|
|
479
|
+
function isLiteral(node, type) {
|
|
470
480
|
if (node.type !== types.AST_NODE_TYPES.Literal) return false;
|
|
471
|
-
|
|
481
|
+
if (type == null) return true;
|
|
482
|
+
switch (type) {
|
|
472
483
|
case "boolean":
|
|
473
484
|
return typeof node.value === "boolean";
|
|
474
485
|
case "null":
|
|
@@ -481,16 +492,6 @@ function isKindOfLiteral(node, kind) {
|
|
|
481
492
|
return typeof node.value === "string";
|
|
482
493
|
}
|
|
483
494
|
}
|
|
484
|
-
|
|
485
|
-
// src/is-multi-line.ts
|
|
486
|
-
function isMultiLine(node) {
|
|
487
|
-
return node.loc.start.line !== node.loc.end.line;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
// src/is-line-break.ts
|
|
491
|
-
function isLineBreak(node) {
|
|
492
|
-
return isOneOf([types.AST_NODE_TYPES.Literal, types.AST_NODE_TYPES.JSXText])(node) && typeof node.value === "string" && node.value.trim() === "" && isMultiLine(node);
|
|
493
|
-
}
|
|
494
495
|
var isNodeEqual = eff.dual(2, (a, b) => {
|
|
495
496
|
switch (true) {
|
|
496
497
|
case a === b:
|
|
@@ -610,10 +611,10 @@ exports.isJSX = isJSX;
|
|
|
610
611
|
exports.isJSXElement = isJSXElement;
|
|
611
612
|
exports.isJSXFragment = isJSXFragment;
|
|
612
613
|
exports.isJSXTagNameExpression = isJSXTagNameExpression;
|
|
613
|
-
exports.isKindOfLiteral = isKindOfLiteral;
|
|
614
614
|
exports.isLeftHandSideExpression = isLeftHandSideExpression;
|
|
615
615
|
exports.isLeftHandSideExpressionType = isLeftHandSideExpressionType;
|
|
616
616
|
exports.isLineBreak = isLineBreak;
|
|
617
|
+
exports.isLiteral = isLiteral;
|
|
617
618
|
exports.isLoop = isLoop;
|
|
618
619
|
exports.isMethodOrProperty = isMethodOrProperty;
|
|
619
620
|
exports.isMultiLine = isMultiLine;
|
package/dist/index.mjs
CHANGED
|
@@ -464,9 +464,20 @@ function isArrayMapCallLoose(node) {
|
|
|
464
464
|
function isEmptyFunction(node) {
|
|
465
465
|
return node.body.type === AST_NODE_TYPES.BlockStatement && node.body.body.length === 0;
|
|
466
466
|
}
|
|
467
|
-
|
|
467
|
+
|
|
468
|
+
// src/is-multi-line.ts
|
|
469
|
+
function isMultiLine(node) {
|
|
470
|
+
return node.loc.start.line !== node.loc.end.line;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
// src/is-line-break.ts
|
|
474
|
+
function isLineBreak(node) {
|
|
475
|
+
return isOneOf([AST_NODE_TYPES.Literal, AST_NODE_TYPES.JSXText])(node) && typeof node.value === "string" && node.value.trim() === "" && isMultiLine(node);
|
|
476
|
+
}
|
|
477
|
+
function isLiteral(node, type) {
|
|
468
478
|
if (node.type !== AST_NODE_TYPES.Literal) return false;
|
|
469
|
-
|
|
479
|
+
if (type == null) return true;
|
|
480
|
+
switch (type) {
|
|
470
481
|
case "boolean":
|
|
471
482
|
return typeof node.value === "boolean";
|
|
472
483
|
case "null":
|
|
@@ -479,16 +490,6 @@ function isKindOfLiteral(node, kind) {
|
|
|
479
490
|
return typeof node.value === "string";
|
|
480
491
|
}
|
|
481
492
|
}
|
|
482
|
-
|
|
483
|
-
// src/is-multi-line.ts
|
|
484
|
-
function isMultiLine(node) {
|
|
485
|
-
return node.loc.start.line !== node.loc.end.line;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
// src/is-line-break.ts
|
|
489
|
-
function isLineBreak(node) {
|
|
490
|
-
return isOneOf([AST_NODE_TYPES.Literal, AST_NODE_TYPES.JSXText])(node) && typeof node.value === "string" && node.value.trim() === "" && isMultiLine(node);
|
|
491
|
-
}
|
|
492
493
|
var isNodeEqual = dual(2, (a, b) => {
|
|
493
494
|
switch (true) {
|
|
494
495
|
case a === b:
|
|
@@ -579,4 +580,4 @@ function toReadableNodeType(node) {
|
|
|
579
580
|
return toLowerCase(delimiterCase(node.type, " "));
|
|
580
581
|
}
|
|
581
582
|
|
|
582
|
-
export { ITERATOR_FUNCTION_INDEX_PARAM_POSITION, findParentNode, getClassIdentifier, getEcmaExpression, getFunctionIdentifier, getFunctionInitPath, getLiteralValueType, getNestedCallExpressions, getNestedExpressionsOfType, getNestedIdentifiers, getNestedNewExpressions, getNestedReturnStatements, getPropertyName, getTopLevelIdentifier, hasCallInFunctionInitPath, is, isArrayMapCallLoose, isArrayTupleType, isClass, isConditional, isControlFlow, isDestructuringPattern, isEmptyFunction, isFunction, isFunctionType, isJSX, isJSXElement, isJSXFragment, isJSXTagNameExpression,
|
|
583
|
+
export { ITERATOR_FUNCTION_INDEX_PARAM_POSITION, findParentNode, getClassIdentifier, getEcmaExpression, getFunctionIdentifier, getFunctionInitPath, getLiteralValueType, getNestedCallExpressions, getNestedExpressionsOfType, getNestedIdentifiers, getNestedNewExpressions, getNestedReturnStatements, getPropertyName, getTopLevelIdentifier, hasCallInFunctionInitPath, is, isArrayMapCallLoose, isArrayTupleType, isClass, isConditional, isControlFlow, isDestructuringPattern, isEmptyFunction, isFunction, isFunctionType, isJSX, isJSXElement, isJSXFragment, isJSXTagNameExpression, isLeftHandSideExpression, isLeftHandSideExpressionType, isLineBreak, isLiteral, isLoop, isMethodOrProperty, isMultiLine, isNodeEqual, isOneOf, isProperty, isThisExpression, isTypeAssertionExpression, isTypeDeclaration, isTypeExpression, toReadableNodeName, toReadableNodeType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/ast",
|
|
3
|
-
"version": "1.40.4-beta.
|
|
3
|
+
"version": "1.40.4-beta.4",
|
|
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.29.0",
|
|
41
41
|
"string-ts": "^2.2.1",
|
|
42
42
|
"ts-pattern": "^5.7.0",
|
|
43
|
-
"@eslint-react/eff": "1.40.4-beta.
|
|
43
|
+
"@eslint-react/eff": "1.40.4-beta.4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"tsup": "^8.4.0",
|