We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64c9ff8 commit 38e0c54Copy full SHA for 38e0c54
src/util.ts
@@ -20,7 +20,7 @@ export function isDisableComment(node: Comment): boolean {
20
export function hasDisableComment(
21
path: NodePath<TaggedTemplateExpression>
22
): boolean {
23
- // The comment could be directly above the statement or above the parent node
+ // The comment could be above the parent node or directly above the statement
24
const leadingComments = path.getStatementParent()?.node.leadingComments ?? path.node.leadingComments;
25
// There could be multiple preceding the comments
26
return leadingComments?.some(comment => isDisableComment(comment)) ?? false;
0 commit comments