-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.stylelintrc.yml
82 lines (70 loc) · 2.06 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
extends:
- stylelint-config-standard
- '@stylistic/stylelint-config'
plugins:
- ./node_modules/@rhds/tokens/plugins/stylelint.js
- '@stylistic/stylelint-plugin'
ignoreFiles:
- node_modules/**/*
- docs/assets/javascript/elements/*.js
rules:
alpha-value-notation: number # TODO: fix for `percentage` in tokens
color-hex-length: long
# TODO: fix this in tokens plugin
# color-function-notation: modern
color-function-notation: null
custom-property-pattern: _?[a-z]+[a-z0-9-]*
declaration-block-no-redundant-longhand-properties:
- true
- ignoreShorthands:
- /grid/
media-feature-range-notation: prefix
number-max-precision: 6
no-descending-specificity:
- true
- ignore:
- selectors-within-list
selector-class-pattern: null
selector-pseudo-element-colon-notation: single
shorthand-property-no-redundant-values: true
selector-type-no-unknown:
- true
- ignore:
- custom-elements
ignoreTypes:
- heading
- actions
- pending
- --rendered
selector-pseudo-element-no-unknown:
- true
- ignorePseudoElements:
- /part(.*)/
'@stylistic/string-quotes': single
'@stylistic/selector-combinator-space-after': always
'@stylistic/selector-combinator-space-before': always
'@stylistic/function-parentheses-newline-inside': never-multi-line
'@stylistic/function-comma-newline-after': always-multi-line
'@stylistic/indentation':
- 2
- indentInsideParens: 'once-at-root-twice-in-block'
'@stylistic/max-line-length':
- 100
- ignorePattern: /(--rh-font-family-|https:\/\/)/
rhds/deprecated: true
rhds/token-values: true
rhds/no-unknown-token-name:
- true
- allowed:
- --rh-icon-size
overrides:
- files:
- docs/**/*.scss
defaultSeverity: warning
extends: stylelint-config-standard-scss
rules:
'@stylistic/block-closing-brace-newline-after': null
scss/at-if-closing-brace-newline-after: always-last-in-chain
'@stylistic/max-line-length':
- 120
- ignorePattern: /--rh-font-family-/