@niondigital/stylelint-config 1.2.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/.eslintrc +3 -0
- package/LICENSE +9 -0
- package/README.md +19 -0
- package/config.js +378 -0
- package/package.json +32 -0
package/.eslintrc
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 nion digital GmbH, Germany
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `@niondigital/stylelint-config`
|
|
2
|
+
|
|
3
|
+
This package provides a stylelint config as used by nion digital as a shared config.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install @niondigital/stylelint-config --save-dev
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Set your Stylelint config to:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"extends": "@niondigital/stylelint-config"
|
|
18
|
+
}
|
|
19
|
+
```
|
package/config.js
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
ignoreFiles: '',
|
|
3
|
+
plugins: ['stylelint-scss', 'stylelint-order'],
|
|
4
|
+
rules: {
|
|
5
|
+
'color-hex-case': 'upper',
|
|
6
|
+
'color-no-invalid-hex': true,
|
|
7
|
+
'font-family-name-quotes': 'always-unless-keyword',
|
|
8
|
+
'number-leading-zero': 'always',
|
|
9
|
+
'string-no-newline': true,
|
|
10
|
+
'string-quotes': 'double',
|
|
11
|
+
'length-zero-no-unit': true,
|
|
12
|
+
'unit-case': 'lower',
|
|
13
|
+
'unit-no-unknown': true,
|
|
14
|
+
'value-keyword-case': [
|
|
15
|
+
'lower',
|
|
16
|
+
{
|
|
17
|
+
ignoreKeywords: ['/-?\\$\\w+/']
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
'value-no-vendor-prefix': true,
|
|
21
|
+
'value-list-comma-newline-after': 'always-multi-line',
|
|
22
|
+
'value-list-comma-newline-before': 'never-multi-line',
|
|
23
|
+
'value-list-comma-space-after': 'always-single-line',
|
|
24
|
+
'value-list-comma-space-before': 'never-single-line',
|
|
25
|
+
'value-list-max-empty-lines': 0,
|
|
26
|
+
'property-case': 'lower',
|
|
27
|
+
'property-no-unknown': [
|
|
28
|
+
true,
|
|
29
|
+
{
|
|
30
|
+
checkPrefixed: true
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
'declaration-bang-space-after': 'never',
|
|
34
|
+
'declaration-bang-space-before': 'always',
|
|
35
|
+
'declaration-colon-newline-after': 'always-multi-line',
|
|
36
|
+
'declaration-colon-space-after': 'always-single-line',
|
|
37
|
+
'declaration-colon-space-before': 'never',
|
|
38
|
+
'declaration-block-no-duplicate-properties': [
|
|
39
|
+
true,
|
|
40
|
+
{
|
|
41
|
+
ignore: ['consecutive-duplicates-with-different-values']
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
'declaration-block-no-shorthand-property-overrides': true,
|
|
45
|
+
'declaration-block-semicolon-newline-after': 'always',
|
|
46
|
+
'declaration-block-semicolon-newline-before': 'never-multi-line',
|
|
47
|
+
'declaration-block-semicolon-space-after': 'always-single-line',
|
|
48
|
+
'declaration-block-semicolon-space-before': 'never',
|
|
49
|
+
'declaration-block-trailing-semicolon': 'always',
|
|
50
|
+
'block-closing-brace-empty-line-before': 'never',
|
|
51
|
+
'block-closing-brace-newline-after': [
|
|
52
|
+
'always',
|
|
53
|
+
{
|
|
54
|
+
ignoreAtRules: ['if', 'else']
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
'block-closing-brace-newline-before': 'always',
|
|
58
|
+
'block-closing-brace-space-after': 'always-single-line',
|
|
59
|
+
'block-closing-brace-space-before': 'always-single-line',
|
|
60
|
+
'block-no-empty': true,
|
|
61
|
+
'block-opening-brace-newline-after': 'always',
|
|
62
|
+
'block-opening-brace-newline-before': 'never-single-line',
|
|
63
|
+
'block-opening-brace-space-after': 'always-single-line',
|
|
64
|
+
'block-opening-brace-space-before': 'always',
|
|
65
|
+
'selector-attribute-brackets-space-inside': 'never',
|
|
66
|
+
'selector-attribute-operator-space-after': 'never',
|
|
67
|
+
'selector-attribute-operator-space-before': 'never',
|
|
68
|
+
'selector-attribute-quotes': 'always',
|
|
69
|
+
'selector-combinator-space-after': 'always',
|
|
70
|
+
'selector-combinator-space-before': 'always',
|
|
71
|
+
'selector-descendant-combinator-no-non-space': true,
|
|
72
|
+
'selector-max-id': 0,
|
|
73
|
+
'selector-max-type': [
|
|
74
|
+
0,
|
|
75
|
+
{
|
|
76
|
+
ignore: ['compounded', 'descendant']
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
'selector-no-vendor-prefix': true,
|
|
80
|
+
'selector-pseudo-class-case': 'lower',
|
|
81
|
+
'selector-pseudo-class-no-unknown': true,
|
|
82
|
+
'selector-pseudo-class-parentheses-space-inside': 'never',
|
|
83
|
+
'selector-pseudo-element-case': 'lower',
|
|
84
|
+
'selector-pseudo-element-colon-notation': 'double',
|
|
85
|
+
'selector-pseudo-element-no-unknown': [
|
|
86
|
+
true,
|
|
87
|
+
{
|
|
88
|
+
ignorePseudoElements: ['v-deep']
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
'selector-type-case': 'lower',
|
|
92
|
+
'selector-type-no-unknown': true,
|
|
93
|
+
'selector-max-empty-lines': 0,
|
|
94
|
+
'selector-list-comma-newline-after': 'always',
|
|
95
|
+
'selector-list-comma-newline-before': 'never-multi-line',
|
|
96
|
+
'selector-list-comma-space-after': 'always-single-line',
|
|
97
|
+
'selector-list-comma-space-before': 'never',
|
|
98
|
+
'rule-empty-line-before': [
|
|
99
|
+
'always',
|
|
100
|
+
{
|
|
101
|
+
except: ['first-nested'],
|
|
102
|
+
ignore: ['after-comment']
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
'media-feature-colon-space-after': 'always',
|
|
106
|
+
'media-feature-colon-space-before': 'never',
|
|
107
|
+
'media-feature-name-case': 'lower',
|
|
108
|
+
'media-feature-name-no-unknown': true,
|
|
109
|
+
'media-feature-name-no-vendor-prefix': true,
|
|
110
|
+
'media-feature-parentheses-space-inside': 'never',
|
|
111
|
+
'media-feature-range-operator-space-after': 'always',
|
|
112
|
+
'media-feature-range-operator-space-before': 'always',
|
|
113
|
+
'media-query-list-comma-newline-after': 'always-multi-line',
|
|
114
|
+
'media-query-list-comma-newline-before': 'never-multi-line',
|
|
115
|
+
'media-query-list-comma-space-after': 'always-single-line',
|
|
116
|
+
'media-query-list-comma-space-before': 'never',
|
|
117
|
+
'at-rule-name-case': 'lower',
|
|
118
|
+
'at-rule-name-space-after': 'always',
|
|
119
|
+
'at-rule-no-vendor-prefix': true,
|
|
120
|
+
'at-rule-semicolon-newline-after': 'always',
|
|
121
|
+
'comment-empty-line-before': [
|
|
122
|
+
'always',
|
|
123
|
+
{
|
|
124
|
+
except: ['first-nested'],
|
|
125
|
+
ignore: ['after-comment', 'stylelint-commands']
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
'comment-no-empty': true,
|
|
129
|
+
'comment-whitespace-inside': 'always',
|
|
130
|
+
indentation: 'tab',
|
|
131
|
+
'max-empty-lines': 4,
|
|
132
|
+
'max-nesting-depth': [
|
|
133
|
+
6,
|
|
134
|
+
{
|
|
135
|
+
ignore: ['blockless-at-rules']
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
'no-duplicate-selectors': true,
|
|
139
|
+
'no-empty-source': true,
|
|
140
|
+
'no-eol-whitespace': [
|
|
141
|
+
true,
|
|
142
|
+
{
|
|
143
|
+
ignore: ['empty-lines']
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
'no-extra-semicolons': true,
|
|
147
|
+
'no-unknown-animations': true,
|
|
148
|
+
'scss/at-mixin-argumentless-call-parentheses': 'always',
|
|
149
|
+
'scss/dollar-variable-colon-space-after': 'always-single-line',
|
|
150
|
+
'scss/dollar-variable-colon-space-before': 'never',
|
|
151
|
+
'scss/dollar-variable-no-missing-interpolation': true,
|
|
152
|
+
'scss/selector-no-redundant-nesting-selector': true,
|
|
153
|
+
'scss/at-else-empty-line-before': 'never',
|
|
154
|
+
'order/order': [
|
|
155
|
+
'dollar-variables',
|
|
156
|
+
'custom-properties',
|
|
157
|
+
'declarations',
|
|
158
|
+
{
|
|
159
|
+
type: 'at-rule',
|
|
160
|
+
name: 'media',
|
|
161
|
+
hasBlock: true
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: 'at-rule',
|
|
165
|
+
name: 'include',
|
|
166
|
+
parameter: 'mq',
|
|
167
|
+
hasBlock: true
|
|
168
|
+
},
|
|
169
|
+
'rules'
|
|
170
|
+
],
|
|
171
|
+
'order/properties-order': [
|
|
172
|
+
'quotes',
|
|
173
|
+
'counter-reset',
|
|
174
|
+
'counter-increment',
|
|
175
|
+
'content',
|
|
176
|
+
'box-sizing',
|
|
177
|
+
'display',
|
|
178
|
+
'grid',
|
|
179
|
+
'grid-template',
|
|
180
|
+
'grid-template-columns',
|
|
181
|
+
'grid-template-rows',
|
|
182
|
+
'grid-template-areas',
|
|
183
|
+
'grid-gap',
|
|
184
|
+
'grid-column-gap',
|
|
185
|
+
'grid-row-gap',
|
|
186
|
+
'justify-items',
|
|
187
|
+
'align-items',
|
|
188
|
+
'justify-content',
|
|
189
|
+
'align-content',
|
|
190
|
+
'grid-auto-columns',
|
|
191
|
+
'grid-auto-rows',
|
|
192
|
+
'grid-auto-flow',
|
|
193
|
+
'grid-area',
|
|
194
|
+
'grid-column',
|
|
195
|
+
'grid-row',
|
|
196
|
+
'grid-column-start',
|
|
197
|
+
'grid-column-end',
|
|
198
|
+
'grid-row-start',
|
|
199
|
+
'grid-row-end',
|
|
200
|
+
'justify-self',
|
|
201
|
+
'align-self',
|
|
202
|
+
'flex-flow',
|
|
203
|
+
'flex-direction',
|
|
204
|
+
'flex-wrap',
|
|
205
|
+
'align-items',
|
|
206
|
+
'align-content',
|
|
207
|
+
'justify-content',
|
|
208
|
+
'order',
|
|
209
|
+
'flex',
|
|
210
|
+
'flex-basis',
|
|
211
|
+
'flex-grow',
|
|
212
|
+
'flex-shrink',
|
|
213
|
+
'align-self',
|
|
214
|
+
'width',
|
|
215
|
+
'min-width',
|
|
216
|
+
'max-width',
|
|
217
|
+
'height',
|
|
218
|
+
'min-height',
|
|
219
|
+
'max-height',
|
|
220
|
+
'padding',
|
|
221
|
+
'padding-top',
|
|
222
|
+
'padding-bottom',
|
|
223
|
+
'padding-left',
|
|
224
|
+
'padding-right',
|
|
225
|
+
'table-layout',
|
|
226
|
+
'empty-cells',
|
|
227
|
+
'caption-side',
|
|
228
|
+
'border-spacing',
|
|
229
|
+
'border-collapse',
|
|
230
|
+
'nav-index',
|
|
231
|
+
'nav-up',
|
|
232
|
+
'nav-right',
|
|
233
|
+
'nav-down',
|
|
234
|
+
'nav-left',
|
|
235
|
+
'object-fit',
|
|
236
|
+
'fill',
|
|
237
|
+
'overflow',
|
|
238
|
+
'overflow-x',
|
|
239
|
+
'overflow-y',
|
|
240
|
+
'overflow-scrolling',
|
|
241
|
+
'background',
|
|
242
|
+
'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader',
|
|
243
|
+
'background-color',
|
|
244
|
+
'background-image',
|
|
245
|
+
'background-repeat',
|
|
246
|
+
'background-attachment',
|
|
247
|
+
'background-position',
|
|
248
|
+
'background-position-x',
|
|
249
|
+
'background-position-y',
|
|
250
|
+
'background-clip',
|
|
251
|
+
'background-origin',
|
|
252
|
+
'background-size',
|
|
253
|
+
'border',
|
|
254
|
+
'border-width',
|
|
255
|
+
'border-style',
|
|
256
|
+
'border-color',
|
|
257
|
+
'border-top',
|
|
258
|
+
'border-top-width',
|
|
259
|
+
'border-top-style',
|
|
260
|
+
'border-top-color',
|
|
261
|
+
'border-bottom',
|
|
262
|
+
'border-bottom-width',
|
|
263
|
+
'border-bottom-style',
|
|
264
|
+
'border-bottom-color',
|
|
265
|
+
'border-left',
|
|
266
|
+
'border-left-width',
|
|
267
|
+
'border-left-style',
|
|
268
|
+
'border-left-color',
|
|
269
|
+
'border-right',
|
|
270
|
+
'border-right-width',
|
|
271
|
+
'border-right-style',
|
|
272
|
+
'border-right-color',
|
|
273
|
+
'border-radius',
|
|
274
|
+
'border-top-left-radius',
|
|
275
|
+
'border-top-right-radius',
|
|
276
|
+
'border-bottom-right-radius',
|
|
277
|
+
'border-bottom-left-radius',
|
|
278
|
+
'border-image',
|
|
279
|
+
'border-image-source',
|
|
280
|
+
'border-image-slice',
|
|
281
|
+
'border-image-width',
|
|
282
|
+
'border-image-outset',
|
|
283
|
+
'border-image-repeat',
|
|
284
|
+
'outline',
|
|
285
|
+
'outline-width',
|
|
286
|
+
'outline-style',
|
|
287
|
+
'outline-color',
|
|
288
|
+
'outline-offset',
|
|
289
|
+
'box-decoration-break',
|
|
290
|
+
'box-shadow',
|
|
291
|
+
'filter:progid:DXImageTransform.Microsoft.gradient',
|
|
292
|
+
"-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
|
|
293
|
+
'visibility',
|
|
294
|
+
'opacity',
|
|
295
|
+
'filter:progid:DXImageTransform.Microsoft.Alpha(Opacity',
|
|
296
|
+
"-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
|
|
297
|
+
'-ms-interpolation-mode',
|
|
298
|
+
'resize',
|
|
299
|
+
'clip',
|
|
300
|
+
'zoom',
|
|
301
|
+
'list-style',
|
|
302
|
+
'list-style-position',
|
|
303
|
+
'list-style-type',
|
|
304
|
+
'list-style-image',
|
|
305
|
+
'color',
|
|
306
|
+
'text-shadow',
|
|
307
|
+
'font',
|
|
308
|
+
'font-family',
|
|
309
|
+
'font-size',
|
|
310
|
+
'line-height',
|
|
311
|
+
'font-weight',
|
|
312
|
+
'font-style',
|
|
313
|
+
'font-variant',
|
|
314
|
+
'font-size-adjust',
|
|
315
|
+
'font-stretch',
|
|
316
|
+
'font-effect',
|
|
317
|
+
'font-emphasize',
|
|
318
|
+
'font-emphasize-position',
|
|
319
|
+
'font-emphasize-style',
|
|
320
|
+
'font-smooth',
|
|
321
|
+
'text-align',
|
|
322
|
+
'text-align-last',
|
|
323
|
+
'white-space',
|
|
324
|
+
'text-decoration',
|
|
325
|
+
'text-emphasis',
|
|
326
|
+
'text-emphasis-color',
|
|
327
|
+
'text-emphasis-style',
|
|
328
|
+
'text-emphasis-position',
|
|
329
|
+
'text-indent',
|
|
330
|
+
'text-justify',
|
|
331
|
+
'letter-spacing',
|
|
332
|
+
'word-spacing',
|
|
333
|
+
'writing-mode',
|
|
334
|
+
'text-outline',
|
|
335
|
+
'text-transform',
|
|
336
|
+
'text-wrap',
|
|
337
|
+
'text-overflow',
|
|
338
|
+
'text-overflow-ellipsis',
|
|
339
|
+
'text-overflow-mode',
|
|
340
|
+
'word-wrap',
|
|
341
|
+
'word-break',
|
|
342
|
+
'tab-size',
|
|
343
|
+
'hyphens',
|
|
344
|
+
'vertical-align',
|
|
345
|
+
'float',
|
|
346
|
+
'clear',
|
|
347
|
+
'position',
|
|
348
|
+
'top',
|
|
349
|
+
'bottom',
|
|
350
|
+
'left',
|
|
351
|
+
'right',
|
|
352
|
+
'z-index',
|
|
353
|
+
'margin',
|
|
354
|
+
'margin-top',
|
|
355
|
+
'margin-bottom',
|
|
356
|
+
'margin-left',
|
|
357
|
+
'margin-right',
|
|
358
|
+
'transform',
|
|
359
|
+
'transform-origin',
|
|
360
|
+
'cursor',
|
|
361
|
+
'user-select',
|
|
362
|
+
'pointer-events',
|
|
363
|
+
'transition',
|
|
364
|
+
'transition-delay',
|
|
365
|
+
'transition-timing-function',
|
|
366
|
+
'transition-duration',
|
|
367
|
+
'transition-property',
|
|
368
|
+
'animation',
|
|
369
|
+
'animation-name',
|
|
370
|
+
'animation-duration',
|
|
371
|
+
'animation-play-state',
|
|
372
|
+
'animation-timing-function',
|
|
373
|
+
'animation-delay',
|
|
374
|
+
'animation-iteration-count',
|
|
375
|
+
'animation-direction'
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@niondigital/stylelint-config",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "niondigital stylelint config",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"stylelint",
|
|
7
|
+
"config",
|
|
8
|
+
"stylelintconfig"
|
|
9
|
+
],
|
|
10
|
+
"author": "David Seibert <david.seibert@nion-digital.com>",
|
|
11
|
+
"homepage": "https://github.com/niondigital/javascript-style",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"main": "config.js",
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/niondigital/javascript-style.git"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"lint:fix": "eslint . --fix"
|
|
24
|
+
},
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/niondigital/javascript-style/issues"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"eslint": "^8.57.0"
|
|
30
|
+
},
|
|
31
|
+
"gitHead": "0307c2691964ad304f62c86b64872deb1ecf290f"
|
|
32
|
+
}
|