/
.stylelintrc.yml
133 lines (120 loc) · 4.13 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
extends:
- stylelint-config-standard
- stylelint-stylistic/config
ignoreFiles:
- node_modules/**/*
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/
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
selector-pseudo-element-no-unknown:
- true
- ignorePseudoElements:
- /part(.*)/
stylistic/string-quotes: double
stylistic/selector-combinator-space-after: always
stylistic/selector-combinator-space-before: always
stylistic/indentation:
- 2
- indentInsideParens: 'once-at-root-twice-in-block'
stylistic/max-line-length:
- 100
- ignorePattern: /--rh-font-family-/
rhds/token-values: true
rhds/no-unknown-token-name:
- true
- migrations:
# reds
--rh-color-red-50: --rh-color-red-10
--rh-color-red-100: --rh-color-red-20
--rh-color-red-200: --rh-color-red-30
--rh-color-red-300: --rh-color-red-40
--rh-color-red-400: --rh-color-red-50
--rh-color-red-500: --rh-color-red-50
--rh-color-red-600: --rh-color-red-60
--rh-color-red-700: --rh-color-red-60
--rh-color-red-800: --rh-color-red-70
# oranges
--rh-color-orange-50: --rh-color-orange-10
--rh-color-orange-100: --rh-color-orange-30
--rh-color-orange-300: --rh-color-orange-40
--rh-color-orange-500: --rh-color-orange-60
--rh-color-orange-700: --rh-color-orange-70
# yellows (previously golds)
--rh-color-gold-50: --rh-color-yellow-10
--rh-color-gold-400: --rh-color-yellow-40
--rh-color-gold-600: --rh-color-yellow-70
# greens
--rh-color-green-50: --rh-color-green-10
--rh-color-green-100: --rh-color-green-20
--rh-color-green-500: --rh-color-green-60
--rh-color-green-600: --rh-color-green-70
# teals (previously cyans)
--rh-color-cyan-50: --rh-color-teal-10
--rh-color-cyan-100: --rh-color-teal-30
--rh-color-cyan-300: --rh-color-teal-50
--rh-color-cyan-400: --rh-color-teal-60
--rh-color-cyan-500: --rh-color-teal-70
# blues
--rh-color-blue-50: --rh-color-blue-10
--rh-color-blue-100: --rh-color-blue-20
--rh-color-blue-200: --rh-color-blue-30
--rh-color-blue-250: --rh-color-blue-40
--rh-color-blue-400: --rh-color-blue-50
--rh-color-blue-500: --rh-color-blue-60
--rh-color-blue-600: --rh-color-blue-70
# purples
--rh-color-purple-50: --rh-color-purple-10
--rh-color-purple-100: --rh-color-purple-20
--rh-color-purple-300: --rh-color-purple-40
--rh-color-purple-500: --rh-color-purple-60
--rh-color-purple-700: --rh-color-purple-70
# grays
--rh-color-gray-05: --rh-color-gray-10
--rh-color-gray-10: --rh-color-gray-20
--rh-color-gray-20: --rh-color-gray-30
--rh-color-gray-30: --rh-color-gray-40
--rh-color-gray-40: --rh-color-gray-50
--rh-color-gray-50: --rh-color-gray-60
--rh-color-gray-60: --rh-color-gray-70
--rh-color-gray-70: --rh-color-gray-80
--rh-color-gray-80: --rh-color-gray-90
--rh-color-gray-90: --rh-color-gray-95
--rh-color-black: --rh-color-gray-100
media-feature-range-notation: prefix
plugins:
- ./node_modules/@rhds/tokens/plugins/stylelint.cjs
- stylelint-stylistic
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-/