Skip to content

Commit

Permalink
chore: migrate deprecated linter rule
Browse files Browse the repository at this point in the history
  • Loading branch information
dy0gu committed Sep 13, 2024
1 parent d393d53 commit 590b88a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
}
},
"suspicious": {
"noConsole": "error",
"useAwait": "error",
"noConsoleLog": "error",
"noEmptyBlockStatements": "error"
}
}
Expand Down
1 change: 1 addition & 0 deletions src/hooks/mystery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function useMystery() {

useEffect(() => {
if (count === CODE.length) {
// biome-ignore lint/suspicious/noConsole: this is sent to the console as an easter egg
console.info(MESSAGE);
setSuccess(true);
}
Expand Down
1 change: 1 addition & 0 deletions src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function parse(input: { [key: string]: string }) {
} catch (err) {
if (err instanceof z.ZodError) {
for (const issue of err.issues) {
// biome-ignore lint/suspicious/noConsole: will only be sent to the server
console.error(
`❌ ${issue.message} for ${issue.path} environment variable!`,
);
Expand Down

0 comments on commit 590b88a

Please sign in to comment.