Skip to content

Commit ad44a8d

Browse files
[autofix.ci] apply automated fixes
1 parent ad46eed commit ad44a8d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apps/oxlint/test/fixtures/unicode-comments/files/unicode-comments.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Unicode test with emojis and multi-byte characters
2-
const greeting = "Hello 🌍"; // Line comment with emoji
2+
const greeting = 'Hello 🌍'; // Line comment with emoji
33

44
/**
55
* Function with emoji in JSDoc
@@ -14,7 +14,7 @@ function greetUser(name) {
1414
}
1515

1616
/* Multi-byte comment: 你好世界 */
17-
const 你好世界 = "Testing üöä"; // Line comment: ñáéíóú
17+
const 你好世界 = 'Testing üöä'; // Line comment: ñáéíóú
1818

1919
/**
2020
* JSDoc with emojis and unicode: 你好 👋
@@ -27,4 +27,4 @@ function processItems(count) {
2727
}
2828

2929
// Final comment with emoji: 🎉✨🎊
30-
const finalVar = "Done ✅";
30+
const finalVar = 'Done ✅';

apps/oxlint/test/fixtures/unicode-comments/plugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ const unicodeCommentsRule: Rule = {
66
const { ast } = sourceCode;
77

88
context.report({
9-
message: `getAllComments: ${JSON.stringify(sourceCode.getAllComments().map(c => ({ type: c.type, value: c.value })), null, 4)}`,
9+
message: `getAllComments: ${
10+
JSON.stringify(sourceCode.getAllComments().map(c => ({ type: c.type, value: c.value })), null, 4)
11+
}`,
1012
node: ast,
1113
});
1214

0 commit comments

Comments
 (0)