Closed ghost closed 1 year ago
I conjecture that (some?) rules are only checked within blocks.
For example, I would expect the rule shorthand-property-no-redundant-values to catch on the following, since padding: 10px; is the shorter way to write it, but it doesn't flag.
padding: 10px;
const MyComponent = styled.div` padding: 10px 10px 10px 10px; `
But the rule does correctly flag this:
const MyComponent = styled.div` & { padding: 10px 10px 10px 10px; } `
Hmmm, just upgraded to stlyelint v15, and this is no longer an issue. Thanks for the quick turnaround...
I conjecture that (some?) rules are only checked within blocks.
For example, I would expect the rule shorthand-property-no-redundant-values to catch on the following, since
padding: 10px;
is the shorter way to write it, but it doesn't flag.But the rule does correctly flag this: