stylelint-config-ccb 1.8.0 → 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 +60 -80
  2. package/package.json +2 -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,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,15 @@ 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
+ /* stylelint-config-ccb - prettier overlap, no conflict */
145
+ linebreaks: 'unix',
146
+ 'unicode-bom': 'never',
147
+
148
+ /* stylelint-config-ccb - prettier overlap, check todo */
150
149
  'at-rule-semicolon-space-before': 'never',
151
150
  'block-opening-brace-newline-before': 'never-single-line',
152
151
  'declaration-block-semicolon-newline-before': 'never-multi-line',
@@ -155,54 +154,37 @@ module.exports = {
155
154
  'selector-list-comma-newline-before': 'never-multi-line',
156
155
  'selector-list-comma-space-after': 'always-single-line',
157
156
  '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
157
+
158
+ /* rules not included - prettier overlap, check todo
159
+ 'at-rule-name-newline-after': null,
160
+ 'block-closing-brace-space-after': null,
161
+ */
162
+
163
+ /* prettier rules in standard or recommended, no conflict
183
164
  indentation: null,
184
- 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
+ */
185
172
 
173
+ /* prettier rules in standard or recommended, check todo
186
174
  'at-rule-empty-line-before': null,
187
175
  'at-rule-name-case': null,
188
- 'at-rule-name-newline-after': null,
189
176
  'at-rule-name-space-after': null,
190
177
  'at-rule-semicolon-newline-after': null,
191
- 'at-rule-semicolon-space-before': null,
192
178
  'block-closing-brace-empty-line-before': null,
193
179
  'block-closing-brace-newline-after': null,
194
180
  'block-closing-brace-newline-before': null,
195
- 'block-closing-brace-space-after': null,
196
181
  'block-closing-brace-space-before': null,
197
182
  'block-opening-brace-newline-after': null,
198
- 'block-opening-brace-newline-before': null,
199
183
  'block-opening-brace-space-after': null,
200
184
  'block-opening-brace-space-before': null,
201
- 'color-hex-case': null,
202
185
  'declaration-bang-space-after': null,
203
186
  'declaration-bang-space-before': null,
204
187
  'declaration-block-semicolon-newline-after': null,
205
- 'declaration-block-semicolon-newline-before': null,
206
188
  'declaration-block-semicolon-space-after': null,
207
189
  'declaration-block-semicolon-space-before': null,
208
190
  'declaration-block-trailing-semicolon': null,
@@ -210,20 +192,17 @@ module.exports = {
210
192
  'declaration-colon-space-after': null,
211
193
  'declaration-colon-space-before': null,
212
194
  'function-comma-newline-after': null,
213
- 'function-comma-newline-before': null,
214
195
  'function-comma-space-after': null,
215
196
  'function-comma-space-before': null,
216
197
  'function-max-empty-lines': null,
217
198
  'function-parentheses-newline-inside': null,
218
199
  'function-parentheses-space-inside': null,
219
200
  'max-empty-lines': null,
220
- 'max-line-length': null,
221
201
  'media-feature-colon-space-after': null,
222
202
  'media-feature-colon-space-before': null,
223
203
  'media-feature-name-case': null,
224
204
  'media-feature-parentheses-space-inside': null,
225
205
  'media-query-list-comma-newline-after': null,
226
- 'media-query-list-comma-newline-before': null,
227
206
  'media-query-list-comma-space-after': null,
228
207
  'media-query-list-comma-space-before': null,
229
208
  'no-empty-first-line': null,
@@ -241,18 +220,13 @@ module.exports = {
241
220
  'selector-combinator-space-before': null,
242
221
  'selector-descendant-combinator-no-non-space': null,
243
222
  'selector-list-comma-newline-after': null,
244
- 'selector-list-comma-newline-before': null,
245
- 'selector-list-comma-space-after': null,
246
223
  'selector-list-comma-space-before': null,
247
224
  'selector-max-empty-lines': null,
248
225
  'selector-pseudo-class-case': null,
249
226
  'selector-pseudo-class-parentheses-space-inside': null,
250
227
  'selector-pseudo-element-case': null,
251
- 'string-quotes': null,
252
- 'unicode-bom': null,
253
228
  'unit-case': null,
254
229
  'value-list-comma-newline-after': null,
255
- 'value-list-comma-newline-before': null,
256
230
  'value-list-comma-space-after': null,
257
231
  'value-list-comma-space-before': null,
258
232
  'value-list-max-empty-lines': null, */
@@ -264,6 +238,12 @@ module.exports = {
264
238
  }
265
239
  ],
266
240
 
241
+ 'color-format/format': {
242
+ format: 'rgb'
243
+ },
244
+
245
+ 'plugin/stylelint-selector-no-empty': true,
246
+
267
247
  'order/order': [
268
248
  [
269
249
  'dollar-variables',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-config-ccb",
3
- "version": "1.8.0",
3
+ "version": "1.8.3",
4
4
  "description": "Stylelint config which extends stylelint-config-standard",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -17,6 +17,7 @@
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",