We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
stylelint-disable-next-line
Disable rule for one line somewhere in one file. Example:
.my-block { <- Will not be autofixed width: 160px; /* stylelint-disable-next-line declaration-empty-line-before */ height: 160px; }
{ "rules": { "declaration-empty-line-before": [ "always", { "except": ["after-declaration", "first-nested"], "ignore": ["after-comment", "inside-single-line-block"] } ] } }
npx stylelint "src/**/*.{css,scss,sass}" --fix
14.16.1
Code above autofixed to this:
.my-block { width: 160px; /* stylelint-disable-next-line declaration-empty-line-before */ height: 160px; }
The following problems were reported:
test.scss 3:3 ✖ Unexpected empty line before declaration declaration-empty-line-before
No
No response
The text was updated successfully, but these errors were encountered:
@SoundOfTheSky Thanks for the report and for using the template.
Dupe of #2643. Feel free to contribute a solution to the issue.
Sorry, something went wrong.
No branches or pull requests
What steps are needed to reproduce the bug?
Disable rule for one line somewhere in one file.
Example:
What Stylelint configuration is needed to reproduce the bug?
How did you run Stylelint?
npx stylelint "src/**/*.{css,scss,sass}" --fix
Which version of Stylelint are you using?
14.16.1
What did you expect to happen?
Code above autofixed to this:
What actually happened?
The following problems were reported:
Does the bug relate to non-standard syntax?
No
Proposal to fix the bug
No response
The text was updated successfully, but these errors were encountered: