Skip to content

Commit a549b04

Browse files
committed
chore: update the config of stylelint
1 parent e61b4c8 commit a549b04

File tree

8 files changed

+18
-0
lines changed

8 files changed

+18
-0
lines changed

.stylelintrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
"ignoreTypes": ["/^d-/"]
1717
}
1818
],
19+
"declaration-property-value-allowed-list": {
20+
"/color/": ["/var/", "currentColor", "transparent", "unset", "inherit"],
21+
"font-size": ["/var/", "/[0-9]+em$/"]
22+
},
23+
"declaration-property-value-disallowed-list": {
24+
"transition": ["/all/"]
25+
},
1926
"declaration-empty-line-before": null,
2027
"custom-property-pattern": null,
2128
"selector-class-pattern": null

packages/site/src/app/components/header/Header.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
background-color: var(--d-text-color);
2121
transform-origin: center center;
2222

23+
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
2324
transition: all 0.3s ease-in-out;
2425

2526
&:nth-child(1) {

packages/site/src/app/styles/_app.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ body {
1414
line-height: 1.5;
1515
text-align: null;
1616

17+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
1718
background-color: white; // 2
1819
text-size-adjust: 100%; // 3
20+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
1921
-webkit-tap-highlight-color: rgb(0 0 0 / 0%); // 4
2022

2123
@include font-size(1rem);
@@ -213,6 +215,7 @@ h3 {
213215
width: 160px;
214216
height: 40px;
215217

218+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
216219
color: #fff;
217220

218221
background-color: var(--d-color-primary);
@@ -250,6 +253,7 @@ h3 {
250253
justify-content: center;
251254
height: 48px;
252255

256+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
253257
color: #fff;
254258

255259
background-color: var(--d-color-primary);

packages/site/src/app/styles/_top-line-loader.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
height: 4px;
2020
overflow: hidden;
2121

22+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
2223
background-color: rgb(221 221 221 / 40%);
2324

2425
&::after {

packages/site/src/app/styles/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* stylelint-disable declaration-property-value-allowed-list */
2+
13
:root {
24
--app-th-background-color: #f9f9f9;
35
--app-code-background-color: #f2f4f5;

packages/ui/src/styles/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* stylelint-disable declaration-property-value-allowed-list */
12
/* stylelint-disable scss/operator-no-unspaced */
23
@import '~rfs/scss';
34

packages/ui/src/styles/components/_button.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060

6161
border: 1px solid var(--#{$variable-prefix}button-color);
6262

63+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
6364
color: #fff;
6465

6566
background-color: var(--#{$variable-prefix}button-color);

packages/ui/src/styles/components/_radio.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@
230230
@include button-radio;
231231

232232
#{$radio-selector}:not(.is-disabled).is-checked {
233+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
233234
color: #fff;
234235

235236
background-color: var(--#{$variable-prefix}color-primary);

0 commit comments

Comments
 (0)