stylelint-config-ccb 1.8.1 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +51 -139
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -9,12 +9,39 @@ module.exports = {
9
9
  'stylelint-prettier'
10
10
  ],
11
11
  rules: {
12
- 'color-format/format': {
13
- format: 'rgb'
14
- },
15
-
16
- 'plugin/stylelint-selector-no-empty': true,
12
+ /* stylelint-config-standard overwrites */
13
+ 'alpha-value-notation': 'number',
14
+ 'color-hex-length': 'long',
15
+ 'declaration-block-no-redundant-longhand-properties': null,
16
+ 'function-url-quotes': [
17
+ 'always',
18
+ {
19
+ except: [
20
+ 'empty'
21
+ ]
22
+ }
23
+ ],
24
+ 'value-keyword-case': [
25
+ 'lower',
26
+ {
27
+ ignoreProperties: ['unicode-range'],
28
+ camelCaseSvgKeywords: true
29
+ }
30
+ ],
31
+ 'number-max-precision': 5,
32
+ /* todo update these based on 'selector-id-pattern': [
33
+ '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
34
+ {
35
+ message: 'Expected id selector to be kebab-case'
36
+ }
37
+ ], */
38
+ 'custom-media-pattern': '[a-z-]{4,40}',
39
+ 'custom-property-pattern': '[a-z-]{4,40}',
40
+ 'keyframes-name-pattern': '[a-z-]{4,40}',
41
+ 'selector-class-pattern': '[a-z-_]{3,40}',
42
+ 'selector-id-pattern': '[a-z-_]{2,40}',
17
43
 
44
+ /* stylelint-config-ccb */
18
45
  'declaration-property-max-values': {
19
46
  'border-width': 2,
20
47
  border: 3,
@@ -32,7 +59,6 @@ module.exports = {
32
59
  'font-face': ['font-display', 'font-family', 'font-style', 'src']
33
60
  },
34
61
  'color-no-hex': true,
35
- 'color-hex-length': 'long',
36
62
  'comment-word-disallowed-list': [
37
63
  'todo',
38
64
 
@@ -51,7 +77,6 @@ module.exports = {
51
77
  'whitehat', 'white-hat', 'whitelist', 'white-list', 'whitelisted',
52
78
  'white-listed', 'whitelisting', 'white-listing', 'ymmv'
53
79
  ],
54
- 'declaration-block-no-redundant-longhand-properties': null,
55
80
  'declaration-property-unit-allowed-list': {
56
81
  'font-size': ['rem', 'em'],
57
82
  'transition-delay': ['ms'],
@@ -82,21 +107,12 @@ module.exports = {
82
107
  },
83
108
  'function-url-scheme-allowed-list': ['data', 'https'],
84
109
  'function-disallowed-list': ['gray', 'color-mod', 'color', 'rgba', 'hsla'],
85
- 'keyframes-name-pattern': '[a-z-]{4,40}',
86
- 'custom-media-pattern': '[a-z-]{4,40}',
87
- 'custom-property-pattern': '[a-z-]{4,40}',
88
- 'selector-class-pattern': '[a-z-_]{3,40}',
89
- 'selector-id-pattern': '[a-z-_]{2,40}',
90
- linebreaks: 'unix',
91
- 'no-empty-first-line': true,
92
110
  'declaration-no-important': true,
93
- 'number-max-precision': 5,
94
111
  'property-disallowed-list': [
95
112
  '-webkit-font-smoothing', '-moz-osx-font-smoothing',
96
113
  'font-smoothing', 'osx-font-smoothing', 'font-smooth',
97
114
  'float'
98
115
  ],
99
- 'unicode-bom': 'never',
100
116
  'time-min-milliseconds': 75,
101
117
  'selector-no-qualifying-type': true,
102
118
  'selector-max-attribute': 1,
@@ -112,14 +128,6 @@ module.exports = {
112
128
  's'
113
129
  ],
114
130
 
115
- 'declaration-block-no-shorthand-property-overrides': true,
116
- 'no-irregular-whitespace': true,
117
- 'no-invalid-position-at-import-rule': true,
118
- 'named-grid-areas-no-invalid': true,
119
- 'declaration-block-no-duplicate-custom-properties': true,
120
- 'color-function-notation': 'modern',
121
- 'alpha-value-notation': 'number',
122
- 'hue-degree-notation': 'number',
123
131
  'font-weight-notation': [
124
132
  'numeric',
125
133
  {
@@ -129,24 +137,13 @@ module.exports = {
129
137
  }
130
138
  ],
131
139
  'function-url-no-scheme-relative': true,
132
- 'function-url-quotes': [
133
- 'always',
134
- {
135
- except: [
136
- 'empty'
137
- ]
138
- }
139
- ],
140
- 'selector-type-no-unknown': [
141
- true,
142
- {
143
- ignore: ['custom-elements']
144
- }
145
- ],
146
- 'selector-attribute-quotes': 'always',
147
- 'string-quotes': 'double',
148
140
  'max-nesting-depth': 2,
149
141
  'color-named': 'never',
142
+ 'no-unknown-animations': true,
143
+
144
+ /* prettier-overlap */
145
+ linebreaks: 'unix',
146
+ 'unicode-bom': 'never',
150
147
  'at-rule-semicolon-space-before': 'never',
151
148
  'block-opening-brace-newline-before': 'never-single-line',
152
149
  'declaration-block-semicolon-newline-before': 'never-multi-line',
@@ -155,115 +152,30 @@ module.exports = {
155
152
  'selector-list-comma-newline-before': 'never-multi-line',
156
153
  'selector-list-comma-space-after': 'always-single-line',
157
154
  'value-list-comma-newline-before': 'never-multi-line',
158
- 'value-keyword-case': [
159
- 'lower',
160
- {
161
- ignoreProperties: 'unicode-range',
162
- camelCaseSvgKeywords: true
163
- }
164
- ],
165
- 'unit-no-unknown': [
166
- true,
167
- {
168
- ignoreUnits: [
169
- 'x'
170
- ]
171
- }
172
- ],
173
- 'shorthand-property-no-redundant-values': true,
174
- 'no-unknown-animations': true,
175
- 'at-rule-no-vendor-prefix': true,
176
- 'media-feature-name-no-vendor-prefix': true,
177
- 'property-no-vendor-prefix': true,
178
- 'selector-no-vendor-prefix': true,
179
- 'value-no-vendor-prefix': true,
180
- 'font-family-name-quotes': 'always-where-recommended',
181
-
182
- /* disabled by prettier
183
- indentation: null,
184
- linebreaks: null,
185
-
186
- 'at-rule-empty-line-before': null,
187
- 'at-rule-name-case': null,
188
- 'at-rule-name-newline-after': null,
189
- 'at-rule-name-space-after': null,
190
- 'at-rule-semicolon-newline-after': null,
191
- 'at-rule-semicolon-space-before': null,
192
- 'block-closing-brace-empty-line-before': null,
193
- 'block-closing-brace-newline-after': null,
194
- 'block-closing-brace-newline-before': null,
195
- 'block-closing-brace-space-after': null,
196
- 'block-closing-brace-space-before': null,
197
- 'block-opening-brace-newline-after': null,
198
- 'block-opening-brace-newline-before': null,
199
- 'block-opening-brace-space-after': null,
155
+
156
+ /* prettier-conflicts, prefer stylelint-config-standard
157
+ 'max-line-length': 120,
200
158
  'block-opening-brace-space-before': null,
201
- 'color-hex-case': null,
202
- 'declaration-bang-space-after': null,
203
- 'declaration-bang-space-before': null,
204
- 'declaration-block-semicolon-newline-after': null,
205
- 'declaration-block-semicolon-newline-before': null,
206
- 'declaration-block-semicolon-space-after': null,
207
- 'declaration-block-semicolon-space-before': null,
208
- 'declaration-block-trailing-semicolon': null,
209
159
  'declaration-colon-newline-after': null,
210
- 'declaration-colon-space-after': null,
211
- 'declaration-colon-space-before': null,
212
- 'function-comma-newline-after': null,
213
- 'function-comma-newline-before': null,
214
- 'function-comma-space-after': null,
215
- 'function-comma-space-before': null,
216
- 'function-max-empty-lines': null,
217
- 'function-parentheses-newline-inside': null,
218
- 'function-parentheses-space-inside': null,
219
- 'max-empty-lines': null,
220
- 'max-line-length': null,
221
- 'media-feature-colon-space-after': null,
222
- 'media-feature-colon-space-before': null,
223
- 'media-feature-name-case': null,
224
- 'media-feature-parentheses-space-inside': null,
225
- 'media-query-list-comma-newline-after': null,
226
- 'media-query-list-comma-newline-before': null,
227
- 'media-query-list-comma-space-after': null,
228
- 'media-query-list-comma-space-before': null,
229
- 'no-empty-first-line': null,
230
- 'no-eol-whitespace': null,
231
- 'no-extra-semicolons': null,
232
- 'no-missing-end-of-source-newline': null,
233
- 'number-leading-zero': null,
234
- 'number-no-trailing-zeros': null,
235
- 'property-case': null,
236
- 'selector-attribute-brackets-space-inside': null,
237
- 'selector-attribute-operator-space-after': null,
238
- 'selector-attribute-operator-space-before': null,
239
- 'selector-attribute-quotes': null,
240
- 'selector-combinator-space-after': null,
241
- 'selector-combinator-space-before': null,
242
- 'selector-descendant-combinator-no-non-space': null,
243
- 'selector-list-comma-newline-after': null,
244
- 'selector-list-comma-newline-before': null,
245
- 'selector-list-comma-space-after': null,
246
- 'selector-list-comma-space-before': null,
247
- 'selector-max-empty-lines': null,
248
- 'selector-pseudo-class-case': null,
249
- 'selector-pseudo-class-parentheses-space-inside': null,
250
- 'selector-pseudo-element-case': null,
251
- 'string-quotes': null,
252
- 'unicode-bom': null,
253
- 'unit-case': null,
254
160
  'value-list-comma-newline-after': null,
255
- 'value-list-comma-newline-before': null,
256
- 'value-list-comma-space-after': null,
257
- 'value-list-comma-space-before': null,
258
- 'value-list-max-empty-lines': null, */
161
+ 'selector-descendant-combinator-no-non-space': null,
162
+ 'selector-combinator-space-before': null
163
+ */
259
164
 
260
165
  'prettier/prettier': [
261
166
  true,
262
167
  {
263
- preserve: true
168
+ quoteProps: 'preserve',
169
+ printWidth: 120
264
170
  }
265
171
  ],
266
172
 
173
+ 'color-format/format': {
174
+ format: 'rgb'
175
+ },
176
+
177
+ 'plugin/stylelint-selector-no-empty': true,
178
+
267
179
  'order/order': [
268
180
  [
269
181
  'dollar-variables',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-config-ccb",
3
- "version": "1.8.1",
3
+ "version": "1.8.4",
4
4
  "description": "Stylelint config which extends stylelint-config-standard",
5
5
  "keywords": [
6
6
  "stylelint",