Skip to content

Commit d0b7eb1

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Cleanup stylelint comments
1 parent 807e8fe commit d0b7eb1

5 files changed

Lines changed: 8 additions & 15 deletions

File tree

scss/_close.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
// If you want the anchor version, it requires `href="#"`.
2626
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
2727

28-
// stylelint-disable property-no-vendor-prefix, selector-no-qualifying-type
28+
// stylelint-disable-next-line selector-no-qualifying-type
2929
button.close {
3030
padding: 0;
3131
background-color: transparent;
3232
border: 0;
33-
-webkit-appearance: none;
33+
appearance: none;
3434
}
35-
// stylelint-enable

scss/_dropdown.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
}
106106

107107
// When enabled Popper.js, reset basic dropdown position
108-
// stylelint-disable no-duplicate-selectors
108+
// stylelint-disable-next-line no-duplicate-selectors
109109
.dropdown-menu {
110110
&[x-placement^="top"],
111111
&[x-placement^="right"],
@@ -115,7 +115,6 @@
115115
bottom: auto;
116116
}
117117
}
118-
// stylelint-enable no-duplicate-selectors
119118

120119
// Dividers (basically an `<hr>`) within the dropdown
121120
.dropdown-divider {

scss/_forms.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,18 @@ select.form-control {
155155
@include border-radius($input-border-radius-lg);
156156
}
157157

158-
// stylelint-disable no-duplicate-selectors
158+
// stylelint-disable-next-line no-duplicate-selectors
159159
select.form-control {
160160
&[size],
161161
&[multiple] {
162162
height: auto;
163163
}
164164
}
165165

166+
// stylelint-disable-next-line no-duplicate-selectors
166167
textarea.form-control {
167168
height: auto;
168169
}
169-
// stylelint-enable no-duplicate-selectors
170170

171171
// Form groups
172172
//

scss/_reboot.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ html {
4040
}
4141
}
4242

43-
// stylelint-disable selector-list-comma-newline-after
4443
// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
44+
// stylelint-disable-next-line selector-list-comma-newline-after
4545
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
4646
display: block;
4747
}
48-
// stylelint-enable selector-list-comma-newline-after
4948

5049
// Body
5150
//
@@ -95,12 +94,11 @@ hr {
9594
//
9695
// By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
9796
// margin for easier control within type scales as it avoids margin collapsing.
98-
// stylelint-disable selector-list-comma-newline-after
97+
// stylelint-disable-next-line selector-list-comma-newline-after
9998
h1, h2, h3, h4, h5, h6 {
10099
margin-top: 0;
101100
margin-bottom: $headings-margin-bottom;
102101
}
103-
// stylelint-enable selector-list-comma-newline-after
104102

105103
// Reset margins on paragraphs
106104
//
@@ -163,12 +161,10 @@ dfn {
163161
font-style: italic; // Add the correct font style in Android 4.3-
164162
}
165163

166-
// stylelint-disable font-weight-notation
167164
b,
168165
strong {
169166
font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari
170167
}
171-
// stylelint-enable font-weight-notation
172168

173169
small {
174170
font-size: 80%; // Add the correct font size in all browsers

scss/mixins/_forms.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
}
8181
}
8282

83-
// stylelint-disable selector-no-qualifying-type
83+
// stylelint-disable-next-line selector-no-qualifying-type
8484
textarea.form-control {
8585
.was-validated &:#{$state},
8686
&.is-#{$state} {
@@ -90,7 +90,6 @@
9090
}
9191
}
9292
}
93-
// stylelint-enable selector-no-qualifying-type
9493

9594
.custom-select {
9695
.was-validated &:#{$state},

0 commit comments

Comments
 (0)