chore: Cleanup comment line lengths (#2090)

Co-authored-by: Patryk Kuniczak <p.kuniczak@gmail.com>
This commit is contained in:
Aaron
2026-02-09 01:38:09 -06:00
committed by GitHub
parent 296997d10e
commit c848956777
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ export function wrapAction(
},
) {
return async (...args: any[]) => {
// Enable consola's debug mode globally at the start of all commands when the `--debug` flag is
// passed
// Enable consola's debug mode globally at the start of all commands when
// the `--debug` flag is passed
const isDebug = !!args.find((arg) => arg?.debug);
if (isDebug) {
consola.level = LogLevels.debug;
+4 -2
View File
@@ -166,7 +166,8 @@ declare module "wxt/browser" {
};
const overrides = [
// Generate individual overloads for each message so JSDoc contains description and base translation.
// Generate individual overloads for each message so JSDoc contains
// description and base translation.
...messages.map((message) =>
renderGetMessageOverload(
`"${message.name}"`,
@@ -174,7 +175,8 @@ declare module "wxt/browser" {
message.message,
),
),
// Include a final union-based override so TS accepts valid string templates or concatenations
// Include a final union-based override so TS accepts valid string
// templates or concatenations.
// ie: browser.i18n.getMessage(`some_enum_${enumValue}`)
renderGetMessageOverload(
messages.map((message) => `"${message.name}"`).join(' | '),
+2 -2
View File
@@ -9,8 +9,8 @@ export function defineCommand<TArgs extends any[]>(
},
) {
return async (...args: TArgs) => {
// Enable consola's debug mode globally at the start of all commands when the `--debug` flag is
// passed
// Enable consola's debug mode globally at the start of all commands when
// the `--debug` flag is passed
const isDebug = !!args.find((arg) => arg?.debug);
if (isDebug) {
consola.level = LogLevels.debug;