stylelint-config-ccb 1.7.0 → 1.8.2

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 +103 -14
  2. package/package.json +3 -1
package/index.js CHANGED
@@ -5,7 +5,8 @@ module.exports = {
5
5
  plugins: [
6
6
  'stylelint-order',
7
7
  'stylelint-selector-no-empty',
8
- 'stylelint-color-format'
8
+ 'stylelint-color-format',
9
+ 'stylelint-prettier'
9
10
  ],
10
11
  rules: {
11
12
  'color-format/format': {
@@ -86,8 +87,6 @@ module.exports = {
86
87
  'custom-property-pattern': '[a-z-]{4,40}',
87
88
  'selector-class-pattern': '[a-z-_]{3,40}',
88
89
  'selector-id-pattern': '[a-z-_]{2,40}',
89
- linebreaks: 'unix',
90
- 'no-empty-first-line': true,
91
90
  'declaration-no-important': true,
92
91
  'number-max-precision': 5,
93
92
  'property-disallowed-list': [
@@ -95,7 +94,6 @@ module.exports = {
95
94
  'font-smoothing', 'osx-font-smoothing', 'font-smooth',
96
95
  'float'
97
96
  ],
98
- 'unicode-bom': 'never',
99
97
  'time-min-milliseconds': 75,
100
98
  'selector-no-qualifying-type': true,
101
99
  'selector-max-attribute': 1,
@@ -142,18 +140,8 @@ module.exports = {
142
140
  ignore: ['custom-elements']
143
141
  }
144
142
  ],
145
- 'selector-attribute-quotes': 'always',
146
- 'string-quotes': 'double',
147
143
  'max-nesting-depth': 2,
148
144
  'color-named': 'never',
149
- 'at-rule-semicolon-space-before': 'never',
150
- 'block-opening-brace-newline-before': 'never-single-line',
151
- 'declaration-block-semicolon-newline-before': 'never-multi-line',
152
- 'function-comma-newline-before': 'never-multi-line',
153
- 'media-query-list-comma-newline-before': 'never-multi-line',
154
- 'selector-list-comma-newline-before': 'never-multi-line',
155
- 'selector-list-comma-space-after': 'always-single-line',
156
- 'value-list-comma-newline-before': 'never-multi-line',
157
145
  'value-keyword-case': [
158
146
  'lower',
159
147
  {
@@ -178,6 +166,107 @@ module.exports = {
178
166
  'value-no-vendor-prefix': true,
179
167
  'font-family-name-quotes': 'always-where-recommended',
180
168
 
169
+ /* enforced by prettier
170
+ linebreaks: 'unix',
171
+ 'no-empty-first-line': true,
172
+ 'unicode-bom': 'never',
173
+ 'selector-attribute-quotes': 'always',
174
+ 'string-quotes': 'double',
175
+ 'at-rule-semicolon-space-before': 'never',
176
+ 'block-opening-brace-newline-before': 'never-single-line',
177
+ 'declaration-block-semicolon-newline-before': 'never-multi-line',
178
+ 'function-comma-newline-before': 'never-multi-line',
179
+ 'media-query-list-comma-newline-before': 'never-multi-line',
180
+ 'selector-list-comma-newline-before': 'never-multi-line',
181
+ 'selector-list-comma-space-after': 'always-single-line',
182
+ 'value-list-comma-newline-before': 'never-multi-line',
183
+ */
184
+
185
+ /* disabled due to prettier */
186
+ indentation: null,
187
+ linebreaks: null,
188
+
189
+ 'at-rule-empty-line-before': null,
190
+ 'at-rule-name-case': null,
191
+ 'at-rule-name-newline-after': null,
192
+ 'at-rule-name-space-after': null,
193
+ 'at-rule-semicolon-newline-after': null,
194
+ 'at-rule-semicolon-space-before': null,
195
+ 'block-closing-brace-empty-line-before': null,
196
+ 'block-closing-brace-newline-after': null,
197
+ 'block-closing-brace-newline-before': null,
198
+ 'block-closing-brace-space-after': null,
199
+ 'block-closing-brace-space-before': null,
200
+ 'block-opening-brace-newline-after': null,
201
+ 'block-opening-brace-newline-before': null,
202
+ 'block-opening-brace-space-after': null,
203
+ 'block-opening-brace-space-before': null,
204
+ 'color-hex-case': null,
205
+ 'declaration-bang-space-after': null,
206
+ 'declaration-bang-space-before': null,
207
+ 'declaration-block-semicolon-newline-after': null,
208
+ 'declaration-block-semicolon-newline-before': null,
209
+ 'declaration-block-semicolon-space-after': null,
210
+ 'declaration-block-semicolon-space-before': null,
211
+ 'declaration-block-trailing-semicolon': null,
212
+ 'declaration-colon-newline-after': null,
213
+ 'declaration-colon-space-after': null,
214
+ 'declaration-colon-space-before': null,
215
+ 'function-comma-newline-after': null,
216
+ 'function-comma-newline-before': null,
217
+ 'function-comma-space-after': null,
218
+ 'function-comma-space-before': null,
219
+ 'function-max-empty-lines': null,
220
+ 'function-parentheses-newline-inside': null,
221
+ 'function-parentheses-space-inside': null,
222
+ 'max-empty-lines': null,
223
+ 'max-line-length': null,
224
+ 'media-feature-colon-space-after': null,
225
+ 'media-feature-colon-space-before': null,
226
+ 'media-feature-name-case': null,
227
+ 'media-feature-parentheses-space-inside': null,
228
+ 'media-query-list-comma-newline-after': null,
229
+ 'media-query-list-comma-newline-before': null,
230
+ 'media-query-list-comma-space-after': null,
231
+ 'media-query-list-comma-space-before': null,
232
+ 'no-empty-first-line': null,
233
+ 'no-eol-whitespace': null,
234
+ 'no-extra-semicolons': null,
235
+ 'no-missing-end-of-source-newline': null,
236
+ 'number-leading-zero': null,
237
+ 'number-no-trailing-zeros': null,
238
+ 'property-case': null,
239
+ 'selector-attribute-brackets-space-inside': null,
240
+ 'selector-attribute-operator-space-after': null,
241
+ 'selector-attribute-operator-space-before': null,
242
+ 'selector-attribute-quotes': null,
243
+ 'selector-combinator-space-after': null,
244
+ 'selector-combinator-space-before': null,
245
+ 'selector-descendant-combinator-no-non-space': null,
246
+ 'selector-list-comma-newline-after': null,
247
+ 'selector-list-comma-newline-before': null,
248
+ 'selector-list-comma-space-after': null,
249
+ 'selector-list-comma-space-before': null,
250
+ 'selector-max-empty-lines': null,
251
+ 'selector-pseudo-class-case': null,
252
+ 'selector-pseudo-class-parentheses-space-inside': null,
253
+ 'selector-pseudo-element-case': null,
254
+ 'string-quotes': null,
255
+ 'unicode-bom': null,
256
+ 'unit-case': null,
257
+ 'value-list-comma-newline-after': null,
258
+ 'value-list-comma-newline-before': null,
259
+ 'value-list-comma-space-after': null,
260
+ 'value-list-comma-space-before': null,
261
+ 'value-list-max-empty-lines': null,
262
+
263
+ 'prettier/prettier': [
264
+ true,
265
+ {
266
+ preserve: true
267
+ }
268
+ ],
269
+
181
270
  'order/order': [
182
271
  [
183
272
  'dollar-variables',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-config-ccb",
3
- "version": "1.7.0",
3
+ "version": "1.8.2",
4
4
  "description": "Stylelint config which extends stylelint-config-standard",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -17,9 +17,11 @@
17
17
  "index.js"
18
18
  ],
19
19
  "dependencies": {
20
+ "prettier": "^2.6.0",
20
21
  "stylelint-color-format": "^1.1.0",
21
22
  "stylelint-config-standard": "^25.0.0",
22
23
  "stylelint-order": "^5.0.0",
24
+ "stylelint-prettier": "^2.0.0",
23
25
  "stylelint-selector-no-empty": "^1.0.8"
24
26
  },
25
27
  "devDependencies": {