Skip to content

Commit b6262b2

Browse files
authoredAug 31, 2023
style(stylelint, prettier): update stylelint config (#896)
* style(sass): add prettier config and remove deprecated rules
1 parent 96d03af commit b6262b2

File tree

4 files changed

+49
-25
lines changed

4 files changed

+49
-25
lines changed
 

‎.prettierrc.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,15 @@
22
"trailingComma": "es5",
33
"tabWidth": 2,
44
"singleQuote": true,
5-
"arrowParens": "always"
5+
"arrowParens": "always",
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.scss"
10+
],
11+
"options": {
12+
"tabWidth": 4
13+
}
14+
}
15+
]
616
}

‎.stylelintrc.json

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,45 @@
11
{
2-
"extends": "stylelint-config-standard-scss",
3-
"plugins": ["stylelint-scss"],
2+
"extends": ["stylelint-config-standard-scss"],
3+
"plugins": ["stylelint-scss", "stylelint-prettier"],
44
"rules": {
55
"at-rule-disallowed-list": ["debug", {
66
"severity": "warning"
77
}],
8-
"block-closing-brace-empty-line-before": "never",
9-
"block-closing-brace-newline-after": "always-single-line",
108
"block-no-empty": true,
11-
"color-hex-case": "lower",
129
"color-hex-length": "short",
1310
"color-no-invalid-hex": true,
1411
"comment-no-empty": true,
1512
"custom-property-pattern": "(?:igc-)?.+",
1613
"declaration-block-no-duplicate-properties": true,
1714
"declaration-block-no-shorthand-property-overrides": true,
1815
"declaration-block-single-line-max-declarations": 1,
19-
"declaration-colon-space-after": "always-single-line",
2016
"font-family-no-duplicate-names": true,
2117
"font-family-no-missing-generic-family-keyword": true,
2218
"font-weight-notation": "numeric",
2319
"function-calc-no-unspaced-operator": true,
24-
"function-comma-space-after": "always-single-line",
25-
"indentation": 4,
2620
"length-zero-no-unit": true,
2721
"max-nesting-depth": [3, {
2822
"severity": "warning"
2923
}],
3024
"no-descending-specificity": null,
3125
"no-duplicate-at-import-rules": true,
3226
"no-duplicate-selectors": true,
33-
"no-extra-semicolons": true,
3427
"no-invalid-double-slash-comments": true,
35-
"no-missing-end-of-source-newline": true,
36-
"number-leading-zero": "never",
37-
"number-no-trailing-zeros": true,
3828
"property-no-unknown": true,
3929
"rule-empty-line-before": ["always-multi-line", {
4030
"except": ["first-nested"],
4131
"ignore": ["after-comment"]
4232
}],
4333
"selector-attribute-quotes": "always",
44-
"selector-attribute-operator-space-after": "never",
45-
"selector-attribute-operator-space-before": "never",
46-
"selector-combinator-space-after": "always",
47-
"selector-combinator-space-before": "always",
48-
"selector-descendant-combinator-no-non-space": true,
49-
"selector-list-comma-newline-after": "always",
50-
"selector-pseudo-class-case": "lower",
5134
"selector-pseudo-class-no-unknown": true,
52-
"selector-pseudo-class-parentheses-space-inside": "never",
53-
"selector-pseudo-element-case": "lower",
5435
"selector-pseudo-element-colon-notation": "double",
5536
"selector-pseudo-element-no-unknown": true,
5637
"selector-type-case": "lower",
5738
"selector-type-no-unknown": [true, {
5839
"ignore": ["custom-elements"]
5940
}],
6041
"shorthand-property-no-redundant-values": true,
61-
"string-quotes": "single",
62-
"unit-case": "lower",
6342
"value-keyword-case": "lower",
64-
"value-list-comma-space-after": "always-single-line",
6543
"value-no-vendor-prefix": true,
6644
"scss/at-mixin-pattern": null,
6745
"scss/at-function-pattern": null,

‎package-lock.json

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"stylelint": "^15.10.3",
9999
"stylelint-config-standard-scss": "^10.0.0",
100100
"stylelint-scss": "^5.1.0",
101+
"stylelint-prettier": "^4.0.2",
101102
"ts-lit-plugin": "^1.2.1",
102103
"tslib": "^2.6.2",
103104
"typedoc": "^0.23.21",

0 commit comments

Comments
 (0)
Please sign in to comment.