Fix false positives for flex shorthand with 2 values in length-zero-no-unit #4831
Labels
status: ready to implement
is ready to be worked on by someone
type: bug
a problem with a feature or rule
There is false negative for
0px
in the flex shorthand rule:flex: 1 0px;
It is ambiguous situation for two values in flex shorthand property,
according to documentation:
https://developer.mozilla.org/en-US/docs/Web/CSS/flex
Two values: flex-grow | flex-basis:
flex: 1 0px;
Two values: flex-grow | flex-shrink:
flex: 1 0;
e.g.
length-zero-no-unit
13.6.0
via
stylelint-webpack-plugin
No
No
length-zero-no-unit
error to be flagged.Possibly it would be good to create another rule to disallow 2 values in flex shorthand property to avoid ambiguous situations, and make intentions evident
The following warnings were flagged:
The text was updated successfully, but these errors were encountered: