anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.23k stars 50 forks source link

ignore error for one line only #179

Open kkmuffme opened 7 months ago

kkmuffme commented 7 months ago

/* doiuse-disable feature */ often leads to people forgetting to re-enable this rule again, when it should only be ignored in one specific case

Most tools support a syntax to ignore an error only for 1 line. It would be super useful if doiuse supported something like that too, e.g. /* doiuse-ignore feature */ or /* doiuse-ignore-next-line feature */

EDIT: postcss autoprefixer has /* autoprefixer: ignore next */ https://github.com/postcss/autoprefixer?tab=readme-ov-file#warnings:~:text=after%20the%20comment.-,/*%20autoprefixer%3A%20ignore%20next%20*/,-%3A%20disable%20Autoprefixer%20only for example, which is feature/issue agnostic, but shows it's commonly used with other postcss tools too