As described in this discussion and in Discord, it would be great to have an option to write in ignores for existing rule violations.
I stumbled upon the need for this feature while working on migrating a large codebase to Biome. There are rules I'd like to activate that have hundreds and thousands of violations, but I can't reasonably fix them all in one PR. I can use some creative override patterning to get it done, but an easier way would be to set ignores for them and follow up with PRs to fix those ignores. There are likely other use cases for this feature, as well.
I will be starting work on this feature momentarily, having received prior blessings from @ematipico and @Conaclos at that Discord pointer.
Open questions:
biome lint . --write-suppressions
while I work but can name it whatever the crowd prefers.// biome-ignore the/rule/name: <explanation>
, so I'd like to allow for an explanation with biome lint . --write-suppressions="TODO: Fix Biome migration ignores."
, where my string would become the <explanation>
. If not provided, a default explanation will be provided (or we could just let it be <explanation>
?). Any thoughts here on what to provide for a default? And does that API sound good?Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too