forked from OpenLightingProject/open-fixture-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.yaml
51 lines (42 loc) · 1.19 KB
/
.stylelintrc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
reportNeedlessDisables: true
reportInvalidScopeDisables: true
reportDescriptionlessDisables: true
extends:
- '@stylistic/stylelint-config'
- stylelint-config-standard-scss
- stylelint-config-html/vue
- stylelint-config-recess-order
rules:
# `modern` not supported by Sass
color-function-notation: legacy
# always long to be consistent
color-hex-length: long
# always numeric to be consistent
font-weight-notation: numeric
# avoid using non-global functions
function-no-unknown:
- true
- ignoreFunctions:
- theme-color
- color-to-rgb-string
- /^[a-z]+\.[a-z\-]+$/ # all `@use`d Sass functions
# decrease severity for this rule only
no-descending-specificity:
- true
- severity: warning
# allow Vue pseudo elements
selector-pseudo-element-no-unknown:
- true
- ignorePseudoElements: ["v-deep"]
# simplify rules
scss/block-no-redundant-nesting: true
# prevent comments in generated CSS
scss/comment-no-loud: true
# special `@if`/`@else` formatting
'@stylistic/block-closing-brace-newline-after':
- always
- ignoreAtRules:
- if
- else
# allow grouping in Sass lists
'@stylistic/value-list-max-empty-lines': 1