Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disable comment to be the directly above the statement #61

Merged
merged 9 commits into from
Dec 17, 2024
Prev Previous commit
Next Next commit
Solve comment
pndewit authored Dec 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 64c9ff8e0479386d301f3a457151f23ff52b3747
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import {TaggedTemplateExpression, Comment} from '@babel/types';
*/
export function isDisableComment(node: Comment): boolean {
return (
node && node.type === 'CommentLine' &&
node.type === 'CommentLine' &&
node.value.includes('postcss-lit-disable-next-line')
);
}