Skip to content

Commit 66231cd

Browse files
committed
eslint/stylelint improvements from SDI
1 parent 1d32943 commit 66231cd

File tree

4 files changed

+1974
-1680
lines changed

4 files changed

+1974
-1680
lines changed

.stylelintrc.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,40 @@
22
"cache": true,
33
"defaultSeverity": "warning",
44
"extends": [
5-
"stylelint-config-standard",
6-
"@stylistic/stylelint-config"
5+
"stylelint-config-html",
6+
"stylelint-config-recommended-vue",
7+
"stylelint-config-standard"
78
],
89
"fix": true,
9-
"plugins": [
10-
"@stylistic/stylelint-plugin"
11-
],
1210
"rules": {
1311
"color-function-notation": "modern",
1412
"color-hex-length": "long",
1513
"comment-whitespace-inside": "always",
1614
"custom-property-empty-line-before": "never",
1715
"declaration-block-no-redundant-longhand-properties": false,
16+
"declaration-block-no-shorthand-property-overrides": true,
1817
"declaration-empty-line-before": "never",
1918
"declaration-property-unit-allowed-list": {
2019
"font-size": [
2120
"px",
22-
"rem"
21+
"rem",
22+
"vh",
23+
"vw"
2324
]
2425
},
2526
"font-family-name-quotes": "always-unless-keyword",
2627
"font-weight-notation": "numeric",
2728
"function-name-case": "lower",
2829
"function-url-quotes": "always",
29-
"@stylistic/indentation": 4,
3030
"import-notation": "string",
3131
"max-nesting-depth": 2,
3232
"media-feature-range-notation": "prefix",
33-
"rule-empty-line-before": "always",
33+
"rule-empty-line-before": [
34+
"always",
35+
{
36+
"except": "first-nested"
37+
}
38+
],
3439
"selector-attribute-quotes": "always",
3540
"selector-class-pattern": null,
3641
"selector-max-compound-selectors": 3,
@@ -42,22 +47,17 @@
4247
"overrides": [
4348
{
4449
"files": [
45-
"*.scss",
4650
"**/*.scss"
4751
],
4852
"extends": [
4953
"stylelint-config-standard-scss"
5054
],
5155
"rules": {
52-
"scss/at-if-closing-brace-newline-after": null,
53-
"scss/at-if-closing-brace-space-after": null,
54-
"scss/at-else-closing-brace-newline-after": null,
55-
"scss/at-else-closing-brace-space-after": null,
5656
"scss/at-mixin-named-arguments": "always",
5757
"scss/dollar-variable-empty-line-after": [
5858
"always",
5959
{
60-
"expect": [
60+
"except": [
6161
"last-nested",
6262
"before-dollar-variable"
6363
],
@@ -78,8 +78,7 @@
7878
]
7979
}
8080
],
81-
"scss/dollar-variable-no-missing-interpolation": true,
82-
"scss/operator-no-unspaced": true
81+
"scss/dollar-variable-no-missing-interpolation": true
8382
}
8483
}
8584
]

0 commit comments

Comments
 (0)