Skip to content

Commit 38e0c54

Browse files
authored
Make comment reflect code logic
1 parent 64c9ff8 commit 38e0c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function isDisableComment(node: Comment): boolean {
2020
export function hasDisableComment(
2121
path: NodePath<TaggedTemplateExpression>
2222
): boolean {
23-
// The comment could be directly above the statement or above the parent node
23+
// The comment could be above the parent node or directly above the statement
2424
const leadingComments = path.getStatementParent()?.node.leadingComments ?? path.node.leadingComments;
2525
// There could be multiple preceding the comments
2626
return leadingComments?.some(comment => isDisableComment(comment)) ?? false;

0 commit comments

Comments
 (0)