stylelint-config-ccb 1.8.2 → 1.8.3

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 +56 -79
  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-ccb - overwrite on top of stylelint-config-standard */
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,13 +107,7 @@ 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
110
  'declaration-no-important': true,
91
- 'number-max-precision': 5,
92
111
  'property-disallowed-list': [
93
112
  '-webkit-font-smoothing', '-moz-osx-font-smoothing',
94
113
  'font-smoothing', 'osx-font-smoothing', 'font-smooth',
@@ -109,14 +128,6 @@ module.exports = {
109
128
  's'
110
129
  ],
111
130
 
112
- 'declaration-block-no-shorthand-property-overrides': true,
113
- 'no-irregular-whitespace': true,
114
- 'no-invalid-position-at-import-rule': true,
115
- 'named-grid-areas-no-invalid': true,
116
- 'declaration-block-no-duplicate-custom-properties': true,
117
- 'color-function-notation': 'modern',
118
- 'alpha-value-notation': 'number',
119
- 'hue-degree-notation': 'number',
120
131
  'font-weight-notation': [
121
132
  'numeric',
122
133
  {
@@ -126,52 +137,15 @@ module.exports = {
126
137
  }
127
138
  ],
128
139
  'function-url-no-scheme-relative': true,
129
- 'function-url-quotes': [
130
- 'always',
131
- {
132
- except: [
133
- 'empty'
134
- ]
135
- }
136
- ],
137
- 'selector-type-no-unknown': [
138
- true,
139
- {
140
- ignore: ['custom-elements']
141
- }
142
- ],
143
140
  'max-nesting-depth': 2,
144
141
  'color-named': 'never',
145
- 'value-keyword-case': [
146
- 'lower',
147
- {
148
- ignoreProperties: 'unicode-range',
149
- camelCaseSvgKeywords: true
150
- }
151
- ],
152
- 'unit-no-unknown': [
153
- true,
154
- {
155
- ignoreUnits: [
156
- 'x'
157
- ]
158
- }
159
- ],
160
- 'shorthand-property-no-redundant-values': true,
161
142
  'no-unknown-animations': true,
162
- 'at-rule-no-vendor-prefix': true,
163
- 'media-feature-name-no-vendor-prefix': true,
164
- 'property-no-vendor-prefix': true,
165
- 'selector-no-vendor-prefix': true,
166
- 'value-no-vendor-prefix': true,
167
- 'font-family-name-quotes': 'always-where-recommended',
168
-
169
- /* enforced by prettier
143
+
144
+ /* stylelint-config-ccb - prettier overlap, no conflict */
170
145
  linebreaks: 'unix',
171
- 'no-empty-first-line': true,
172
146
  'unicode-bom': 'never',
173
- 'selector-attribute-quotes': 'always',
174
- 'string-quotes': 'double',
147
+
148
+ /* stylelint-config-ccb - prettier overlap, check todo */
175
149
  'at-rule-semicolon-space-before': 'never',
176
150
  'block-opening-brace-newline-before': 'never-single-line',
177
151
  'declaration-block-semicolon-newline-before': 'never-multi-line',
@@ -180,32 +154,37 @@ module.exports = {
180
154
  'selector-list-comma-newline-before': 'never-multi-line',
181
155
  'selector-list-comma-space-after': 'always-single-line',
182
156
  'value-list-comma-newline-before': 'never-multi-line',
157
+
158
+ /* rules not included - prettier overlap, check todo
159
+ 'at-rule-name-newline-after': null,
160
+ 'block-closing-brace-space-after': null,
183
161
  */
184
162
 
185
- /* disabled due to prettier */
163
+ /* prettier rules in standard or recommended, no conflict
186
164
  indentation: null,
187
- linebreaks: null,
165
+ 'color-hex-case': null,
166
+ 'string-quotes': null,
167
+ */
168
+
169
+ /* prettier rules in standard or recommended, has conflict
170
+ 'max-line-length': null, // default is 120 max line length, prettier goes for 80
171
+ */
188
172
 
173
+ /* prettier rules in standard or recommended, check todo
189
174
  'at-rule-empty-line-before': null,
190
175
  'at-rule-name-case': null,
191
- 'at-rule-name-newline-after': null,
192
176
  'at-rule-name-space-after': null,
193
177
  'at-rule-semicolon-newline-after': null,
194
- 'at-rule-semicolon-space-before': null,
195
178
  'block-closing-brace-empty-line-before': null,
196
179
  'block-closing-brace-newline-after': null,
197
180
  'block-closing-brace-newline-before': null,
198
- 'block-closing-brace-space-after': null,
199
181
  'block-closing-brace-space-before': null,
200
182
  'block-opening-brace-newline-after': null,
201
- 'block-opening-brace-newline-before': null,
202
183
  'block-opening-brace-space-after': null,
203
184
  'block-opening-brace-space-before': null,
204
- 'color-hex-case': null,
205
185
  'declaration-bang-space-after': null,
206
186
  'declaration-bang-space-before': null,
207
187
  'declaration-block-semicolon-newline-after': null,
208
- 'declaration-block-semicolon-newline-before': null,
209
188
  'declaration-block-semicolon-space-after': null,
210
189
  'declaration-block-semicolon-space-before': null,
211
190
  'declaration-block-trailing-semicolon': null,
@@ -213,20 +192,17 @@ module.exports = {
213
192
  'declaration-colon-space-after': null,
214
193
  'declaration-colon-space-before': null,
215
194
  'function-comma-newline-after': null,
216
- 'function-comma-newline-before': null,
217
195
  'function-comma-space-after': null,
218
196
  'function-comma-space-before': null,
219
197
  'function-max-empty-lines': null,
220
198
  'function-parentheses-newline-inside': null,
221
199
  'function-parentheses-space-inside': null,
222
200
  'max-empty-lines': null,
223
- 'max-line-length': null,
224
201
  'media-feature-colon-space-after': null,
225
202
  'media-feature-colon-space-before': null,
226
203
  'media-feature-name-case': null,
227
204
  'media-feature-parentheses-space-inside': null,
228
205
  'media-query-list-comma-newline-after': null,
229
- 'media-query-list-comma-newline-before': null,
230
206
  'media-query-list-comma-space-after': null,
231
207
  'media-query-list-comma-space-before': null,
232
208
  'no-empty-first-line': null,
@@ -244,21 +220,16 @@ module.exports = {
244
220
  'selector-combinator-space-before': null,
245
221
  'selector-descendant-combinator-no-non-space': null,
246
222
  'selector-list-comma-newline-after': null,
247
- 'selector-list-comma-newline-before': null,
248
- 'selector-list-comma-space-after': null,
249
223
  'selector-list-comma-space-before': null,
250
224
  'selector-max-empty-lines': null,
251
225
  'selector-pseudo-class-case': null,
252
226
  'selector-pseudo-class-parentheses-space-inside': null,
253
227
  'selector-pseudo-element-case': null,
254
- 'string-quotes': null,
255
- 'unicode-bom': null,
256
228
  'unit-case': null,
257
229
  'value-list-comma-newline-after': null,
258
- 'value-list-comma-newline-before': null,
259
230
  'value-list-comma-space-after': null,
260
231
  'value-list-comma-space-before': null,
261
- 'value-list-max-empty-lines': null,
232
+ 'value-list-max-empty-lines': null, */
262
233
 
263
234
  'prettier/prettier': [
264
235
  true,
@@ -267,6 +238,12 @@ module.exports = {
267
238
  }
268
239
  ],
269
240
 
241
+ 'color-format/format': {
242
+ format: 'rgb'
243
+ },
244
+
245
+ 'plugin/stylelint-selector-no-empty': true,
246
+
270
247
  'order/order': [
271
248
  [
272
249
  'dollar-variables',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-config-ccb",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Stylelint config which extends stylelint-config-standard",
5
5
  "keywords": [
6
6
  "stylelint",