@massimo-cassandro/stylelint-config 1.1.0
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.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/index.js +430 -0
- package/package.json +38 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Massimo Cassandro
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
/* eslint-env node */
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
extends: [
|
|
5
|
+
'stylelint-config-twbs-bootstrap/'
|
|
6
|
+
// 'stylelint-config-standard' // in twbs
|
|
7
|
+
],
|
|
8
|
+
plugins: [
|
|
9
|
+
// 'stylelint-order',
|
|
10
|
+
'@stylistic/stylelint-plugin'
|
|
11
|
+
],
|
|
12
|
+
'ignoreFiles': [
|
|
13
|
+
'**/node_modules/**/*.*',
|
|
14
|
+
'**/vendor/**/*.*',
|
|
15
|
+
'**/build/**/*.*',
|
|
16
|
+
'**/dist/**/*.*'
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
'rules': {
|
|
20
|
+
'alpha-value-notation': null,
|
|
21
|
+
'at-rule-no-vendor-prefix': true,
|
|
22
|
+
'at-rule-no-unknown': [
|
|
23
|
+
true,
|
|
24
|
+
{
|
|
25
|
+
ignoreAtRules: [
|
|
26
|
+
// tailwind
|
|
27
|
+
'tailwind',
|
|
28
|
+
'apply',
|
|
29
|
+
'layer',
|
|
30
|
+
'variants',
|
|
31
|
+
'responsive',
|
|
32
|
+
'screen',
|
|
33
|
+
'config',
|
|
34
|
+
|
|
35
|
+
// sass
|
|
36
|
+
'extend',
|
|
37
|
+
'include',
|
|
38
|
+
'if',
|
|
39
|
+
'else',
|
|
40
|
+
'mixin',
|
|
41
|
+
'function',
|
|
42
|
+
'at-root',
|
|
43
|
+
'use',
|
|
44
|
+
'forward',
|
|
45
|
+
'each',
|
|
46
|
+
'while',
|
|
47
|
+
'for',
|
|
48
|
+
'error',
|
|
49
|
+
'warn',
|
|
50
|
+
'debug',
|
|
51
|
+
'return'
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
|
|
56
|
+
// 'color-function-notation': 'legacy',
|
|
57
|
+
// 'comment-empty-line-before': [
|
|
58
|
+
// 'always',
|
|
59
|
+
// {
|
|
60
|
+
// // except: ['first-nested'],
|
|
61
|
+
// ignore: ['after-comment', 'stylelint-commands']
|
|
62
|
+
// }
|
|
63
|
+
// ],
|
|
64
|
+
'comment-empty-line-before': null,
|
|
65
|
+
'font-family-name-quotes': 'always-where-recommended',
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
'function-url-no-scheme-relative': true,
|
|
69
|
+
'function-url-quotes': 'always',
|
|
70
|
+
|
|
71
|
+
'max-nesting-depth': [
|
|
72
|
+
3,
|
|
73
|
+
{
|
|
74
|
+
ignore: ['pseudo-classes', 'blockless-at-rules'],
|
|
75
|
+
ignoreAtRules: [/media/, /include/],
|
|
76
|
+
ignorePseudoClasses: ['before', 'after']
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
// 'media-feature-name-no-vendor-prefix': true,
|
|
80
|
+
|
|
81
|
+
'property-no-vendor-prefix': true,
|
|
82
|
+
'selector-attribute-quotes': 'always',
|
|
83
|
+
'selector-class-pattern': [
|
|
84
|
+
'^[a-z][a-z0-9\\-]*[a-z0-9]$',
|
|
85
|
+
{
|
|
86
|
+
resolveNestedSelectors: true
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
'selector-max-type': [
|
|
90
|
+
3,
|
|
91
|
+
{
|
|
92
|
+
ignore: ['child', 'compounded', 'descendant', 'next-sibling']
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
|
|
96
|
+
'selector-no-qualifying-type': [
|
|
97
|
+
null,
|
|
98
|
+
{
|
|
99
|
+
ignore: ['attribute', 'class', 'id']
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
'selector-no-vendor-prefix': true,
|
|
103
|
+
'shorthand-property-no-redundant-values': true,
|
|
104
|
+
|
|
105
|
+
// 'shorthand-property-no-redundant-values': [
|
|
106
|
+
// true,
|
|
107
|
+
// {
|
|
108
|
+
// ignoreShorthands: [ /^grid-/ ]
|
|
109
|
+
// }
|
|
110
|
+
// ],
|
|
111
|
+
|
|
112
|
+
// =>> stylistic
|
|
113
|
+
// https://github.com/elirasza/stylelint-stylistic
|
|
114
|
+
'@stylistic/function-max-empty-lines': 2,
|
|
115
|
+
'@stylistic/function-parentheses-space-inside': 'never-single-line',
|
|
116
|
+
'@stylistic/no-empty-first-line': null,
|
|
117
|
+
'@stylistic/no-missing-end-of-source-newline': null,
|
|
118
|
+
'@stylistic/max-empty-lines': [3, {ignore: ['comments']}],
|
|
119
|
+
'@stylistic/number-leading-zero': null, //'never',
|
|
120
|
+
'@stylistic/string-quotes': 'single',
|
|
121
|
+
'@stylistic/selector-list-comma-space-after': null,
|
|
122
|
+
'@stylistic/selector-list-comma-space-before': 'never',
|
|
123
|
+
'@stylistic/selector-list-comma-newline-after': 'always-multi-line',
|
|
124
|
+
'@stylistic/value-list-comma-space-after': 'always-single-line',
|
|
125
|
+
'@stylistic/value-list-comma-newline-after': 'always-multi-line', //'never-multi-line',
|
|
126
|
+
'@stylistic/value-list-max-empty-lines': 3,
|
|
127
|
+
|
|
128
|
+
'value-keyword-case': [
|
|
129
|
+
'lower',
|
|
130
|
+
{
|
|
131
|
+
ignoreKeywords: ['currentColor']
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
|
|
135
|
+
'value-no-vendor-prefix': true
|
|
136
|
+
|
|
137
|
+
// 'order/properties-order': [
|
|
138
|
+
// 'position',
|
|
139
|
+
// 'top',
|
|
140
|
+
// 'right',
|
|
141
|
+
// 'bottom',
|
|
142
|
+
// 'left',
|
|
143
|
+
// 'z-index',
|
|
144
|
+
// 'box-sizing',
|
|
145
|
+
// 'display',
|
|
146
|
+
// 'flex',
|
|
147
|
+
// 'flex-align',
|
|
148
|
+
// 'flex-basis',
|
|
149
|
+
// 'flex-direction',
|
|
150
|
+
// 'flex-wrap',
|
|
151
|
+
// 'flex-flow',
|
|
152
|
+
// 'flex-shrink',
|
|
153
|
+
// 'flex-grow',
|
|
154
|
+
// 'flex-order',
|
|
155
|
+
// 'flex-pack',
|
|
156
|
+
// 'align-content',
|
|
157
|
+
// 'align-items',
|
|
158
|
+
// 'align-self',
|
|
159
|
+
// 'justify-content',
|
|
160
|
+
// 'order',
|
|
161
|
+
// 'float',
|
|
162
|
+
// 'width',
|
|
163
|
+
// 'min-width',
|
|
164
|
+
// 'max-width',
|
|
165
|
+
// 'height',
|
|
166
|
+
// 'min-height',
|
|
167
|
+
// 'max-height',
|
|
168
|
+
// 'padding',
|
|
169
|
+
// 'padding-top',
|
|
170
|
+
// 'padding-right',
|
|
171
|
+
// 'padding-bottom',
|
|
172
|
+
// 'padding-left',
|
|
173
|
+
// 'margin',
|
|
174
|
+
// 'margin-top',
|
|
175
|
+
// 'margin-right',
|
|
176
|
+
// 'margin-bottom',
|
|
177
|
+
// 'margin-left',
|
|
178
|
+
// 'overflow',
|
|
179
|
+
// 'overflow-x',
|
|
180
|
+
// 'overflow-y',
|
|
181
|
+
// '-webkit-overflow-scrolling',
|
|
182
|
+
// '-ms-overflow-x',
|
|
183
|
+
// '-ms-overflow-y',
|
|
184
|
+
// '-ms-overflow-style',
|
|
185
|
+
// 'columns',
|
|
186
|
+
// 'column-count',
|
|
187
|
+
// 'column-fill',
|
|
188
|
+
// 'column-gap',
|
|
189
|
+
// 'column-rule',
|
|
190
|
+
// 'column-rule-width',
|
|
191
|
+
// 'column-rule-style',
|
|
192
|
+
// 'column-rule-color',
|
|
193
|
+
// 'column-span',
|
|
194
|
+
// 'column-width',
|
|
195
|
+
// 'orphans',
|
|
196
|
+
// 'widows',
|
|
197
|
+
// 'clip',
|
|
198
|
+
// 'clear',
|
|
199
|
+
// 'font',
|
|
200
|
+
// 'font-family',
|
|
201
|
+
// 'font-size',
|
|
202
|
+
// 'font-style',
|
|
203
|
+
// 'font-weight',
|
|
204
|
+
// 'font-variant',
|
|
205
|
+
// 'font-size-adjust',
|
|
206
|
+
// 'font-stretch',
|
|
207
|
+
// 'font-effect',
|
|
208
|
+
// 'font-emphasize',
|
|
209
|
+
// 'font-emphasize-position',
|
|
210
|
+
// 'font-emphasize-style',
|
|
211
|
+
// 'font-smooth',
|
|
212
|
+
// 'src',
|
|
213
|
+
// 'hyphens',
|
|
214
|
+
// 'line-height',
|
|
215
|
+
// 'color',
|
|
216
|
+
// 'text-align',
|
|
217
|
+
// 'text-align-last',
|
|
218
|
+
// 'text-emphasis',
|
|
219
|
+
// 'text-emphasis-color',
|
|
220
|
+
// 'text-emphasis-style',
|
|
221
|
+
// 'text-emphasis-position',
|
|
222
|
+
// 'text-decoration',
|
|
223
|
+
// 'text-indent',
|
|
224
|
+
// 'text-justify',
|
|
225
|
+
// 'text-outline',
|
|
226
|
+
// '-ms-text-overflow',
|
|
227
|
+
// 'text-overflow',
|
|
228
|
+
// 'text-overflow-ellipsis',
|
|
229
|
+
// 'text-overflow-mode',
|
|
230
|
+
// 'text-shadow',
|
|
231
|
+
// 'text-transform',
|
|
232
|
+
// 'text-wrap',
|
|
233
|
+
// '-webkit-text-size-adjust',
|
|
234
|
+
// '-ms-text-size-adjust',
|
|
235
|
+
// 'letter-spacing',
|
|
236
|
+
// '-ms-word-break',
|
|
237
|
+
// 'word-break',
|
|
238
|
+
// 'word-spacing',
|
|
239
|
+
// '-ms-word-wrap',
|
|
240
|
+
// 'word-wrap',
|
|
241
|
+
// 'overflow-wrap',
|
|
242
|
+
// 'tab-size',
|
|
243
|
+
// 'white-space',
|
|
244
|
+
// 'vertical-align',
|
|
245
|
+
// 'direction',
|
|
246
|
+
// 'unicode-bidi',
|
|
247
|
+
// 'list-style',
|
|
248
|
+
// 'list-style-position',
|
|
249
|
+
// 'list-style-type',
|
|
250
|
+
// 'list-style-image',
|
|
251
|
+
// 'pointer-events',
|
|
252
|
+
// '-ms-touch-action',
|
|
253
|
+
// 'touch-action',
|
|
254
|
+
// 'cursor',
|
|
255
|
+
// 'visibility',
|
|
256
|
+
// 'zoom',
|
|
257
|
+
// 'table-layout',
|
|
258
|
+
// 'empty-cells',
|
|
259
|
+
// 'caption-side',
|
|
260
|
+
// 'border-spacing',
|
|
261
|
+
// 'border-collapse',
|
|
262
|
+
// 'content',
|
|
263
|
+
// 'quotes',
|
|
264
|
+
// 'counter-reset',
|
|
265
|
+
// 'counter-increment',
|
|
266
|
+
// 'resize',
|
|
267
|
+
// 'user-select',
|
|
268
|
+
// 'nav-index',
|
|
269
|
+
// 'nav-up',
|
|
270
|
+
// 'nav-right',
|
|
271
|
+
// 'nav-down',
|
|
272
|
+
// 'nav-left',
|
|
273
|
+
// 'background',
|
|
274
|
+
// 'background-color',
|
|
275
|
+
// 'background-image',
|
|
276
|
+
// 'filter',
|
|
277
|
+
// 'background-repeat',
|
|
278
|
+
// 'background-attachment',
|
|
279
|
+
// 'background-position',
|
|
280
|
+
// 'background-position-x',
|
|
281
|
+
// 'background-position-y',
|
|
282
|
+
// 'background-clip',
|
|
283
|
+
// 'background-origin',
|
|
284
|
+
// 'background-size',
|
|
285
|
+
// 'border',
|
|
286
|
+
// 'border-color',
|
|
287
|
+
// 'border-style',
|
|
288
|
+
// 'border-width',
|
|
289
|
+
// 'border-top',
|
|
290
|
+
// 'border-top-color',
|
|
291
|
+
// 'border-top-style',
|
|
292
|
+
// 'border-top-width',
|
|
293
|
+
// 'border-right',
|
|
294
|
+
// 'border-right-color',
|
|
295
|
+
// 'border-right-style',
|
|
296
|
+
// 'border-right-width',
|
|
297
|
+
// 'border-bottom',
|
|
298
|
+
// 'border-bottom-color',
|
|
299
|
+
// 'border-bottom-style',
|
|
300
|
+
// 'border-bottom-width',
|
|
301
|
+
// 'border-left',
|
|
302
|
+
// 'border-left-color',
|
|
303
|
+
// 'border-left-style',
|
|
304
|
+
// 'border-left-width',
|
|
305
|
+
// 'border-radius',
|
|
306
|
+
// 'border-top-left-radius',
|
|
307
|
+
// 'border-top-right-radius',
|
|
308
|
+
// 'border-bottom-right-radius',
|
|
309
|
+
// 'border-bottom-left-radius',
|
|
310
|
+
// 'border-image',
|
|
311
|
+
// 'border-image-source',
|
|
312
|
+
// 'border-image-slice',
|
|
313
|
+
// 'border-image-width',
|
|
314
|
+
// 'border-image-outset',
|
|
315
|
+
// 'border-image-repeat',
|
|
316
|
+
// 'outline',
|
|
317
|
+
// 'outline-width',
|
|
318
|
+
// 'outline-style',
|
|
319
|
+
// 'outline-color',
|
|
320
|
+
// 'outline-offset',
|
|
321
|
+
// 'box-shadow',
|
|
322
|
+
// 'opacity',
|
|
323
|
+
// '-ms-interpolation-mode',
|
|
324
|
+
// 'page-break-after',
|
|
325
|
+
// 'page-break-before',
|
|
326
|
+
// 'page-break-inside',
|
|
327
|
+
// 'transition',
|
|
328
|
+
// 'transition-delay',
|
|
329
|
+
// 'transition-timing-function',
|
|
330
|
+
// 'transition-duration',
|
|
331
|
+
// 'transition-property',
|
|
332
|
+
// 'transform',
|
|
333
|
+
// 'transform-origin',
|
|
334
|
+
// 'perspective',
|
|
335
|
+
// 'appearance',
|
|
336
|
+
// 'animation',
|
|
337
|
+
// 'animation-name',
|
|
338
|
+
// 'animation-duration',
|
|
339
|
+
// 'animation-play-state',
|
|
340
|
+
// 'animation-timing-function',
|
|
341
|
+
// 'animation-delay',
|
|
342
|
+
// 'animation-iteration-count',
|
|
343
|
+
// 'animation-direction',
|
|
344
|
+
// 'animation-fill-mode',
|
|
345
|
+
// 'fill',
|
|
346
|
+
// 'stroke'
|
|
347
|
+
// ]
|
|
348
|
+
},
|
|
349
|
+
'overrides': [
|
|
350
|
+
{
|
|
351
|
+
'files': ['**/*.scss', '**/*module.scss'],
|
|
352
|
+
// 'extends': ['stylelint-config-twbs-bootstrap/'],
|
|
353
|
+
'rules': {
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
'scss/at-function-pattern': '^[a-z][a-z-]*$',
|
|
357
|
+
'scss/at-function-parentheses-space-before': 'never',
|
|
358
|
+
'scss/at-import-no-partial-leading-underscore': null, //true,
|
|
359
|
+
'scss/at-import-partial-extension': 'never',
|
|
360
|
+
'scss/at-mixin-named-arguments': null,
|
|
361
|
+
'scss/at-mixin-parentheses-space-before': 'never',
|
|
362
|
+
// 'scss/at-rule-no-unknown': true,
|
|
363
|
+
'scss/at-rule-no-unknown': [
|
|
364
|
+
true,
|
|
365
|
+
{
|
|
366
|
+
ignoreAtRules: [
|
|
367
|
+
|
|
368
|
+
// tailwind
|
|
369
|
+
'tailwind',
|
|
370
|
+
'apply',
|
|
371
|
+
'layer',
|
|
372
|
+
'variants',
|
|
373
|
+
'responsive',
|
|
374
|
+
'screen',
|
|
375
|
+
'config',
|
|
376
|
+
|
|
377
|
+
// sass
|
|
378
|
+
'extend',
|
|
379
|
+
'include',
|
|
380
|
+
'if',
|
|
381
|
+
'else',
|
|
382
|
+
'mixin',
|
|
383
|
+
'function',
|
|
384
|
+
'at-root',
|
|
385
|
+
'use',
|
|
386
|
+
'forward',
|
|
387
|
+
'each',
|
|
388
|
+
'while',
|
|
389
|
+
'for',
|
|
390
|
+
'error',
|
|
391
|
+
'warn',
|
|
392
|
+
'debug',
|
|
393
|
+
'return'
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
'scss/dollar-variable-colon-space-before': 'never',
|
|
398
|
+
'scss/dollar-variable-no-missing-interpolation': true,
|
|
399
|
+
'scss/dollar-variable-pattern': '^[a-z][a-z-\\d]*$',
|
|
400
|
+
'scss/no-duplicate-dollar-variables': [
|
|
401
|
+
null,
|
|
402
|
+
{
|
|
403
|
+
'ignoreInsideAtRules': [
|
|
404
|
+
'extend',
|
|
405
|
+
'if',
|
|
406
|
+
'mixin'
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
'scss/no-duplicate-mixins': true,
|
|
411
|
+
'scss/operator-no-newline-after': true,
|
|
412
|
+
'scss/operator-no-newline-before': true,
|
|
413
|
+
'scss/operator-no-unspaced': true,
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
'files': ['**/*module.scss', '**/*module.css'],
|
|
418
|
+
'extends': [/* 'stylelint-config-twbs-bootstrap/', */ 'stylelint-config-css-modules'],
|
|
419
|
+
'rules': {
|
|
420
|
+
'selector-class-pattern': [
|
|
421
|
+
'^[a-z]+(_?[A-Z]?[a-z0-9]*)*$',
|
|
422
|
+
// '(?<=:global[ \(])^[a-z][a-z0-9\\-]*[a-z0-9]$\)?'
|
|
423
|
+
{
|
|
424
|
+
resolveNestedSelectors: true
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
]
|
|
430
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@massimo-cassandro/stylelint-config",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "my stylelint config",
|
|
5
|
+
"author": "Massimo Cassandro",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"npm-publish": "npm publish"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/massimo-cassandro/stylelint-config.git#main"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/massimo-cassandro/stylelint-config/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/massimo-cassandro/stylelint-config/tree/main#readme",
|
|
22
|
+
"keywords": [
|
|
23
|
+
"stylelint"
|
|
24
|
+
],
|
|
25
|
+
"files": [
|
|
26
|
+
"index.js"
|
|
27
|
+
],
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@stylistic/stylelint-plugin": "^2.1.0",
|
|
30
|
+
"stylelint": "^16.2.1",
|
|
31
|
+
"stylelint-config-css-modules": "^4.4.0",
|
|
32
|
+
"stylelint-config-recommended": "^14.0.0",
|
|
33
|
+
"stylelint-config-recommended-scss": "^14.0.0",
|
|
34
|
+
"stylelint-config-standard": "^36.0.0",
|
|
35
|
+
"stylelint-config-twbs-bootstrap": "^14.0.0",
|
|
36
|
+
"stylelint-order": "^6.0.4"
|
|
37
|
+
}
|
|
38
|
+
}
|