You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with current implementation #5139 , range suppression is not supported for plugin diagnostics
This is because:
Plugin diagnosis is run after lint phases.
During lint phase, range suppressions are dynamically updated while parsing // biome-range-start and // biome-range-end.
Before plugin runs, every // biome-range-end has been processed, and its corresponding range suppression is cleared.
for now, when user try to use range suppression on plugin, will report an error.
! Found a biome-ignore-<range> suppression on plugin. This is not supported. See https://github.com/biomejs/biome/issues/5175
4 │ // biome-ignore-start plugin/preferObjectSpreadSuppression: reason
5 │ Object.assign({}, {foo: 'bar'});
> 6 │ // biome-ignore-end plugin/preferObjectSpreadSuppression: reason
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 │
i Remove this suppression.
The text was updated successfully, but these errors were encountered:
Description
related task: #4667
todo
Implement range suppression of plugin diagnostics
example:
background
with current implementation #5139 , range suppression is not supported for plugin diagnostics
This is because:
// biome-range-start
and// biome-range-end
.// biome-range-end
has been processed, and its corresponding range suppression is cleared.for now, when user try to use range suppression on plugin, will report an error.
The text was updated successfully, but these errors were encountered: