forked from RedHat-UX/red-hat-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.yml
56 lines (50 loc) · 1.33 KB
/
.stylelintrc.yml
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
52
53
54
55
extends: stylelint-config-standard
ignoreFiles:
- node_modules/**/*
rules:
alpha-value-notation: number # TODO: fix for `percentage` in tokens
color-hex-length: long
color-function-notation: legacy # TODO: fix for `modern` in tokens
custom-property-pattern: _?[a-z]+[a-z0-9-]*
declaration-block-no-redundant-longhand-properties:
- true
- ignoreShorthands:
- /grid/
indentation: 2
number-max-precision: 6
no-descending-specificity:
- true
- ignore:
- selectors-within-list
selector-class-pattern: null
selector-combinator-space-after: always
selector-combinator-space-before: always
selector-pseudo-element-colon-notation: single
shorthand-property-no-redundant-values: true
string-quotes: double
max-line-length:
- 100
- ignorePattern: /--rh-font-family-/
selector-type-no-unknown:
- true
- ignore:
- custom-elements
ignoreTypes:
- heading
- actions
selector-pseudo-element-no-unknown:
- true
- ignorePseudoElements:
- /part(.*)/
rhds/token-values: true
plugins:
- ./node_modules/@rhds/tokens/plugins/stylelint.cjs
overrides:
- files:
- docs/**/*.scss
extends: stylelint-config-sass-guidelines
defaultSeverity: warning
rules:
max-line-length:
- 120
- ignorePattern: /--rh-font-family-/