Skip to content

Commit 389d027

Browse files
tivacota-meshi
andcommitted
fix: include comments in tokens
Co-authored-by: Yosuke Ota <[email protected]>
1 parent 997981c commit 389d027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/no-unnecessary-reactive-curlies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default createRule("no-unnecessary-reactive-curlies", {
2929
messageId: "unnecessaryCurlies",
3030

3131
fix(fixer) {
32-
const tokens = source.getTokens(node)
32+
const tokens = source.getTokens(node, { includeComments: true })
3333

3434
// Remove everything up to the second token, and the entire last token since
3535
// those are known to be "{" and "}"

0 commit comments

Comments
 (0)