Skip to content

Commit fcb7b36

Browse files
authored
chore: lint logs in packages (#1797)
1 parent bb5cb2c commit fcb7b36

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.oxlintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@
146146
"no-inner-declarations": "off",
147147
"no-self-assign": "off"
148148
}
149+
},
150+
{
151+
"files": ["packages/bits-ui/src/lib/**/*"],
152+
"rules": {
153+
"no-console": "error"
154+
}
149155
}
150156
]
151157
}

packages/bits-ui/src/lib/bits/pin-input/pin-input.svelte.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ function safeInsertRule(sheet: CSSStyleSheet, rule: string) {
570570
try {
571571
sheet.insertRule(rule);
572572
} catch {
573+
// oxlint-disable-next-line no-console
573574
console.error("pin input could not insert CSS rule:", rule);
574575
}
575576
}

packages/bits-ui/src/lib/internal/warn.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ export function warn(...messages: string[]) {
1010
const msg = messages.join(" ");
1111
if (set.has(msg)) return;
1212
set.add(msg);
13+
// oxlint-disable-next-line no-console
1314
console.warn(`[Bits UI]: ${msg}`);
1415
}

0 commit comments

Comments
 (0)