Skip to content

Commit c69914e

Browse files
committed
ci: avoid repeated runs of stylelint (cotes2020#2057)
1 parent 65f960c commit c69914e

File tree

3 files changed

+30
-60
lines changed

3 files changed

+30
-60
lines changed

.github/workflows/style-lint.yml

-25
This file was deleted.

.stylelintrc.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"extends": "stylelint-config-standard-scss",
3+
"rules": {
4+
"no-descending-specificity": null,
5+
"shorthand-property-no-redundant-values": null,
6+
"at-rule-no-vendor-prefix": null,
7+
"property-no-vendor-prefix": null,
8+
"selector-no-vendor-prefix": null,
9+
"value-no-vendor-prefix": null,
10+
"color-function-notation": "legacy",
11+
"alpha-value-notation": "number",
12+
"selector-not-notation": "simple",
13+
"color-hex-length": "long",
14+
"declaration-block-single-line-max-declarations": 3,
15+
"scss/operator-no-newline-after": null,
16+
"rule-empty-line-before": [
17+
"always",
18+
{
19+
"ignore": ["after-comment", "first-nested"]
20+
}
21+
],
22+
"value-keyword-case": [
23+
"lower",
24+
{
25+
"ignoreProperties": ["/^\\$/"]
26+
}
27+
],
28+
"media-feature-range-notation": "prefix"
29+
}
30+
}

package.json

-35
Original file line numberDiff line numberDiff line change
@@ -68,41 +68,6 @@
6868
]
6969
}
7070
},
71-
"stylelint": {
72-
"extends": "stylelint-config-standard-scss",
73-
"rules": {
74-
"no-descending-specificity": null,
75-
"shorthand-property-no-redundant-values": null,
76-
"at-rule-no-vendor-prefix": null,
77-
"property-no-vendor-prefix": null,
78-
"selector-no-vendor-prefix": null,
79-
"value-no-vendor-prefix": null,
80-
"color-function-notation": "legacy",
81-
"alpha-value-notation": "number",
82-
"selector-not-notation": "simple",
83-
"color-hex-length": "long",
84-
"declaration-block-single-line-max-declarations": 3,
85-
"scss/operator-no-newline-after": null,
86-
"rule-empty-line-before": [
87-
"always",
88-
{
89-
"ignore": [
90-
"after-comment",
91-
"first-nested"
92-
]
93-
}
94-
],
95-
"value-keyword-case": [
96-
"lower",
97-
{
98-
"ignoreProperties": [
99-
"/^\\$/"
100-
]
101-
}
102-
],
103-
"media-feature-range-notation": "prefix"
104-
}
105-
},
10671
"release": {
10772
"branches": [
10873
"production"

0 commit comments

Comments
 (0)