-
Notifications
You must be signed in to change notification settings - Fork 3
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
ENH Update stylelint rules #26
ENH Update stylelint rules #26
Conversation
23338a5
to
f0e12f6
Compare
'selector-class-pattern': null, | ||
'function-no-unknown': null, | ||
'property-no-vendor-prefix': null, | ||
'value-no-vendor-prefix': null, | ||
'font-family-no-missing-generic-family-keyword': null, | ||
'scss/dollar-variable-colon-space-after': null, | ||
'scss/no-global-function-names': null, | ||
'value-keyword-case': null | ||
'value-keyword-case': null, | ||
'media-query-no-invalid': null, |
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.
As per https://stylelint.io/user-guide/rules/media-query-no-invalid/ this rule isn't appropriate for scss
3f436af
to
f857181
Compare
f857181
to
7597c64
Compare
'selector-max-compound-selectors': 5, | ||
'selector-max-compound-selectors': 6, |
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.
Bumped slightly to resolve a lot of issues and avoid having to add a ignore comments for all of them.
This rule can't be retrospectively respected without changing the specificity of selectors, which might affect styling in adverse ways.
'max-nesting-depth': [ | ||
3, | ||
4, |
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.
Bumped slightly to resolve a lot of issues and avoid having to add a ignore comments for all of them.
Respecting this rule retrospectively would require refactoring the scss in a way that could result in unexpected changes
'selector-class-pattern': null, | ||
'selector-id-pattern': null, |
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.
We can't change what the IDs look like at this point, it's too likely to cause problems.
'selector-id-pattern': null, | ||
'keyframes-name-pattern': null, | ||
'scss/dollar-variable-pattern': null, |
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.
A mixture of "changing these could cause problems" and "changing these isn't worth the effort, it doesn't really matter if they match some arbitrary pattern or not"
'scss/at-extend-no-missing-placeholder': null, | ||
'no-descending-specificity': null, |
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.
no-descending-specificity
was the single most common item failing linting, and respecting it retrospectively could result in unexpected changes in styling.
scss/at-extend-no-missing-placeholder
means we can't use @extend
to avoid duplication of code for class selectors - in some cases this would even mean duplicating bootstrap css which we definitely don't want to do. Best to just disable the rule.
Tagged and published as 1.3.0 |
After merging:
1.3
branch1.3.0
on GitHub1.3.0
to npm viayarn publish
Issue