mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
36 lines
841 B
JavaScript
36 lines
841 B
JavaScript
{{
|
|
if (!doesImmediatelyReturnFunctionExpression({ node: current,returns,})) {
|
|
}
|
|
if (!validatePredefinedFormat(config, name, node, originalName, modifiers)) {}
|
|
}}
|
|
if (
|
|
![
|
|
AST_NODE_TYPES.ArrowFunctionExpression,
|
|
AST_NODE_TYPES.FunctionDeclaration,
|
|
AST_NODE_TYPES.FunctionExpression,
|
|
].includes(blockParent.type)
|
|
);
|
|
if (
|
|
!allowInGenericTypeArguments
|
|
.map(s => s.replaceAll(' ', ''))
|
|
.includes(fullyQualifiedName)
|
|
) {}
|
|
|
|
if(foo) {
|
|
//
|
|
}else if (
|
|
!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)
|
|
) {}
|
|
if (!processDefineProps(
|
|
ctx,
|
|
node.arguments[0],
|
|
declId,
|
|
true /* isWithDefaults */,
|
|
)) {}
|
|
if (processDefineProps(
|
|
ctx,
|
|
node.arguments[0],
|
|
declId,
|
|
true /* isWithDefaults */,
|
|
)) {}
|