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
Clearly describe the bug
The length-zero-no-unit lint gives false negatives in a couple of scenarios related to flexbox.
Which rule, if any, is the bug related to?
length-zero-no-unit
What code is needed to reproduce the bug?
This fails even though the units are needed to disambiguate that we're using the shorthand for flex-basis:
flex-basis
.foo { flex: 0px; }
This fails even though units are required on flex-basis for IE 11 support:
.bar { flex: 1 1 0px; }
What stylelint configuration is needed to reproduce the bug?
e.g.
{ "rules": { "length-zero-no-unit": true } }
Which version of stylelint are you using?
e.g. 13.11.0
13.11.0
How are you running stylelint: CLI, PostCSS plugin, Node.js API?
Node.js API
Does the bug relate to non-standard syntax (e.g. SCSS, Less etc.)?
No
What did you expect to happen?
No warnings to be flagged.
What actually happened (e.g. what warnings or errors did you get)?
e.g. "The following warnings were flagged:"
test.scss test.scss: line 7, col 14 - Unexpected unit (length-zero-no-unit)
The text was updated successfully, but these errors were encountered:
@ncroll Thanks for reporting the issue. This has been resolved via #5315. Can you try the v14 branch, please?
Sorry, something went wrong.
No branches or pull requests
The length-zero-no-unit lint gives false negatives in a couple of scenarios related to flexbox.
length-zero-no-unit
This fails even though the units are needed to disambiguate that we're using the shorthand for
flex-basis
:This fails even though units are required on
flex-basis
for IE 11 support:e.g.
e.g.
13.11.0
Node.js API
No
No warnings to be flagged.
e.g. "The following warnings were flagged:"
The text was updated successfully, but these errors were encountered: