Replies: 2 comments 2 replies
-
@anonrig what's your take here? I would love to have your thoughts here. |
Beta Was this translation helpful? Give feedback.
-
Usually developers use I implemented noConsoleLog to warn against debugging code. However, some users/contributors, such as @anonrig, want to warn against other uses of |
Beta Was this translation helpful? Give feedback.
-
Biome has a
noConsoleLog
rule, as opposed to ESLint’sno-console
rule. The former only warns/errs onconsole.log()
literally. But theno-console
rule warns/errs onconsole.error
,console.warn
, andconsole.debug
as well:Biome
noConsoleLog
ESLint
no-console
My question is: should Biome get additional lint rules like
noConsoleError
to handle the other cases? Or does Biome just need anoConsole
rule to warn/err on all of them collectively?Or is the single
noConsoleLog
rule intentional, going off the assumption that it’s mostlyconsole.log
that’s used by accident and the other ones are intentional, so there’s no need to make rules for them?Beta Was this translation helpful? Give feedback.
All reactions