Skip to content

Commit 556a848

Browse files
authored
Remove stylelint rules that are no longer needed with later versions. (#4303)
1 parent de1e4fe commit 556a848

20 files changed

+13
-100
lines changed

.stylelintrc.yaml

-64
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,9 @@
11
extends:
2-
- stylelint-config-standard
32
- stylelint-config-standard-scss
43
rules:
5-
at-rule-disallowed-list:
6-
- debug
7-
at-rule-no-unknown: null
8-
at-rule-no-vendor-prefix: true
9-
block-no-empty: null
10-
color-hex-length: short
11-
color-named: never
12-
color-no-invalid-hex: true
134
declaration-block-no-redundant-longhand-properties: null
14-
declaration-block-single-line-max-declarations: 1
155
declaration-empty-line-before: null
16-
declaration-no-important: true
17-
declaration-property-value-disallowed-list:
18-
border:
19-
- none
20-
border-top:
21-
- none
22-
border-right:
23-
- none
24-
border-bottom:
25-
- none
26-
border-left:
27-
- none
28-
font-family-name-quotes: null
29-
function-url-quotes: always
30-
length-zero-no-unit: true
31-
max-nesting-depth:
32-
- 4
33-
- ignoreAtRules:
34-
- each
35-
- media
36-
- supports
37-
- include
38-
media-feature-name-no-vendor-prefix: true
39-
media-feature-range-notation: prefix
406
no-descending-specificity: null
41-
property-no-unknown: true
42-
property-no-vendor-prefix: true
43-
rule-empty-line-before:
44-
- always-multi-line
45-
- except:
46-
- first-nested
47-
ignore:
48-
- after-comment
49-
scss/at-extend-no-missing-placeholder: true
50-
scss/at-function-pattern: "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
51-
scss/load-no-partial-leading-underscore: true
52-
scss/at-import-partial-extension-disallowed-list:
53-
- scss
54-
scss/at-mixin-pattern: "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
55-
scss/at-rule-no-unknown: true
56-
scss/comment-no-empty: null
57-
#scss/dollar-variable-colon-space-after: always
58-
scss/dollar-variable-colon-space-before: never
59-
scss/dollar-variable-pattern: "^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
60-
scss/no-global-function-names: null
61-
#scss/percent-placeholder-pattern: "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
62-
#scss/selector-no-redundant-nesting-selector: true
637
selector-class-pattern:
648
- "^[a-z0-9\\-]+$"
659
- message: Selector should be written in lowercase with hyphens (selector-class-pattern)
66-
selector-max-compound-selectors: 3
67-
selector-max-id: 0
68-
#selector-no-qualifying-type: true
69-
selector-no-vendor-prefix: true
70-
selector-pseudo-element-colon-notation: double
71-
selector-pseudo-element-no-unknown: true
72-
shorthand-property-no-redundant-values: true
73-
value-no-vendor-prefix: true

hypha/static_src/sass/abstracts/_mixins.scss

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
@use "sass:list";
22
@use "functions";
33
@use "variables";
4-
5-
// stylelint-disable
6-
74
@use "sass:math";
85

6+
// stylelint-disable scss/at-mixin-pattern
7+
98
// Media queries
109
@mixin media-query($queries...) {
1110
@each $query in $queries {

hypha/static_src/sass/abstracts/_variables.scss

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// stylelint-disable scss/dollar-variable-pattern
2+
13
// Most variables are set from css variables defined in
24
// tailwind/base/variables.css so they are easy to override.
35
// Only variables used in media queries and calculations are defined here.

hypha/static_src/sass/base/_base.scss

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@use "../abstracts/variables";
22

3-
// stylelint-disable property-no-vendor-prefix
43
body {
54
overflow-x: hidden;
65

hypha/static_src/sass/components/_all-reviews-table.scss

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@use "../abstracts/mixins";
22
@use "../abstracts/variables";
33

4-
// stylelint-disable selector-max-compound-selectors
5-
64
.all-reviews-table {
75
@include mixins.table-ordering-styles;
86

hypha/static_src/sass/components/_all-submissions-table.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@use "../abstracts/mixins";
22
@use "../abstracts/variables";
33

4-
// stylelint-disable selector-class-pattern,selector-max-compound-selectors
4+
// stylelint-disable selector-class-pattern
55

66
.all-submissions-table {
77
@include mixins.table-ordering-styles;
@@ -177,7 +177,6 @@
177177
}
178178
}
179179

180-
// stylelint-disable-next-line force-element-nesting
181180
> span.mobile-label {
182181
display: inline-block;
183182
width: 90px;

hypha/static_src/sass/components/_button.scss

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
}
6363

6464
&--login {
65-
/* stylelint-disable-next-line media-query-no-invalid */
6665
@media (min-width: variables.$input-box-max-width) {
6766
width: 20rem;
6867
}

hypha/static_src/sass/components/_dashboard-table.scss

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@use "../abstracts/mixins";
22
@use "../abstracts/variables";
33

4-
// stylelint-disable selector-max-compound-selectors
5-
64
.paf-review-table {
75
@include mixins.table-ordering-styles;
86

@@ -41,7 +39,6 @@
4139

4240
tbody {
4341
td {
44-
// stylelint-disable-next-line force-element-nesting
4542
> span.mobile-label {
4643
display: inline-block;
4744
width: 90px;

hypha/static_src/sass/components/_feed.scss

-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@
134134

135135
span {
136136
&:first-child {
137-
// stylelint-disable-next-line max-nesting-depth
138137
&::after {
139138
@include mixins.triangle(
140139
right,

hypha/static_src/sass/components/_form.scss

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
@use "../base/base";
22
@use "../abstracts/mixins";
33
@use "../abstracts/variables";
4-
5-
// stylelint-disable selector-max-compound-selectors
6-
74
@use "sass:math";
85

96
.form {
@@ -260,7 +257,6 @@
260257
}
261258

262259
input {
263-
// stylelint-disable-next-line max-nesting-depth
264260
&:first-of-type {
265261
@supports (display: grid) {
266262
grid-column: 1;
@@ -455,7 +451,7 @@
455451
}
456452

457453
&__comments {
458-
// stylelint-disable-next-line selector-class-pattern,selector-id-pattern,selector-max-id
454+
// stylelint-disable-next-line selector-class-pattern,selector-id-pattern
459455
ul#id_visibility {
460456
display: flex;
461457
flex-wrap: wrap;
@@ -487,7 +483,7 @@
487483

488484
.address {
489485
padding: 0.4em;
490-
border: 1px solid #cfcfcf8f; // stylelint-disable-line color-no-hex
486+
border: 1px solid #cfcfcf8f;
491487
max-width: 410px;
492488

493489
// stylelint-disable-next-line selector-class-pattern

hypha/static_src/sass/components/_nprogress.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@use "../abstracts/variables";
22

3-
/* stylelint-disable selector-max-id, length-zero-no-unit -- CSS from https://github.com/rstacruz/nprogress */
3+
/* stylelint-disable length-zero-no-unit -- CSS from https://github.com/rstacruz/nprogress */
44
#nprogress {
55
/* Make clicks pass-through */
66
pointer-events: none;

hypha/static_src/sass/components/_projects-table.scss

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@use "../abstracts/mixins";
22
@use "../abstracts/variables";
33

4-
// stylelint-disable selector-max-compound-selectors
5-
64
.projects-table {
75
@include mixins.table-ordering-styles;
86

@@ -16,7 +14,6 @@
1614

1715
tbody {
1816
td {
19-
// stylelint-disable-next-line force-element-nesting
2017
> span.mobile-label {
2118
display: inline-block;
2219
width: 90px;
@@ -62,7 +59,6 @@
6259

6360
tbody {
6461
td {
65-
// stylelint-disable-next-line force-element-nesting
6662
> span.mobile-label {
6763
display: inline-block;
6864
width: 90px;

hypha/static_src/sass/components/_reviews-sidebar.scss

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@use "../abstracts/mixins";
22
@use "../abstracts/variables";
33

4-
// stylelint-disable max-nesting-depth
5-
64
.reviews-sidebar {
75
$root: &;
86
margin-block-end: 20px;

hypha/static_src/sass/components/_select2.scss

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@use "../abstracts/mixins";
22
@use "../abstracts/variables";
33

4-
// stylelint-disable selector-max-compound-selectors, selector-class-pattern
4+
// stylelint-disable selector-class-pattern
55

66
.select2 {
77
&-container {
@@ -10,7 +10,6 @@
1010

1111
.select2-container--default,
1212
&.select2-container--default {
13-
// stylelint-disable-next-line declaration-no-important
1413
width: 100% !important;
1514

1615
.select2-selection--single {
@@ -58,9 +57,7 @@
5857
.select2-container {
5958
&--default {
6059
.select2-results__option--highlighted[aria-selected] {
61-
// stylelint-disable-next-line declaration-no-important
6260
color: variables.$color--default !important;
63-
// stylelint-disable declaration-no-important, max-line-length
6461
background-color: variables.$color--light-blue-90 !important;
6562
}
6663
}

hypha/static_src/sass/components/_submission-meta.scss

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
tbody {
77
td {
88
&.phase {
9-
// stylelint-disable-next-line selector-max-compound-selectors
109
span {
1110
display: inline-block;
1211
padding: 10px;

hypha/static_src/sass/components/_table.scss

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@use "../abstracts/mixins";
22
@use "../abstracts/variables";
33

4-
// stylelint-disable selector-max-compound-selectors,max-nesting-depth
5-
64
.table-container {
75
> table {
86
border: 1px solid variables.$color--light-mid-grey;

hypha/static_src/sass/components/_tabs.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
background-color: rgba(
5151
#fff,
5252
0.8
53-
); // stylelint-disable-line color-no-hex
53+
);
5454
}
5555

5656
&--alt {

hypha/static_src/sass/components/_two-factor.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// stylelint-disable property-no-vendor-prefix, selector-id-pattern, selector-max-id
1+
// stylelint-disable property-no-vendor-prefix, selector-id-pattern
22
@use "../base/typography";
33

44
.two-factor {

hypha/static_src/sass/print.scss

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// stylelint-disable color-no-hex, no-color-literals, declaration-no-important
21
// stylelint-disable property-no-vendor-prefix, selector-class-pattern
32
* {
43
background: transparent !important;

hypha/static_src/sass/wagtail_users_list.scss

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// stylelint-disable media-feature-range-notation
2+
13
.users-list {
24
padding-inline-start: 1rem;
35
padding-inline-end: 1rem;

0 commit comments

Comments
 (0)