-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Switch to stylelint. #23572
Switch to stylelint. #23572
Conversation
5df2de7
to
4286cd3
Compare
Probably you also want to use stylelint-order plugin. |
Yup, it's on my todo, but I thought I'd let the other team members chime in before I make a lot more changes myself :) |
It'd be great if we make style lint format the code or use another formater. Love this change 👍🏻 |
cec53e5
to
6a90f48
Compare
39fb7f0
to
9126bae
Compare
3d0ab49
to
e5a0ea7
Compare
9213a79
to
6b0de6a
Compare
@@ -117,9 +122,7 @@ | |||
"build", | |||
"js/.eslintrc.json", | |||
"js/**/*.js", | |||
".scss-lint.yml", | |||
"scss/**/*.scss", | |||
"LICENSE" |
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.
Shouldn't the license stay?
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.
It's default included in npm.
7d96457
to
1a610d8
Compare
1a610d8
to
306c003
Compare
@mixin reset-text { | ||
font-family: $font-family-base; | ||
// We deliberately do NOT reset font-size or word-wrap. | ||
font-style: normal; | ||
font-weight: $font-weight-normal; | ||
line-height: $line-height-base; | ||
text-align: left; // Fallback for where `start` is not supported | ||
text-align: start; | ||
text-align: start; // stylelint-disable-line declaration-block-no-duplicate-properties |
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.
Property text-align
already defined on line 7
.navbar-collapse { | ||
display: flex !important; | ||
display: flex !important; // stylelint-disable-line declaration-no-important |
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.
!important should not be used
@@ -89,7 +89,8 @@ | |||
|
|||
.close { | |||
padding: $modal-header-padding; | |||
margin: (-$modal-header-padding) (-$modal-header-padding) (-$modal-header-padding) auto; // auto on the left force icon to the right even when there is no .modal-title | |||
// auto on the left force icon to the right even when there is no .modal-title | |||
margin: (-$modal-header-padding) (-$modal-header-padding) (-$modal-header-padding) auto; |
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.
Shorthands of length 4
are not allowed. Value was -$modal-header-padding -$modal-header-padding -$modal-header-padding auto
.anchorjs-link { | ||
font-weight: normal; | ||
font-weight: 400; |
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.
Properties should be ordered color, font-weight, transition
@@ -25,7 +27,7 @@ | |||
display: none !important; | |||
} | |||
|
|||
[class^=ds-dataset-] { | |||
[class^="ds-dataset-"] { |
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.
Selector should have depth of applicability no greater than 2, but was 3
@mixin reset-text { | ||
font-family: $font-family-base; | ||
// We deliberately do NOT reset font-size or word-wrap. | ||
font-style: normal; | ||
font-weight: $font-weight-normal; | ||
line-height: $line-height-base; | ||
text-align: left; // Fallback for where `start` is not supported | ||
text-align: start; | ||
text-align: start; // stylelint-disable-line declaration-block-no-duplicate-properties |
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.
Property text-align
already defined on line 7
.navbar-collapse { | ||
display: flex !important; | ||
display: flex !important; // stylelint-disable-line declaration-no-important |
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.
!important should not be used
@@ -89,7 +89,8 @@ | |||
|
|||
.close { | |||
padding: $modal-header-padding; | |||
margin: (-$modal-header-padding) (-$modal-header-padding) (-$modal-header-padding) auto; // auto on the left force icon to the right even when there is no .modal-title | |||
// auto on the left force icon to the right even when there is no .modal-title | |||
margin: (-$modal-header-padding) (-$modal-header-padding) (-$modal-header-padding) auto; |
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.
Shorthands of length 4
are not allowed. Value was -$modal-header-padding -$modal-header-padding -$modal-header-padding auto
.anchorjs-link { | ||
font-weight: normal; | ||
font-weight: 400; |
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.
Properties should be ordered color, font-weight, transition
@@ -25,7 +27,7 @@ | |||
display: none !important; | |||
} | |||
|
|||
[class^=ds-dataset-] { | |||
[class^="ds-dataset-"] { |
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.
Selector should have depth of applicability no greater than 2, but was 3
@mdo: is there anything else holding us for this? Otherwise pull the trigger 🔫 |
Fixes #23383
Note to all: feel free to push to this branch, and merge from v4-dev, but please do not rebase until we are ready to merge to v4-dev.
TODO: