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
Fix false negatives for template literal declarations in declaration-empty-line-before #4003
Comments
The issue in stylelint/lib/rules/declaration-empty-line-before/index.js Lines 57 to 59 in ad46698
stylelint/lib/utils/isStandardSyntaxDeclaration.js Lines 13 to 15 in ad46698
In |
declaration-empty-line-before
in CSS-in-JS
I believe that's there because we don't want this rule to pick up on "declarations" outside of rules e.g. dollar variables. We can either work out another heuristic for this or change |
I think fix |
@evilebottnawi what this change could be? If |
@hudochenkov hm, maybe we can add |
Warning is not shown for
declaration-empty-line-before
in styled component.declaration-empty-line-before
e.g.
9.10.1
CLI with
stylelint "**/*.styled.js"
. Also in demoYes, it's related to CSS-in-JS (styled components).
Warnings to be flagged for
border
.No warnings.
The text was updated successfully, but these errors were encountered: