Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore error for one line only #179

Open
kkmuffme opened this issue Jan 1, 2024 · 0 comments
Open

ignore error for one line only #179

kkmuffme opened this issue Jan 1, 2024 · 0 comments

Comments

@kkmuffme
Copy link

kkmuffme commented Jan 1, 2024

/* 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant