-
Notifications
You must be signed in to change notification settings - Fork 927
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
Stylelint fixes #1610
Stylelint fixes #1610
Conversation
@@ -1,3 +1,4 @@ | |||
/* stylelint-disable at-rule-empty-line-before */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we disabling this rule here? Couldn't we just add a newline on line 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC, stylelint was throwing errors for every @include
rule in the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea maybe in another PR we should configure that rule, not sure it makes sense.
@@ -150,7 +152,7 @@ | |||
z-index: 1; | |||
} | |||
|
|||
&.usa-current { | |||
&.usa-current { /* stylelint-disable-line selector-no-qualifying-type */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule is not re-enabled.
But I'd also potentially prefer to just move .usa-current
outside of a
because I'm not sure the extra specificity is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, it might be required because things like a:visited
might override it.
@@ -175,7 +176,7 @@ | |||
line-height: $heading-line-height; | |||
|
|||
&:hover, | |||
&.usa-current { | |||
&.usa-current { /* stylelint-disable-line selector-no-qualifying-type */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this rule ever re-enabled? Or does it need to be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stylelint-disable-line
doesn't need to be re-enabled; it only applies to the line 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was hoping that we could focus this PR on reducing/eliminating linting errors, then address any CSS-specific stuff separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Okay @msecret, I pushed a bunch more fixes, and the two generally of note are:
And, finally, I re-enabled the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny change and then feel free to merge in! 🌮
@@ -54,7 +54,7 @@ gulp.task('copy-vendor-sass', function (done) { | |||
* XXX the 'stylelint' prerequisite is commented out here because | |||
* there are currently a TON of linting errors in our SCSS files. | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need the above comment anymore. 😁 🎉
Fixes our
gulp stylelint
task so that we can add it back in as a dependency togulp sass
and ensure that we're not breaking our own Sass style rules.