@codacy/tools-stylelint-0 0.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 +58 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3466 -0
- package/package.json +33 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,3466 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
default: () => index_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
|
+
var import_tooling = require("@codacy/tooling");
|
|
37
|
+
|
|
38
|
+
// src/adapter.ts
|
|
39
|
+
var import_path = __toESM(require("path"));
|
|
40
|
+
var import_fs = __toESM(require("fs"));
|
|
41
|
+
|
|
42
|
+
// src/patterns.json
|
|
43
|
+
var patterns_default = [
|
|
44
|
+
{
|
|
45
|
+
id: "Stylelint_alpha-value-notation",
|
|
46
|
+
category: "CodeStyle",
|
|
47
|
+
severityLevel: "Info",
|
|
48
|
+
title: "Enforce Alpha-Value Notation",
|
|
49
|
+
enabled: true,
|
|
50
|
+
parameters: [
|
|
51
|
+
{
|
|
52
|
+
name: "alpha-value-notation",
|
|
53
|
+
default: '["percentage",{"exceptProperties":["opacity","fill-opacity","flood-opacity","stop-opacity","stroke-opacity"]}]',
|
|
54
|
+
description: "alpha-value-notation"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "Stylelint_annotation-no-unknown",
|
|
60
|
+
category: "ErrorProne",
|
|
61
|
+
severityLevel: "Warning",
|
|
62
|
+
title: "Disallow Unknown Annotations",
|
|
63
|
+
enabled: false,
|
|
64
|
+
parameters: [
|
|
65
|
+
{
|
|
66
|
+
name: "annotation-no-unknown",
|
|
67
|
+
default: "true",
|
|
68
|
+
description: "annotation-no-unknown"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "Stylelint_at-rule-allowed-list",
|
|
74
|
+
category: "CodeStyle",
|
|
75
|
+
severityLevel: "Info",
|
|
76
|
+
title: "Enforce Allowed At-Rules List",
|
|
77
|
+
enabled: true,
|
|
78
|
+
parameters: [
|
|
79
|
+
{
|
|
80
|
+
name: "at-rule-allowed-list",
|
|
81
|
+
default: "null",
|
|
82
|
+
description: "at-rule-allowed-list"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "Stylelint_at-rule-descriptor-no-unknown",
|
|
88
|
+
category: "ErrorProne",
|
|
89
|
+
severityLevel: "Warning",
|
|
90
|
+
title: "Disallow Unknown Descriptors for At-Rules",
|
|
91
|
+
enabled: false,
|
|
92
|
+
parameters: [
|
|
93
|
+
{
|
|
94
|
+
name: "at-rule-descriptor-no-unknown",
|
|
95
|
+
default: "null",
|
|
96
|
+
description: "at-rule-descriptor-no-unknown"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "Stylelint_at-rule-descriptor-value-no-unknown",
|
|
102
|
+
category: "ErrorProne",
|
|
103
|
+
severityLevel: "Warning",
|
|
104
|
+
title: "Disallow Unknown Values for Descriptors within At-Rules",
|
|
105
|
+
enabled: false,
|
|
106
|
+
parameters: [
|
|
107
|
+
{
|
|
108
|
+
name: "at-rule-descriptor-value-no-unknown",
|
|
109
|
+
default: "null",
|
|
110
|
+
description: "at-rule-descriptor-value-no-unknown"
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: "Stylelint_at-rule-disallowed-list",
|
|
116
|
+
category: "BestPractice",
|
|
117
|
+
severityLevel: "Info",
|
|
118
|
+
title: "Disallow Specified At-Rules",
|
|
119
|
+
enabled: true,
|
|
120
|
+
parameters: [
|
|
121
|
+
{
|
|
122
|
+
name: "at-rule-disallowed-list",
|
|
123
|
+
default: "null",
|
|
124
|
+
description: "at-rule-disallowed-list"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
id: "Stylelint_at-rule-empty-line-before",
|
|
130
|
+
category: "CodeStyle",
|
|
131
|
+
severityLevel: "Info",
|
|
132
|
+
title: "Enforce empty line before at-rules",
|
|
133
|
+
enabled: true,
|
|
134
|
+
parameters: [
|
|
135
|
+
{
|
|
136
|
+
name: "at-rule-empty-line-before",
|
|
137
|
+
default: '["always",{"except":["blockless-after-same-name-blockless","first-nested"],"ignore":["after-comment"]}]',
|
|
138
|
+
description: "at-rule-empty-line-before"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: "Stylelint_at-rule-no-deprecated",
|
|
144
|
+
category: "Compatibility",
|
|
145
|
+
severityLevel: "Warning",
|
|
146
|
+
title: "Disallow Deprecated At-Rules",
|
|
147
|
+
enabled: false,
|
|
148
|
+
parameters: [
|
|
149
|
+
{
|
|
150
|
+
name: "at-rule-no-deprecated",
|
|
151
|
+
default: "null",
|
|
152
|
+
description: "at-rule-no-deprecated"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: "Stylelint_at-rule-no-unknown",
|
|
158
|
+
category: "ErrorProne",
|
|
159
|
+
severityLevel: "Warning",
|
|
160
|
+
title: "Disallow Unknown At-Rules",
|
|
161
|
+
enabled: false,
|
|
162
|
+
parameters: [
|
|
163
|
+
{
|
|
164
|
+
name: "at-rule-no-unknown",
|
|
165
|
+
default: "true",
|
|
166
|
+
description: "at-rule-no-unknown"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: "Stylelint_at-rule-no-vendor-prefix",
|
|
172
|
+
category: "CodeStyle",
|
|
173
|
+
severityLevel: "Info",
|
|
174
|
+
title: "Disallow Vendor Prefixes for At-Rules",
|
|
175
|
+
enabled: true,
|
|
176
|
+
parameters: [
|
|
177
|
+
{
|
|
178
|
+
name: "at-rule-no-vendor-prefix",
|
|
179
|
+
default: "true",
|
|
180
|
+
description: "at-rule-no-vendor-prefix"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
id: "Stylelint_at-rule-prelude-no-invalid",
|
|
186
|
+
category: "ErrorProne",
|
|
187
|
+
severityLevel: "Warning",
|
|
188
|
+
title: "Disallow invalid preludes for at-rules",
|
|
189
|
+
enabled: false,
|
|
190
|
+
parameters: [
|
|
191
|
+
{
|
|
192
|
+
name: "at-rule-prelude-no-invalid",
|
|
193
|
+
default: "null",
|
|
194
|
+
description: "at-rule-prelude-no-invalid"
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: "Stylelint_at-rule-property-required-list",
|
|
200
|
+
category: "BestPractice",
|
|
201
|
+
severityLevel: "Warning",
|
|
202
|
+
title: "Enforce Required Properties for At-Rules",
|
|
203
|
+
enabled: true,
|
|
204
|
+
parameters: [
|
|
205
|
+
{
|
|
206
|
+
name: "at-rule-property-required-list",
|
|
207
|
+
default: "null",
|
|
208
|
+
description: "at-rule-property-required-list"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: "Stylelint_block-no-empty",
|
|
214
|
+
category: "CodeStyle",
|
|
215
|
+
severityLevel: "Info",
|
|
216
|
+
title: "Disallow Empty CSS Blocks",
|
|
217
|
+
enabled: false,
|
|
218
|
+
parameters: [
|
|
219
|
+
{
|
|
220
|
+
name: "block-no-empty",
|
|
221
|
+
default: "true",
|
|
222
|
+
description: "block-no-empty"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: "Stylelint_block-no-redundant-nested-style-rules",
|
|
228
|
+
category: "CodeStyle",
|
|
229
|
+
severityLevel: "Info",
|
|
230
|
+
title: "Disallow redundant nested style rules within blocks",
|
|
231
|
+
enabled: false,
|
|
232
|
+
parameters: [
|
|
233
|
+
{
|
|
234
|
+
name: "block-no-redundant-nested-style-rules",
|
|
235
|
+
default: "null",
|
|
236
|
+
description: "block-no-redundant-nested-style-rules"
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: "Stylelint_color-function-alias-notation",
|
|
242
|
+
category: "CodeStyle",
|
|
243
|
+
severityLevel: "Info",
|
|
244
|
+
title: "Enforce alias notation for color-functions",
|
|
245
|
+
enabled: false,
|
|
246
|
+
parameters: [
|
|
247
|
+
{
|
|
248
|
+
name: "color-function-alias-notation",
|
|
249
|
+
default: "null",
|
|
250
|
+
description: "color-function-alias-notation"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
id: "Stylelint_color-function-notation",
|
|
256
|
+
category: "CodeStyle",
|
|
257
|
+
severityLevel: "Info",
|
|
258
|
+
title: "Enforce color-function notation style",
|
|
259
|
+
enabled: true,
|
|
260
|
+
parameters: [
|
|
261
|
+
{
|
|
262
|
+
name: "color-function-notation",
|
|
263
|
+
default: "modern",
|
|
264
|
+
description: "color-function-notation"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
id: "Stylelint_color-hex-alpha",
|
|
270
|
+
category: "CodeStyle",
|
|
271
|
+
severityLevel: "Info",
|
|
272
|
+
title: "Enforce Alpha Channel Usage in Hex Colors",
|
|
273
|
+
enabled: true,
|
|
274
|
+
parameters: [
|
|
275
|
+
{
|
|
276
|
+
name: "color-hex-alpha",
|
|
277
|
+
default: "null",
|
|
278
|
+
description: "color-hex-alpha"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
id: "Stylelint_color-hex-length",
|
|
284
|
+
category: "CodeStyle",
|
|
285
|
+
severityLevel: "Info",
|
|
286
|
+
title: "Enforce Short or Long Notation for Hex Colors",
|
|
287
|
+
enabled: true,
|
|
288
|
+
parameters: [
|
|
289
|
+
{
|
|
290
|
+
name: "color-hex-length",
|
|
291
|
+
default: "short",
|
|
292
|
+
description: "color-hex-length"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
id: "Stylelint_color-named",
|
|
298
|
+
category: "CodeStyle",
|
|
299
|
+
severityLevel: "Info",
|
|
300
|
+
title: "Require or Disallow Named Colors",
|
|
301
|
+
enabled: true,
|
|
302
|
+
parameters: [
|
|
303
|
+
{
|
|
304
|
+
name: "color-named",
|
|
305
|
+
default: "null",
|
|
306
|
+
description: "color-named"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
id: "Stylelint_color-no-hex",
|
|
312
|
+
category: "CodeStyle",
|
|
313
|
+
severityLevel: "Info",
|
|
314
|
+
title: "Disallow Hex Colors",
|
|
315
|
+
enabled: true,
|
|
316
|
+
parameters: [
|
|
317
|
+
{
|
|
318
|
+
name: "color-no-hex",
|
|
319
|
+
default: "null",
|
|
320
|
+
description: "color-no-hex"
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
id: "Stylelint_color-no-invalid-hex",
|
|
326
|
+
category: "ErrorProne",
|
|
327
|
+
severityLevel: "Warning",
|
|
328
|
+
title: "Disallow Invalid Hex Colors",
|
|
329
|
+
enabled: false,
|
|
330
|
+
parameters: [
|
|
331
|
+
{
|
|
332
|
+
name: "color-no-invalid-hex",
|
|
333
|
+
default: "true",
|
|
334
|
+
description: "color-no-invalid-hex"
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
id: "Stylelint_comment-empty-line-before",
|
|
340
|
+
category: "CodeStyle",
|
|
341
|
+
severityLevel: "Info",
|
|
342
|
+
title: "Require or Disallow Empty Line Before Comments",
|
|
343
|
+
enabled: true,
|
|
344
|
+
parameters: [
|
|
345
|
+
{
|
|
346
|
+
name: "comment-empty-line-before",
|
|
347
|
+
default: '["always",{"except":["first-nested"],"ignore":["stylelint-commands"]}]',
|
|
348
|
+
description: "comment-empty-line-before"
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
id: "Stylelint_comment-no-empty",
|
|
354
|
+
category: "CodeStyle",
|
|
355
|
+
severityLevel: "Info",
|
|
356
|
+
title: "Disallow Empty Comments",
|
|
357
|
+
enabled: false,
|
|
358
|
+
parameters: [
|
|
359
|
+
{
|
|
360
|
+
name: "comment-no-empty",
|
|
361
|
+
default: "true",
|
|
362
|
+
description: "comment-no-empty"
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
id: "Stylelint_comment-pattern",
|
|
368
|
+
category: "CodeStyle",
|
|
369
|
+
severityLevel: "Info",
|
|
370
|
+
title: "Enforce Comment Pattern",
|
|
371
|
+
enabled: true,
|
|
372
|
+
parameters: [
|
|
373
|
+
{
|
|
374
|
+
name: "comment-pattern",
|
|
375
|
+
default: "null",
|
|
376
|
+
description: "comment-pattern"
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
id: "Stylelint_comment-whitespace-inside",
|
|
382
|
+
category: "CodeStyle",
|
|
383
|
+
severityLevel: "Info",
|
|
384
|
+
title: "Enforce Whitespace Inside Comment Markers",
|
|
385
|
+
enabled: true,
|
|
386
|
+
parameters: [
|
|
387
|
+
{
|
|
388
|
+
name: "comment-whitespace-inside",
|
|
389
|
+
default: "always",
|
|
390
|
+
description: "comment-whitespace-inside"
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
id: "Stylelint_comment-word-disallowed-list",
|
|
396
|
+
category: "BestPractice",
|
|
397
|
+
severityLevel: "Info",
|
|
398
|
+
title: "Disallow Specified Words in Comments",
|
|
399
|
+
enabled: true,
|
|
400
|
+
parameters: [
|
|
401
|
+
{
|
|
402
|
+
name: "comment-word-disallowed-list",
|
|
403
|
+
default: "null",
|
|
404
|
+
description: "comment-word-disallowed-list"
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
id: "Stylelint_container-name-pattern",
|
|
410
|
+
category: "CodeStyle",
|
|
411
|
+
severityLevel: "Info",
|
|
412
|
+
title: "Enforce Container Name Pattern",
|
|
413
|
+
enabled: false,
|
|
414
|
+
parameters: [
|
|
415
|
+
{
|
|
416
|
+
name: "container-name-pattern",
|
|
417
|
+
default: "null",
|
|
418
|
+
description: "container-name-pattern"
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
id: "Stylelint_content-property-no-static-value",
|
|
424
|
+
category: "BestPractice",
|
|
425
|
+
severityLevel: "Warning",
|
|
426
|
+
title: "Disallow Static CSS Generated Content Except aria-label and Empty Strings",
|
|
427
|
+
enabled: false,
|
|
428
|
+
parameters: [
|
|
429
|
+
{
|
|
430
|
+
name: "content-property-no-static-value",
|
|
431
|
+
default: "null",
|
|
432
|
+
description: "content-property-no-static-value"
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
id: "Stylelint_custom-media-pattern",
|
|
438
|
+
category: "CodeStyle",
|
|
439
|
+
severityLevel: "Info",
|
|
440
|
+
title: "Enforce Pattern for Custom Media Query Names",
|
|
441
|
+
enabled: true,
|
|
442
|
+
parameters: [
|
|
443
|
+
{
|
|
444
|
+
name: "custom-media-pattern",
|
|
445
|
+
default: '["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",{"message":"(name) => `Expected custom media query name \\"${name}\\" to be kebab-case`"}]',
|
|
446
|
+
description: "custom-media-pattern"
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
id: "Stylelint_custom-property-empty-line-before",
|
|
452
|
+
category: "CodeStyle",
|
|
453
|
+
severityLevel: "Info",
|
|
454
|
+
title: "Require or Disallow an Empty Line Before Custom Properties",
|
|
455
|
+
enabled: true,
|
|
456
|
+
parameters: [
|
|
457
|
+
{
|
|
458
|
+
name: "custom-property-empty-line-before",
|
|
459
|
+
default: '["always",{"except":["after-custom-property","first-nested"],"ignore":["after-comment","inside-single-line-block"]}]',
|
|
460
|
+
description: "custom-property-empty-line-before"
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
id: "Stylelint_custom-property-no-missing-var-function",
|
|
466
|
+
category: "ErrorProne",
|
|
467
|
+
severityLevel: "High",
|
|
468
|
+
title: "Disallow Missing `var()` Function for Custom Properties",
|
|
469
|
+
enabled: false,
|
|
470
|
+
parameters: [
|
|
471
|
+
{
|
|
472
|
+
name: "custom-property-no-missing-var-function",
|
|
473
|
+
default: "true",
|
|
474
|
+
description: "custom-property-no-missing-var-function"
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
id: "Stylelint_custom-property-pattern",
|
|
480
|
+
category: "CodeStyle",
|
|
481
|
+
severityLevel: "Info",
|
|
482
|
+
title: "Enforce Custom Property Naming Pattern",
|
|
483
|
+
enabled: true,
|
|
484
|
+
parameters: [
|
|
485
|
+
{
|
|
486
|
+
name: "custom-property-pattern",
|
|
487
|
+
default: '["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",{"message":"(name) => `Expected custom media query name \\"${name}\\" to be kebab-case`"}]',
|
|
488
|
+
description: "custom-property-pattern"
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
id: "Stylelint_declaration-block-no-duplicate-custom-properties",
|
|
494
|
+
category: "ErrorProne",
|
|
495
|
+
severityLevel: "Warning",
|
|
496
|
+
title: "Disallow Duplicate Custom Properties Within Declaration Blocks",
|
|
497
|
+
enabled: false,
|
|
498
|
+
parameters: [
|
|
499
|
+
{
|
|
500
|
+
name: "declaration-block-no-duplicate-custom-properties",
|
|
501
|
+
default: "true",
|
|
502
|
+
description: "declaration-block-no-duplicate-custom-properties"
|
|
503
|
+
}
|
|
504
|
+
]
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
id: "Stylelint_declaration-block-no-duplicate-properties",
|
|
508
|
+
category: "CodeStyle",
|
|
509
|
+
severityLevel: "Info",
|
|
510
|
+
title: "Disallow Duplicate Properties Within Declaration Blocks",
|
|
511
|
+
enabled: false,
|
|
512
|
+
parameters: [
|
|
513
|
+
{
|
|
514
|
+
name: "declaration-block-no-duplicate-properties",
|
|
515
|
+
default: '[true,{"ignore":["consecutive-duplicates-with-different-syntaxes"]}]',
|
|
516
|
+
description: "declaration-block-no-duplicate-properties"
|
|
517
|
+
}
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
id: "Stylelint_declaration-block-no-redundant-longhand-properties",
|
|
522
|
+
category: "CodeStyle",
|
|
523
|
+
severityLevel: "Info",
|
|
524
|
+
title: "Disallow redundant longhand properties within declaration block",
|
|
525
|
+
enabled: true,
|
|
526
|
+
parameters: [
|
|
527
|
+
{
|
|
528
|
+
name: "declaration-block-no-redundant-longhand-properties",
|
|
529
|
+
default: "true",
|
|
530
|
+
description: "declaration-block-no-redundant-longhand-properties"
|
|
531
|
+
}
|
|
532
|
+
]
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
id: "Stylelint_declaration-block-no-shorthand-property-overrides",
|
|
536
|
+
category: "BestPractice",
|
|
537
|
+
severityLevel: "Warning",
|
|
538
|
+
title: "Disallow shorthand properties that override related longhand properties",
|
|
539
|
+
enabled: false,
|
|
540
|
+
parameters: [
|
|
541
|
+
{
|
|
542
|
+
name: "declaration-block-no-shorthand-property-overrides",
|
|
543
|
+
default: "true",
|
|
544
|
+
description: "declaration-block-no-shorthand-property-overrides"
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
id: "Stylelint_declaration-block-single-line-max-declarations",
|
|
550
|
+
category: "CodeStyle",
|
|
551
|
+
severityLevel: "Info",
|
|
552
|
+
title: "Limit Declarations in Single-Line Declaration Block",
|
|
553
|
+
enabled: true,
|
|
554
|
+
parameters: [
|
|
555
|
+
{
|
|
556
|
+
name: "declaration-block-single-line-max-declarations",
|
|
557
|
+
default: "1",
|
|
558
|
+
description: "declaration-block-single-line-max-declarations"
|
|
559
|
+
}
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
id: "Stylelint_declaration-empty-line-before",
|
|
564
|
+
category: "CodeStyle",
|
|
565
|
+
severityLevel: "Info",
|
|
566
|
+
title: "Require or Disallow an Empty Line Before Declarations",
|
|
567
|
+
enabled: true,
|
|
568
|
+
parameters: [
|
|
569
|
+
{
|
|
570
|
+
name: "declaration-empty-line-before",
|
|
571
|
+
default: '["always",{"except":["after-declaration","first-nested"],"ignore":["after-comment","inside-single-line-block"]}]',
|
|
572
|
+
description: "declaration-empty-line-before"
|
|
573
|
+
}
|
|
574
|
+
]
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
id: "Stylelint_declaration-no-important",
|
|
578
|
+
category: "BestPractice",
|
|
579
|
+
severityLevel: "Warning",
|
|
580
|
+
title: "Disallow !important Within Declarations",
|
|
581
|
+
enabled: true,
|
|
582
|
+
parameters: [
|
|
583
|
+
{
|
|
584
|
+
name: "declaration-no-important",
|
|
585
|
+
default: "null",
|
|
586
|
+
description: "declaration-no-important"
|
|
587
|
+
}
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
id: "Stylelint_declaration-property-max-values",
|
|
592
|
+
category: "CodeStyle",
|
|
593
|
+
severityLevel: "Info",
|
|
594
|
+
title: "Limit the Number of Values for CSS Declaration Properties",
|
|
595
|
+
enabled: true,
|
|
596
|
+
parameters: [
|
|
597
|
+
{
|
|
598
|
+
name: "declaration-property-max-values",
|
|
599
|
+
default: "null",
|
|
600
|
+
description: "declaration-property-max-values"
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
id: "Stylelint_declaration-property-unit-allowed-list",
|
|
606
|
+
category: "CodeStyle",
|
|
607
|
+
severityLevel: "Info",
|
|
608
|
+
title: "Enforce Allowed Property and Unit Pairs in Declarations",
|
|
609
|
+
enabled: true,
|
|
610
|
+
parameters: [
|
|
611
|
+
{
|
|
612
|
+
name: "declaration-property-unit-allowed-list",
|
|
613
|
+
default: "null",
|
|
614
|
+
description: "declaration-property-unit-allowed-list"
|
|
615
|
+
}
|
|
616
|
+
]
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
id: "Stylelint_declaration-property-unit-disallowed-list",
|
|
620
|
+
category: "CodeStyle",
|
|
621
|
+
severityLevel: "Info",
|
|
622
|
+
title: "Disallow Specific Property and Unit Pairs in CSS Declarations",
|
|
623
|
+
enabled: true,
|
|
624
|
+
parameters: [
|
|
625
|
+
{
|
|
626
|
+
name: "declaration-property-unit-disallowed-list",
|
|
627
|
+
default: "null",
|
|
628
|
+
description: "declaration-property-unit-disallowed-list"
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
id: "Stylelint_declaration-property-value-allowed-list",
|
|
634
|
+
category: "CodeStyle",
|
|
635
|
+
severityLevel: "Info",
|
|
636
|
+
title: "Enforce Allowed Property-Value Pairs in CSS Declarations",
|
|
637
|
+
enabled: true,
|
|
638
|
+
parameters: [
|
|
639
|
+
{
|
|
640
|
+
name: "declaration-property-value-allowed-list",
|
|
641
|
+
default: "null",
|
|
642
|
+
description: "declaration-property-value-allowed-list"
|
|
643
|
+
}
|
|
644
|
+
]
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
id: "Stylelint_declaration-property-value-disallowed-list",
|
|
648
|
+
category: "BestPractice",
|
|
649
|
+
severityLevel: "Warning",
|
|
650
|
+
title: "Disallow Specific Property and Value Pairs in Declarations",
|
|
651
|
+
enabled: true,
|
|
652
|
+
parameters: [
|
|
653
|
+
{
|
|
654
|
+
name: "declaration-property-value-disallowed-list",
|
|
655
|
+
default: "null",
|
|
656
|
+
description: "declaration-property-value-disallowed-list"
|
|
657
|
+
}
|
|
658
|
+
]
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
id: "Stylelint_declaration-property-value-keyword-no-deprecated",
|
|
662
|
+
category: "Compatibility",
|
|
663
|
+
severityLevel: "Warning",
|
|
664
|
+
title: "Disallow Deprecated Keywords for CSS Property Values",
|
|
665
|
+
enabled: false,
|
|
666
|
+
parameters: [
|
|
667
|
+
{
|
|
668
|
+
name: "declaration-property-value-keyword-no-deprecated",
|
|
669
|
+
default: "null",
|
|
670
|
+
description: "declaration-property-value-keyword-no-deprecated"
|
|
671
|
+
}
|
|
672
|
+
]
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
id: "Stylelint_declaration-property-value-no-unknown",
|
|
676
|
+
category: "ErrorProne",
|
|
677
|
+
severityLevel: "Warning",
|
|
678
|
+
title: "Disallow Unknown Values for CSS Properties",
|
|
679
|
+
enabled: false,
|
|
680
|
+
parameters: [
|
|
681
|
+
{
|
|
682
|
+
name: "declaration-property-value-no-unknown",
|
|
683
|
+
default: "null",
|
|
684
|
+
description: "declaration-property-value-no-unknown"
|
|
685
|
+
}
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
id: "Stylelint_font-family-name-quotes",
|
|
690
|
+
category: "CodeStyle",
|
|
691
|
+
severityLevel: "Info",
|
|
692
|
+
title: "Enforce font-family name quotes",
|
|
693
|
+
enabled: true,
|
|
694
|
+
parameters: [
|
|
695
|
+
{
|
|
696
|
+
name: "font-family-name-quotes",
|
|
697
|
+
default: "always-where-recommended",
|
|
698
|
+
description: "font-family-name-quotes"
|
|
699
|
+
}
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
id: "Stylelint_font-family-no-duplicate-names",
|
|
704
|
+
category: "CodeStyle",
|
|
705
|
+
severityLevel: "Info",
|
|
706
|
+
title: "Disallow Duplicate Names Within Font Families",
|
|
707
|
+
enabled: false,
|
|
708
|
+
parameters: [
|
|
709
|
+
{
|
|
710
|
+
name: "font-family-no-duplicate-names",
|
|
711
|
+
default: "true",
|
|
712
|
+
description: "font-family-no-duplicate-names"
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
id: "Stylelint_font-family-no-missing-generic-family-keyword",
|
|
718
|
+
category: "BestPractice",
|
|
719
|
+
severityLevel: "Warning",
|
|
720
|
+
title: "Disallow Missing Generic Family Keyword in Font Families",
|
|
721
|
+
enabled: false,
|
|
722
|
+
parameters: [
|
|
723
|
+
{
|
|
724
|
+
name: "font-family-no-missing-generic-family-keyword",
|
|
725
|
+
default: "true",
|
|
726
|
+
description: "font-family-no-missing-generic-family-keyword"
|
|
727
|
+
}
|
|
728
|
+
]
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
id: "Stylelint_font-size-is-readable",
|
|
732
|
+
category: "BestPractice",
|
|
733
|
+
severityLevel: "Warning",
|
|
734
|
+
title: "Disallow font sizes less than 15px",
|
|
735
|
+
enabled: false,
|
|
736
|
+
parameters: [
|
|
737
|
+
{
|
|
738
|
+
name: "font-size-is-readable",
|
|
739
|
+
default: "null",
|
|
740
|
+
description: "font-size-is-readable"
|
|
741
|
+
}
|
|
742
|
+
]
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
id: "Stylelint_font-weight-notation",
|
|
746
|
+
category: "CodeStyle",
|
|
747
|
+
severityLevel: "Info",
|
|
748
|
+
title: "Require Numeric or Named Font-Weight Values",
|
|
749
|
+
enabled: true,
|
|
750
|
+
parameters: [
|
|
751
|
+
{
|
|
752
|
+
name: "font-weight-notation",
|
|
753
|
+
default: "null",
|
|
754
|
+
description: "font-weight-notation"
|
|
755
|
+
}
|
|
756
|
+
]
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
id: "Stylelint_function-allowed-list",
|
|
760
|
+
category: "BestPractice",
|
|
761
|
+
severityLevel: "Info",
|
|
762
|
+
title: "Enforce Allowed List of CSS Functions",
|
|
763
|
+
enabled: true,
|
|
764
|
+
parameters: [
|
|
765
|
+
{
|
|
766
|
+
name: "function-allowed-list",
|
|
767
|
+
default: "null",
|
|
768
|
+
description: "function-allowed-list"
|
|
769
|
+
}
|
|
770
|
+
]
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
id: "Stylelint_function-calc-no-unspaced-operator",
|
|
774
|
+
category: "CodeStyle",
|
|
775
|
+
severityLevel: "Info",
|
|
776
|
+
title: "Disallow Unspaced Operators Within CSS Math Functions",
|
|
777
|
+
enabled: false,
|
|
778
|
+
parameters: [
|
|
779
|
+
{
|
|
780
|
+
name: "function-calc-no-unspaced-operator",
|
|
781
|
+
default: "true",
|
|
782
|
+
description: "function-calc-no-unspaced-operator"
|
|
783
|
+
}
|
|
784
|
+
]
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
id: "Stylelint_function-disallowed-list",
|
|
788
|
+
category: "BestPractice",
|
|
789
|
+
severityLevel: "Warning",
|
|
790
|
+
title: "Disallow Specific CSS Functions",
|
|
791
|
+
enabled: true,
|
|
792
|
+
parameters: [
|
|
793
|
+
{
|
|
794
|
+
name: "function-disallowed-list",
|
|
795
|
+
default: "null",
|
|
796
|
+
description: "function-disallowed-list"
|
|
797
|
+
}
|
|
798
|
+
]
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
id: "Stylelint_function-linear-gradient-no-nonstandard-direction",
|
|
802
|
+
category: "ErrorProne",
|
|
803
|
+
severityLevel: "Warning",
|
|
804
|
+
title: "Disallow Non-Standard Direction Values for Linear Gradient Functions",
|
|
805
|
+
enabled: false,
|
|
806
|
+
parameters: [
|
|
807
|
+
{
|
|
808
|
+
name: "function-linear-gradient-no-nonstandard-direction",
|
|
809
|
+
default: "true",
|
|
810
|
+
description: "function-linear-gradient-no-nonstandard-direction"
|
|
811
|
+
}
|
|
812
|
+
]
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
id: "Stylelint_function-name-case",
|
|
816
|
+
category: "CodeStyle",
|
|
817
|
+
severityLevel: "Info",
|
|
818
|
+
title: "Enforce case for function names",
|
|
819
|
+
enabled: true,
|
|
820
|
+
parameters: [
|
|
821
|
+
{
|
|
822
|
+
name: "function-name-case",
|
|
823
|
+
default: "lower",
|
|
824
|
+
description: "function-name-case"
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
id: "Stylelint_function-no-unknown",
|
|
830
|
+
category: "ErrorProne",
|
|
831
|
+
severityLevel: "Warning",
|
|
832
|
+
title: "Disallow Unknown Functions",
|
|
833
|
+
enabled: false,
|
|
834
|
+
parameters: [
|
|
835
|
+
{
|
|
836
|
+
name: "function-no-unknown",
|
|
837
|
+
default: "true",
|
|
838
|
+
description: "function-no-unknown"
|
|
839
|
+
}
|
|
840
|
+
]
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
id: "Stylelint_function-url-no-scheme-relative",
|
|
844
|
+
category: "BestPractice",
|
|
845
|
+
severityLevel: "Info",
|
|
846
|
+
title: "Disallow Scheme-Relative URLs",
|
|
847
|
+
enabled: true,
|
|
848
|
+
parameters: [
|
|
849
|
+
{
|
|
850
|
+
name: "function-url-no-scheme-relative",
|
|
851
|
+
default: "null",
|
|
852
|
+
description: "function-url-no-scheme-relative"
|
|
853
|
+
}
|
|
854
|
+
]
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
id: "Stylelint_function-url-quotes",
|
|
858
|
+
category: "CodeStyle",
|
|
859
|
+
severityLevel: "Info",
|
|
860
|
+
title: "Enforce Quotes Usage in url() Functions",
|
|
861
|
+
enabled: true,
|
|
862
|
+
parameters: [
|
|
863
|
+
{
|
|
864
|
+
name: "function-url-quotes",
|
|
865
|
+
default: "always",
|
|
866
|
+
description: "function-url-quotes"
|
|
867
|
+
}
|
|
868
|
+
]
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
id: "Stylelint_function-url-scheme-allowed-list",
|
|
872
|
+
category: "Security",
|
|
873
|
+
severityLevel: "High",
|
|
874
|
+
title: "Enforce Allowed URL Schemes in CSS URL Functions",
|
|
875
|
+
enabled: true,
|
|
876
|
+
parameters: [
|
|
877
|
+
{
|
|
878
|
+
name: "function-url-scheme-allowed-list",
|
|
879
|
+
default: "null",
|
|
880
|
+
description: "function-url-scheme-allowed-list"
|
|
881
|
+
}
|
|
882
|
+
]
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
id: "Stylelint_function-url-scheme-disallowed-list",
|
|
886
|
+
category: "Security",
|
|
887
|
+
severityLevel: "Warning",
|
|
888
|
+
title: "Disallow Specified URL Schemes in CSS URL Functions",
|
|
889
|
+
enabled: true,
|
|
890
|
+
parameters: [
|
|
891
|
+
{
|
|
892
|
+
name: "function-url-scheme-disallowed-list",
|
|
893
|
+
default: "null",
|
|
894
|
+
description: "function-url-scheme-disallowed-list"
|
|
895
|
+
}
|
|
896
|
+
]
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
id: "Stylelint_hue-degree-notation",
|
|
900
|
+
category: "CodeStyle",
|
|
901
|
+
severityLevel: "Info",
|
|
902
|
+
title: "Enforce notation style for degree hues",
|
|
903
|
+
enabled: true,
|
|
904
|
+
parameters: [
|
|
905
|
+
{
|
|
906
|
+
name: "hue-degree-notation",
|
|
907
|
+
default: "angle",
|
|
908
|
+
description: "hue-degree-notation"
|
|
909
|
+
}
|
|
910
|
+
]
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
id: "Stylelint_import-notation",
|
|
914
|
+
category: "CodeStyle",
|
|
915
|
+
severityLevel: "Info",
|
|
916
|
+
title: "Enforce notation style for @import rules",
|
|
917
|
+
enabled: true,
|
|
918
|
+
parameters: [
|
|
919
|
+
{
|
|
920
|
+
name: "import-notation",
|
|
921
|
+
default: "url",
|
|
922
|
+
description: "import-notation"
|
|
923
|
+
}
|
|
924
|
+
]
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
id: "Stylelint_keyframe-block-no-duplicate-selectors",
|
|
928
|
+
category: "ErrorProne",
|
|
929
|
+
severityLevel: "Warning",
|
|
930
|
+
title: "Disallow Duplicate Selectors Within Keyframe Blocks",
|
|
931
|
+
enabled: false,
|
|
932
|
+
parameters: [
|
|
933
|
+
{
|
|
934
|
+
name: "keyframe-block-no-duplicate-selectors",
|
|
935
|
+
default: "true",
|
|
936
|
+
description: "keyframe-block-no-duplicate-selectors"
|
|
937
|
+
}
|
|
938
|
+
]
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
id: "Stylelint_keyframe-declaration-no-important",
|
|
942
|
+
category: "Compatibility",
|
|
943
|
+
severityLevel: "Warning",
|
|
944
|
+
title: "Disallow !important in Keyframe Declarations",
|
|
945
|
+
enabled: false,
|
|
946
|
+
parameters: [
|
|
947
|
+
{
|
|
948
|
+
name: "keyframe-declaration-no-important",
|
|
949
|
+
default: "true",
|
|
950
|
+
description: "keyframe-declaration-no-important"
|
|
951
|
+
}
|
|
952
|
+
]
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
id: "Stylelint_keyframe-selector-notation",
|
|
956
|
+
category: "CodeStyle",
|
|
957
|
+
severityLevel: "Info",
|
|
958
|
+
title: "Enforce notation style for keyframe selectors",
|
|
959
|
+
enabled: true,
|
|
960
|
+
parameters: [
|
|
961
|
+
{
|
|
962
|
+
name: "keyframe-selector-notation",
|
|
963
|
+
default: "percentage-unless-within-keyword-only-block",
|
|
964
|
+
description: "keyframe-selector-notation"
|
|
965
|
+
}
|
|
966
|
+
]
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
id: "Stylelint_keyframes-name-pattern",
|
|
970
|
+
category: "CodeStyle",
|
|
971
|
+
severityLevel: "Info",
|
|
972
|
+
title: "Enforce Keyframe Name Pattern",
|
|
973
|
+
enabled: true,
|
|
974
|
+
parameters: [
|
|
975
|
+
{
|
|
976
|
+
name: "keyframes-name-pattern",
|
|
977
|
+
default: '["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",{"message":"(name) => `Expected keyframe name \\"${name}\\" to be kebab-case`"}]',
|
|
978
|
+
description: "keyframes-name-pattern"
|
|
979
|
+
}
|
|
980
|
+
]
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
id: "Stylelint_layer-name-pattern",
|
|
984
|
+
category: "CodeStyle",
|
|
985
|
+
severityLevel: "Info",
|
|
986
|
+
title: "Enforce Layer Name Pattern",
|
|
987
|
+
enabled: false,
|
|
988
|
+
parameters: [
|
|
989
|
+
{
|
|
990
|
+
name: "layer-name-pattern",
|
|
991
|
+
default: "null",
|
|
992
|
+
description: "layer-name-pattern"
|
|
993
|
+
}
|
|
994
|
+
]
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
id: "Stylelint_length-zero-no-unit",
|
|
998
|
+
category: "CodeStyle",
|
|
999
|
+
severityLevel: "Info",
|
|
1000
|
+
title: "Disallow units for zero lengths",
|
|
1001
|
+
enabled: true,
|
|
1002
|
+
parameters: [
|
|
1003
|
+
{
|
|
1004
|
+
name: "length-zero-no-unit",
|
|
1005
|
+
default: '[true,{"ignore":["custom-properties"]}]',
|
|
1006
|
+
description: "length-zero-no-unit"
|
|
1007
|
+
}
|
|
1008
|
+
]
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
id: "Stylelint_lightness-notation",
|
|
1012
|
+
category: "CodeStyle",
|
|
1013
|
+
severityLevel: "Info",
|
|
1014
|
+
title: "Enforce Lightness Notation in Color Functions",
|
|
1015
|
+
enabled: false,
|
|
1016
|
+
parameters: [
|
|
1017
|
+
{
|
|
1018
|
+
name: "lightness-notation",
|
|
1019
|
+
default: "null",
|
|
1020
|
+
description: "lightness-notation"
|
|
1021
|
+
}
|
|
1022
|
+
]
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
id: "Stylelint_line-height-is-vertical-rhythmed",
|
|
1026
|
+
category: "CodeStyle",
|
|
1027
|
+
severityLevel: "Info",
|
|
1028
|
+
title: "Disallow Non-Vertical-Rhythmed Line-Height",
|
|
1029
|
+
enabled: false,
|
|
1030
|
+
parameters: [
|
|
1031
|
+
{
|
|
1032
|
+
name: "line-height-is-vertical-rhythmed",
|
|
1033
|
+
default: "null",
|
|
1034
|
+
description: "line-height-is-vertical-rhythmed"
|
|
1035
|
+
}
|
|
1036
|
+
]
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
id: "Stylelint_max-nesting-depth",
|
|
1040
|
+
category: "CodeStyle",
|
|
1041
|
+
severityLevel: "Info",
|
|
1042
|
+
title: "Enforce Maximum Nesting Depth",
|
|
1043
|
+
enabled: true,
|
|
1044
|
+
parameters: [
|
|
1045
|
+
{
|
|
1046
|
+
name: "max-nesting-depth",
|
|
1047
|
+
default: "null",
|
|
1048
|
+
description: "max-nesting-depth"
|
|
1049
|
+
}
|
|
1050
|
+
]
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
id: "Stylelint_media-feature-name-allowed-list",
|
|
1054
|
+
category: "BestPractice",
|
|
1055
|
+
severityLevel: "Warning",
|
|
1056
|
+
title: "Enforce Allowed Media Feature Names",
|
|
1057
|
+
enabled: true,
|
|
1058
|
+
parameters: [
|
|
1059
|
+
{
|
|
1060
|
+
name: "media-feature-name-allowed-list",
|
|
1061
|
+
default: "null",
|
|
1062
|
+
description: "media-feature-name-allowed-list"
|
|
1063
|
+
}
|
|
1064
|
+
]
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
id: "Stylelint_media-feature-name-disallowed-list",
|
|
1068
|
+
category: "BestPractice",
|
|
1069
|
+
severityLevel: "Info",
|
|
1070
|
+
title: "Disallow Specified Media Feature Names",
|
|
1071
|
+
enabled: true,
|
|
1072
|
+
parameters: [
|
|
1073
|
+
{
|
|
1074
|
+
name: "media-feature-name-disallowed-list",
|
|
1075
|
+
default: "null",
|
|
1076
|
+
description: "media-feature-name-disallowed-list"
|
|
1077
|
+
}
|
|
1078
|
+
]
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
id: "Stylelint_media-feature-name-no-unknown",
|
|
1082
|
+
category: "ErrorProne",
|
|
1083
|
+
severityLevel: "Warning",
|
|
1084
|
+
title: "Disallow unknown media feature names",
|
|
1085
|
+
enabled: false,
|
|
1086
|
+
parameters: [
|
|
1087
|
+
{
|
|
1088
|
+
name: "media-feature-name-no-unknown",
|
|
1089
|
+
default: "true",
|
|
1090
|
+
description: "media-feature-name-no-unknown"
|
|
1091
|
+
}
|
|
1092
|
+
]
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
id: "Stylelint_media-feature-name-no-vendor-prefix",
|
|
1096
|
+
category: "CodeStyle",
|
|
1097
|
+
severityLevel: "Info",
|
|
1098
|
+
title: "Disallow vendor prefixes for media feature names",
|
|
1099
|
+
enabled: true,
|
|
1100
|
+
parameters: [
|
|
1101
|
+
{
|
|
1102
|
+
name: "media-feature-name-no-vendor-prefix",
|
|
1103
|
+
default: "true",
|
|
1104
|
+
description: "media-feature-name-no-vendor-prefix"
|
|
1105
|
+
}
|
|
1106
|
+
]
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
id: "Stylelint_media-feature-name-unit-allowed-list",
|
|
1110
|
+
category: "CodeStyle",
|
|
1111
|
+
severityLevel: "Info",
|
|
1112
|
+
title: "Enforce Allowed Name and Unit Pairs in Media Features",
|
|
1113
|
+
enabled: true,
|
|
1114
|
+
parameters: [
|
|
1115
|
+
{
|
|
1116
|
+
name: "media-feature-name-unit-allowed-list",
|
|
1117
|
+
default: "null",
|
|
1118
|
+
description: "media-feature-name-unit-allowed-list"
|
|
1119
|
+
}
|
|
1120
|
+
]
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
id: "Stylelint_media-feature-name-value-allowed-list",
|
|
1124
|
+
category: "BestPractice",
|
|
1125
|
+
severityLevel: "Warning",
|
|
1126
|
+
title: "Enforce Allowed Media Feature Name and Value Pairs",
|
|
1127
|
+
enabled: true,
|
|
1128
|
+
parameters: [
|
|
1129
|
+
{
|
|
1130
|
+
name: "media-feature-name-value-allowed-list",
|
|
1131
|
+
default: "null",
|
|
1132
|
+
description: "media-feature-name-value-allowed-list"
|
|
1133
|
+
}
|
|
1134
|
+
]
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
id: "Stylelint_media-feature-name-value-no-unknown",
|
|
1138
|
+
category: "ErrorProne",
|
|
1139
|
+
severityLevel: "High",
|
|
1140
|
+
title: "Disallow Unknown Values for Media Features",
|
|
1141
|
+
enabled: false,
|
|
1142
|
+
parameters: [
|
|
1143
|
+
{
|
|
1144
|
+
name: "media-feature-name-value-no-unknown",
|
|
1145
|
+
default: "null",
|
|
1146
|
+
description: "media-feature-name-value-no-unknown"
|
|
1147
|
+
}
|
|
1148
|
+
]
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
id: "Stylelint_media-feature-range-notation",
|
|
1152
|
+
category: "CodeStyle",
|
|
1153
|
+
severityLevel: "Info",
|
|
1154
|
+
title: "Enforce consistent media feature range notation",
|
|
1155
|
+
enabled: true,
|
|
1156
|
+
parameters: [
|
|
1157
|
+
{
|
|
1158
|
+
name: "media-feature-range-notation",
|
|
1159
|
+
default: "context",
|
|
1160
|
+
description: "media-feature-range-notation"
|
|
1161
|
+
}
|
|
1162
|
+
]
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
id: "Stylelint_media-prefers-color-scheme",
|
|
1166
|
+
category: "BestPractice",
|
|
1167
|
+
severityLevel: "Warning",
|
|
1168
|
+
title: "Require styles for selectors with colors in prefers-color-scheme media queries",
|
|
1169
|
+
enabled: false,
|
|
1170
|
+
parameters: [
|
|
1171
|
+
{
|
|
1172
|
+
name: "media-prefers-color-scheme",
|
|
1173
|
+
default: "null",
|
|
1174
|
+
description: "media-prefers-color-scheme"
|
|
1175
|
+
}
|
|
1176
|
+
]
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
id: "Stylelint_media-prefers-reduced-motion",
|
|
1180
|
+
category: "BestPractice",
|
|
1181
|
+
severityLevel: "Warning",
|
|
1182
|
+
title: "Require Reduced Motion Styles in Media Queries",
|
|
1183
|
+
enabled: false,
|
|
1184
|
+
parameters: [
|
|
1185
|
+
{
|
|
1186
|
+
name: "media-prefers-reduced-motion",
|
|
1187
|
+
default: "null",
|
|
1188
|
+
description: "media-prefers-reduced-motion"
|
|
1189
|
+
}
|
|
1190
|
+
]
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
id: "Stylelint_media-query-no-invalid",
|
|
1194
|
+
category: "ErrorProne",
|
|
1195
|
+
severityLevel: "High",
|
|
1196
|
+
title: "Disallow Invalid Media Queries",
|
|
1197
|
+
enabled: false,
|
|
1198
|
+
parameters: [
|
|
1199
|
+
{
|
|
1200
|
+
name: "media-query-no-invalid",
|
|
1201
|
+
default: "null",
|
|
1202
|
+
description: "media-query-no-invalid"
|
|
1203
|
+
}
|
|
1204
|
+
]
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
id: "Stylelint_media-type-no-deprecated",
|
|
1208
|
+
category: "Compatibility",
|
|
1209
|
+
severityLevel: "Warning",
|
|
1210
|
+
title: "Disallow deprecated media types",
|
|
1211
|
+
enabled: false,
|
|
1212
|
+
parameters: [
|
|
1213
|
+
{
|
|
1214
|
+
name: "media-type-no-deprecated",
|
|
1215
|
+
default: "null",
|
|
1216
|
+
description: "media-type-no-deprecated"
|
|
1217
|
+
}
|
|
1218
|
+
]
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
id: "Stylelint_named-grid-areas-no-invalid",
|
|
1222
|
+
category: "ErrorProne",
|
|
1223
|
+
severityLevel: "Warning",
|
|
1224
|
+
title: "Disallow Invalid Named Grid Areas",
|
|
1225
|
+
enabled: false,
|
|
1226
|
+
parameters: [
|
|
1227
|
+
{
|
|
1228
|
+
name: "named-grid-areas-no-invalid",
|
|
1229
|
+
default: "true",
|
|
1230
|
+
description: "named-grid-areas-no-invalid"
|
|
1231
|
+
}
|
|
1232
|
+
]
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
id: "Stylelint_nesting-selector-no-missing-scoping-root",
|
|
1236
|
+
category: "ErrorProne",
|
|
1237
|
+
severityLevel: "High",
|
|
1238
|
+
title: "Disallow Missing Scoping Root for Nesting Selectors",
|
|
1239
|
+
enabled: false,
|
|
1240
|
+
parameters: [
|
|
1241
|
+
{
|
|
1242
|
+
name: "nesting-selector-no-missing-scoping-root",
|
|
1243
|
+
default: "null",
|
|
1244
|
+
description: "nesting-selector-no-missing-scoping-root"
|
|
1245
|
+
}
|
|
1246
|
+
]
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
id: "Stylelint_no-descending-specificity",
|
|
1250
|
+
category: "BestPractice",
|
|
1251
|
+
severityLevel: "Info",
|
|
1252
|
+
title: "Disallow Descending Specificity Selectors",
|
|
1253
|
+
enabled: false,
|
|
1254
|
+
parameters: [
|
|
1255
|
+
{
|
|
1256
|
+
name: "no-descending-specificity",
|
|
1257
|
+
default: "true",
|
|
1258
|
+
description: "no-descending-specificity"
|
|
1259
|
+
}
|
|
1260
|
+
]
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
id: "Stylelint_no-display-none",
|
|
1264
|
+
category: "BestPractice",
|
|
1265
|
+
severityLevel: "Warning",
|
|
1266
|
+
title: "Avoid Using display: none",
|
|
1267
|
+
enabled: false,
|
|
1268
|
+
parameters: [
|
|
1269
|
+
{
|
|
1270
|
+
name: "no-display-none",
|
|
1271
|
+
default: "null",
|
|
1272
|
+
description: "no-display-none"
|
|
1273
|
+
}
|
|
1274
|
+
]
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
id: "Stylelint_no-duplicate-at-import-rules",
|
|
1278
|
+
category: "BestPractice",
|
|
1279
|
+
severityLevel: "Info",
|
|
1280
|
+
title: "Disallow Duplicate @import Rules",
|
|
1281
|
+
enabled: false,
|
|
1282
|
+
parameters: [
|
|
1283
|
+
{
|
|
1284
|
+
name: "no-duplicate-at-import-rules",
|
|
1285
|
+
default: "true",
|
|
1286
|
+
description: "no-duplicate-at-import-rules"
|
|
1287
|
+
}
|
|
1288
|
+
]
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
id: "Stylelint_no-duplicate-selectors",
|
|
1292
|
+
category: "CodeStyle",
|
|
1293
|
+
severityLevel: "Info",
|
|
1294
|
+
title: "Disallow Duplicate Selectors",
|
|
1295
|
+
enabled: false,
|
|
1296
|
+
parameters: [
|
|
1297
|
+
{
|
|
1298
|
+
name: "no-duplicate-selectors",
|
|
1299
|
+
default: "null",
|
|
1300
|
+
description: "no-duplicate-selectors"
|
|
1301
|
+
}
|
|
1302
|
+
]
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
id: "Stylelint_no-empty-source",
|
|
1306
|
+
category: "CodeStyle",
|
|
1307
|
+
severityLevel: "Info",
|
|
1308
|
+
title: "Disallow Empty Sources",
|
|
1309
|
+
enabled: false,
|
|
1310
|
+
parameters: [
|
|
1311
|
+
{
|
|
1312
|
+
name: "no-empty-source",
|
|
1313
|
+
default: "true",
|
|
1314
|
+
description: "no-empty-source"
|
|
1315
|
+
}
|
|
1316
|
+
]
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
id: "Stylelint_no-invalid-double-slash-comments",
|
|
1320
|
+
category: "ErrorProne",
|
|
1321
|
+
severityLevel: "High",
|
|
1322
|
+
title: "Disallow invalid double-slash comments",
|
|
1323
|
+
enabled: false,
|
|
1324
|
+
parameters: [
|
|
1325
|
+
{
|
|
1326
|
+
name: "no-invalid-double-slash-comments",
|
|
1327
|
+
default: "true",
|
|
1328
|
+
description: "no-invalid-double-slash-comments"
|
|
1329
|
+
}
|
|
1330
|
+
]
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
id: "Stylelint_no-invalid-position-at-import-rule",
|
|
1334
|
+
category: "ErrorProne",
|
|
1335
|
+
severityLevel: "Warning",
|
|
1336
|
+
title: "Disallow invalid position of @import rules",
|
|
1337
|
+
enabled: false,
|
|
1338
|
+
parameters: [
|
|
1339
|
+
{
|
|
1340
|
+
name: "no-invalid-position-at-import-rule",
|
|
1341
|
+
default: "true",
|
|
1342
|
+
description: "no-invalid-position-at-import-rule"
|
|
1343
|
+
}
|
|
1344
|
+
]
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
id: "Stylelint_no-invalid-position-declaration",
|
|
1348
|
+
category: "ErrorProne",
|
|
1349
|
+
severityLevel: "Warning",
|
|
1350
|
+
title: "Disallow Invalid Position Declarations",
|
|
1351
|
+
enabled: false,
|
|
1352
|
+
parameters: [
|
|
1353
|
+
{
|
|
1354
|
+
name: "no-invalid-position-declaration",
|
|
1355
|
+
default: "null",
|
|
1356
|
+
description: "no-invalid-position-declaration"
|
|
1357
|
+
}
|
|
1358
|
+
]
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
id: "Stylelint_no-irregular-whitespace",
|
|
1362
|
+
category: "ErrorProne",
|
|
1363
|
+
severityLevel: "Warning",
|
|
1364
|
+
title: "Disallow Irregular Whitespace",
|
|
1365
|
+
enabled: false,
|
|
1366
|
+
parameters: [
|
|
1367
|
+
{
|
|
1368
|
+
name: "no-irregular-whitespace",
|
|
1369
|
+
default: "true",
|
|
1370
|
+
description: "no-irregular-whitespace"
|
|
1371
|
+
}
|
|
1372
|
+
]
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
id: "Stylelint_no-obsolete-attribute",
|
|
1376
|
+
category: "Compatibility",
|
|
1377
|
+
severityLevel: "Warning",
|
|
1378
|
+
title: "Disallow Use of Obsolete HTML Attributes",
|
|
1379
|
+
enabled: false,
|
|
1380
|
+
parameters: [
|
|
1381
|
+
{
|
|
1382
|
+
name: "no-obsolete-attribute",
|
|
1383
|
+
default: "null",
|
|
1384
|
+
description: "no-obsolete-attribute"
|
|
1385
|
+
}
|
|
1386
|
+
]
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
id: "Stylelint_no-obsolete-element",
|
|
1390
|
+
category: "BestPractice",
|
|
1391
|
+
severityLevel: "Warning",
|
|
1392
|
+
title: "Disallow Obsolete CSS Selectors",
|
|
1393
|
+
enabled: false,
|
|
1394
|
+
parameters: [
|
|
1395
|
+
{
|
|
1396
|
+
name: "no-obsolete-element",
|
|
1397
|
+
default: "null",
|
|
1398
|
+
description: "no-obsolete-element"
|
|
1399
|
+
}
|
|
1400
|
+
]
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
id: "Stylelint_no-outline-none",
|
|
1404
|
+
category: "BestPractice",
|
|
1405
|
+
severityLevel: "High",
|
|
1406
|
+
title: "Disallow outline clearing on focus",
|
|
1407
|
+
enabled: false,
|
|
1408
|
+
parameters: [
|
|
1409
|
+
{
|
|
1410
|
+
name: "no-outline-none",
|
|
1411
|
+
default: "null",
|
|
1412
|
+
description: "no-outline-none"
|
|
1413
|
+
}
|
|
1414
|
+
]
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
id: "Stylelint_no-spread-text",
|
|
1418
|
+
category: "BestPractice",
|
|
1419
|
+
severityLevel: "Info",
|
|
1420
|
+
title: "Enforce Text Width Between 45 and 80 Characters",
|
|
1421
|
+
enabled: false,
|
|
1422
|
+
parameters: [
|
|
1423
|
+
{
|
|
1424
|
+
name: "no-spread-text",
|
|
1425
|
+
default: "null",
|
|
1426
|
+
description: "no-spread-text"
|
|
1427
|
+
}
|
|
1428
|
+
]
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
id: "Stylelint_no-text-align-justify",
|
|
1432
|
+
category: "BestPractice",
|
|
1433
|
+
severityLevel: "Warning",
|
|
1434
|
+
title: "Disallow text-align: justify",
|
|
1435
|
+
enabled: false,
|
|
1436
|
+
parameters: [
|
|
1437
|
+
{
|
|
1438
|
+
name: "no-text-align-justify",
|
|
1439
|
+
default: "null",
|
|
1440
|
+
description: "no-text-align-justify"
|
|
1441
|
+
}
|
|
1442
|
+
]
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
id: "Stylelint_no-unknown-animations",
|
|
1446
|
+
category: "ErrorProne",
|
|
1447
|
+
severityLevel: "Warning",
|
|
1448
|
+
title: "Disallow Unknown Animations",
|
|
1449
|
+
enabled: false,
|
|
1450
|
+
parameters: [
|
|
1451
|
+
{
|
|
1452
|
+
name: "no-unknown-animations",
|
|
1453
|
+
default: "null",
|
|
1454
|
+
description: "no-unknown-animations"
|
|
1455
|
+
}
|
|
1456
|
+
]
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
id: "Stylelint_no-unknown-custom-media",
|
|
1460
|
+
category: "ErrorProne",
|
|
1461
|
+
severityLevel: "High",
|
|
1462
|
+
title: "Disallow Unknown Custom Media Queries",
|
|
1463
|
+
enabled: false,
|
|
1464
|
+
parameters: [
|
|
1465
|
+
{
|
|
1466
|
+
name: "no-unknown-custom-media",
|
|
1467
|
+
default: "null",
|
|
1468
|
+
description: "no-unknown-custom-media"
|
|
1469
|
+
}
|
|
1470
|
+
]
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
id: "Stylelint_no-unknown-custom-properties",
|
|
1474
|
+
category: "ErrorProne",
|
|
1475
|
+
severityLevel: "Warning",
|
|
1476
|
+
title: "Disallow Unknown Custom Properties",
|
|
1477
|
+
enabled: false,
|
|
1478
|
+
parameters: [
|
|
1479
|
+
{
|
|
1480
|
+
name: "no-unknown-custom-properties",
|
|
1481
|
+
default: "null",
|
|
1482
|
+
description: "no-unknown-custom-properties"
|
|
1483
|
+
}
|
|
1484
|
+
]
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
id: "Stylelint_number-max-precision",
|
|
1488
|
+
category: "CodeStyle",
|
|
1489
|
+
severityLevel: "Info",
|
|
1490
|
+
title: "Enforce Maximum Decimal Places in Numbers",
|
|
1491
|
+
enabled: true,
|
|
1492
|
+
parameters: [
|
|
1493
|
+
{
|
|
1494
|
+
name: "number-max-precision",
|
|
1495
|
+
default: "4",
|
|
1496
|
+
description: "number-max-precision"
|
|
1497
|
+
}
|
|
1498
|
+
]
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
id: "Stylelint_property-allowed-list",
|
|
1502
|
+
category: "CodeStyle",
|
|
1503
|
+
severityLevel: "Info",
|
|
1504
|
+
title: "Enforce Allowed CSS Properties List",
|
|
1505
|
+
enabled: true,
|
|
1506
|
+
parameters: [
|
|
1507
|
+
{
|
|
1508
|
+
name: "property-allowed-list",
|
|
1509
|
+
default: "null",
|
|
1510
|
+
description: "property-allowed-list"
|
|
1511
|
+
}
|
|
1512
|
+
]
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
id: "Stylelint_property-disallowed-list",
|
|
1516
|
+
category: "BestPractice",
|
|
1517
|
+
severityLevel: "Warning",
|
|
1518
|
+
title: "Disallow Specific CSS Properties",
|
|
1519
|
+
enabled: true,
|
|
1520
|
+
parameters: [
|
|
1521
|
+
{
|
|
1522
|
+
name: "property-disallowed-list",
|
|
1523
|
+
default: "null",
|
|
1524
|
+
description: "property-disallowed-list"
|
|
1525
|
+
}
|
|
1526
|
+
]
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
id: "Stylelint_property-no-deprecated",
|
|
1530
|
+
category: "ErrorProne",
|
|
1531
|
+
severityLevel: "Warning",
|
|
1532
|
+
title: "Disallow deprecated CSS properties",
|
|
1533
|
+
enabled: false,
|
|
1534
|
+
parameters: [
|
|
1535
|
+
{
|
|
1536
|
+
name: "property-no-deprecated",
|
|
1537
|
+
default: "null",
|
|
1538
|
+
description: "property-no-deprecated"
|
|
1539
|
+
}
|
|
1540
|
+
]
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
id: "Stylelint_property-no-unknown",
|
|
1544
|
+
category: "ErrorProne",
|
|
1545
|
+
severityLevel: "Warning",
|
|
1546
|
+
title: "Disallow Unknown CSS Properties",
|
|
1547
|
+
enabled: false,
|
|
1548
|
+
parameters: [
|
|
1549
|
+
{
|
|
1550
|
+
name: "property-no-unknown",
|
|
1551
|
+
default: "true",
|
|
1552
|
+
description: "property-no-unknown"
|
|
1553
|
+
}
|
|
1554
|
+
]
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
id: "Stylelint_property-no-vendor-prefix",
|
|
1558
|
+
category: "CodeStyle",
|
|
1559
|
+
severityLevel: "Info",
|
|
1560
|
+
title: "Disallow vendor prefixes for properties",
|
|
1561
|
+
enabled: true,
|
|
1562
|
+
parameters: [
|
|
1563
|
+
{
|
|
1564
|
+
name: "property-no-vendor-prefix",
|
|
1565
|
+
default: "true",
|
|
1566
|
+
description: "property-no-vendor-prefix"
|
|
1567
|
+
}
|
|
1568
|
+
]
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
id: "Stylelint_rule-empty-line-before",
|
|
1572
|
+
category: "CodeStyle",
|
|
1573
|
+
severityLevel: "Info",
|
|
1574
|
+
title: "Enforce Empty Line Before Rules",
|
|
1575
|
+
enabled: true,
|
|
1576
|
+
parameters: [
|
|
1577
|
+
{
|
|
1578
|
+
name: "rule-empty-line-before",
|
|
1579
|
+
default: '["always-multi-line",{"except":["first-nested"],"ignore":["after-comment"]}]',
|
|
1580
|
+
description: "rule-empty-line-before"
|
|
1581
|
+
}
|
|
1582
|
+
]
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
id: "Stylelint_rule-selector-property-disallowed-list",
|
|
1586
|
+
category: "CodeStyle",
|
|
1587
|
+
severityLevel: "Info",
|
|
1588
|
+
title: "Disallow Specified Properties for Selectors",
|
|
1589
|
+
enabled: true,
|
|
1590
|
+
parameters: [
|
|
1591
|
+
{
|
|
1592
|
+
name: "rule-selector-property-disallowed-list",
|
|
1593
|
+
default: "null",
|
|
1594
|
+
description: "rule-selector-property-disallowed-list"
|
|
1595
|
+
}
|
|
1596
|
+
]
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
id: "Stylelint_scss_at-each-key-value-single-line",
|
|
1600
|
+
category: "BestPractice",
|
|
1601
|
+
severityLevel: "Warning",
|
|
1602
|
+
title: "Enforce Using @each with Key and Value Instead of map-keys with map-get",
|
|
1603
|
+
enabled: false,
|
|
1604
|
+
parameters: [
|
|
1605
|
+
{
|
|
1606
|
+
name: "at-each-key-value-single-line",
|
|
1607
|
+
default: "null",
|
|
1608
|
+
description: "at-each-key-value-single-line"
|
|
1609
|
+
}
|
|
1610
|
+
]
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
id: "Stylelint_scss_at-else-closing-brace-newline-after",
|
|
1614
|
+
category: "CodeStyle",
|
|
1615
|
+
severityLevel: "Info",
|
|
1616
|
+
title: "Enforce newline after closing brace of @else statements",
|
|
1617
|
+
enabled: false,
|
|
1618
|
+
parameters: [
|
|
1619
|
+
{
|
|
1620
|
+
name: "at-else-closing-brace-newline-after",
|
|
1621
|
+
default: "null",
|
|
1622
|
+
description: "at-else-closing-brace-newline-after"
|
|
1623
|
+
}
|
|
1624
|
+
]
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
id: "Stylelint_scss_at-else-closing-brace-space-after",
|
|
1628
|
+
category: "CodeStyle",
|
|
1629
|
+
severityLevel: "Info",
|
|
1630
|
+
title: "Enforce spacing after closing brace of @else statements",
|
|
1631
|
+
enabled: false,
|
|
1632
|
+
parameters: [
|
|
1633
|
+
{
|
|
1634
|
+
name: "at-else-closing-brace-space-after",
|
|
1635
|
+
default: "null",
|
|
1636
|
+
description: "at-else-closing-brace-space-after"
|
|
1637
|
+
}
|
|
1638
|
+
]
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
id: "Stylelint_scss_at-else-empty-line-before",
|
|
1642
|
+
category: "CodeStyle",
|
|
1643
|
+
severityLevel: "Info",
|
|
1644
|
+
title: "Disallow Empty Line Before @else",
|
|
1645
|
+
enabled: false,
|
|
1646
|
+
parameters: [
|
|
1647
|
+
{
|
|
1648
|
+
name: "at-else-empty-line-before",
|
|
1649
|
+
default: "null",
|
|
1650
|
+
description: "at-else-empty-line-before"
|
|
1651
|
+
}
|
|
1652
|
+
]
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
id: "Stylelint_scss_at-else-if-parentheses-space-before",
|
|
1656
|
+
category: "CodeStyle",
|
|
1657
|
+
severityLevel: "Info",
|
|
1658
|
+
title: "Enforce spacing before @else if parentheses",
|
|
1659
|
+
enabled: false,
|
|
1660
|
+
parameters: [
|
|
1661
|
+
{
|
|
1662
|
+
name: "at-else-if-parentheses-space-before",
|
|
1663
|
+
default: "null",
|
|
1664
|
+
description: "at-else-if-parentheses-space-before"
|
|
1665
|
+
}
|
|
1666
|
+
]
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
id: "Stylelint_scss_at-extend-no-missing-placeholder",
|
|
1670
|
+
category: "BestPractice",
|
|
1671
|
+
severityLevel: "Info",
|
|
1672
|
+
title: "Disallow @extend with Missing Placeholders",
|
|
1673
|
+
enabled: false,
|
|
1674
|
+
parameters: [
|
|
1675
|
+
{
|
|
1676
|
+
name: "at-extend-no-missing-placeholder",
|
|
1677
|
+
default: "null",
|
|
1678
|
+
description: "at-extend-no-missing-placeholder"
|
|
1679
|
+
}
|
|
1680
|
+
]
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
id: "Stylelint_scss_at-function-named-arguments",
|
|
1684
|
+
category: "CodeStyle",
|
|
1685
|
+
severityLevel: "Info",
|
|
1686
|
+
title: "Require Named Parameters in SCSS Function Calls",
|
|
1687
|
+
enabled: false,
|
|
1688
|
+
parameters: [
|
|
1689
|
+
{
|
|
1690
|
+
name: "at-function-named-arguments",
|
|
1691
|
+
default: "null",
|
|
1692
|
+
description: "at-function-named-arguments"
|
|
1693
|
+
}
|
|
1694
|
+
]
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
id: "Stylelint_scss_at-function-parentheses-space-before",
|
|
1698
|
+
category: "CodeStyle",
|
|
1699
|
+
severityLevel: "Info",
|
|
1700
|
+
title: "Enforce spacing before @function parentheses",
|
|
1701
|
+
enabled: false,
|
|
1702
|
+
parameters: [
|
|
1703
|
+
{
|
|
1704
|
+
name: "at-function-parentheses-space-before",
|
|
1705
|
+
default: "null",
|
|
1706
|
+
description: "at-function-parentheses-space-before"
|
|
1707
|
+
}
|
|
1708
|
+
]
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
id: "Stylelint_scss_at-function-pattern",
|
|
1712
|
+
category: "CodeStyle",
|
|
1713
|
+
severityLevel: "Info",
|
|
1714
|
+
title: "Enforce pattern for Sass/SCSS function names",
|
|
1715
|
+
enabled: false,
|
|
1716
|
+
parameters: [
|
|
1717
|
+
{
|
|
1718
|
+
name: "at-function-pattern",
|
|
1719
|
+
default: "null",
|
|
1720
|
+
description: "at-function-pattern"
|
|
1721
|
+
}
|
|
1722
|
+
]
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
id: "Stylelint_scss_at-if-closing-brace-newline-after",
|
|
1726
|
+
category: "CodeStyle",
|
|
1727
|
+
severityLevel: "Info",
|
|
1728
|
+
title: "Require or Disallow Newline After Closing Brace of @if Statements",
|
|
1729
|
+
enabled: false,
|
|
1730
|
+
parameters: [
|
|
1731
|
+
{
|
|
1732
|
+
name: "at-if-closing-brace-newline-after",
|
|
1733
|
+
default: "null",
|
|
1734
|
+
description: "at-if-closing-brace-newline-after"
|
|
1735
|
+
}
|
|
1736
|
+
]
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
id: "Stylelint_scss_at-if-closing-brace-space-after",
|
|
1740
|
+
category: "CodeStyle",
|
|
1741
|
+
severityLevel: "Info",
|
|
1742
|
+
title: "Enforce spacing after closing brace of @if statements",
|
|
1743
|
+
enabled: false,
|
|
1744
|
+
parameters: [
|
|
1745
|
+
{
|
|
1746
|
+
name: "at-if-closing-brace-space-after",
|
|
1747
|
+
default: "null",
|
|
1748
|
+
description: "at-if-closing-brace-space-after"
|
|
1749
|
+
}
|
|
1750
|
+
]
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
id: "Stylelint_scss_at-if-no-null",
|
|
1754
|
+
category: "CodeStyle",
|
|
1755
|
+
severityLevel: "Info",
|
|
1756
|
+
title: "Avoid Explicit Equality Comparison to Null in Sass",
|
|
1757
|
+
enabled: false,
|
|
1758
|
+
parameters: [
|
|
1759
|
+
{
|
|
1760
|
+
name: "at-if-no-null",
|
|
1761
|
+
default: "null",
|
|
1762
|
+
description: "at-if-no-null"
|
|
1763
|
+
}
|
|
1764
|
+
]
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
id: "Stylelint_scss_at-import-no-partial-leading-underscore",
|
|
1768
|
+
category: "CodeStyle",
|
|
1769
|
+
severityLevel: "Info",
|
|
1770
|
+
title: "Disallow Leading Underscore in Partial Names in @import",
|
|
1771
|
+
enabled: false,
|
|
1772
|
+
parameters: [
|
|
1773
|
+
{
|
|
1774
|
+
name: "at-import-no-partial-leading-underscore",
|
|
1775
|
+
default: "null",
|
|
1776
|
+
description: "at-import-no-partial-leading-underscore"
|
|
1777
|
+
}
|
|
1778
|
+
]
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
id: "Stylelint_scss_at-import-partial-extension",
|
|
1782
|
+
category: "CodeStyle",
|
|
1783
|
+
severityLevel: "Info",
|
|
1784
|
+
title: "Require or Disallow Extension in @import Commands",
|
|
1785
|
+
enabled: false,
|
|
1786
|
+
parameters: [
|
|
1787
|
+
{
|
|
1788
|
+
name: "at-import-partial-extension",
|
|
1789
|
+
default: "null",
|
|
1790
|
+
description: "at-import-partial-extension"
|
|
1791
|
+
}
|
|
1792
|
+
]
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
id: "Stylelint_scss_at-import-partial-extension-allowed-list",
|
|
1796
|
+
category: "CodeStyle",
|
|
1797
|
+
severityLevel: "Info",
|
|
1798
|
+
title: "Enforce Allowed File Extensions for Partial Names in @import Commands",
|
|
1799
|
+
enabled: false,
|
|
1800
|
+
parameters: [
|
|
1801
|
+
{
|
|
1802
|
+
name: "at-import-partial-extension-allowed-list",
|
|
1803
|
+
default: "null",
|
|
1804
|
+
description: "at-import-partial-extension-allowed-list"
|
|
1805
|
+
}
|
|
1806
|
+
]
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
id: "Stylelint_scss_at-import-partial-extension-blacklist",
|
|
1810
|
+
category: "BestPractice",
|
|
1811
|
+
severityLevel: "Info",
|
|
1812
|
+
title: "Disallow Certain File Extensions in SCSS @import Partial Names",
|
|
1813
|
+
enabled: false,
|
|
1814
|
+
parameters: [
|
|
1815
|
+
{
|
|
1816
|
+
name: "at-import-partial-extension-blacklist",
|
|
1817
|
+
default: "null",
|
|
1818
|
+
description: "at-import-partial-extension-blacklist"
|
|
1819
|
+
}
|
|
1820
|
+
]
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
id: "Stylelint_scss_at-import-partial-extension-disallowed-list",
|
|
1824
|
+
category: "CodeStyle",
|
|
1825
|
+
severityLevel: "Info",
|
|
1826
|
+
title: "Disallow Specific File Extensions for Partial Names in @import Commands",
|
|
1827
|
+
enabled: false,
|
|
1828
|
+
parameters: [
|
|
1829
|
+
{
|
|
1830
|
+
name: "at-import-partial-extension-disallowed-list",
|
|
1831
|
+
default: "null",
|
|
1832
|
+
description: "at-import-partial-extension-disallowed-list"
|
|
1833
|
+
}
|
|
1834
|
+
]
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
id: "Stylelint_scss_at-import-partial-extension-whitelist",
|
|
1838
|
+
category: "BestPractice",
|
|
1839
|
+
severityLevel: "Warning",
|
|
1840
|
+
title: "Enforce Whitelist of Allowed File Extensions for Partial Names in @import Commands",
|
|
1841
|
+
enabled: false,
|
|
1842
|
+
parameters: [
|
|
1843
|
+
{
|
|
1844
|
+
name: "at-import-partial-extension-whitelist",
|
|
1845
|
+
default: "null",
|
|
1846
|
+
description: "at-import-partial-extension-whitelist"
|
|
1847
|
+
}
|
|
1848
|
+
]
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
id: "Stylelint_scss_at-mixin-argumentless-call-parentheses",
|
|
1852
|
+
category: "CodeStyle",
|
|
1853
|
+
severityLevel: "Info",
|
|
1854
|
+
title: "Enforce Parentheses in Argumentless @mixin Calls",
|
|
1855
|
+
enabled: false,
|
|
1856
|
+
parameters: [
|
|
1857
|
+
{
|
|
1858
|
+
name: "at-mixin-argumentless-call-parentheses",
|
|
1859
|
+
default: "null",
|
|
1860
|
+
description: "at-mixin-argumentless-call-parentheses"
|
|
1861
|
+
}
|
|
1862
|
+
]
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
id: "Stylelint_scss_at-mixin-named-arguments",
|
|
1866
|
+
category: "CodeStyle",
|
|
1867
|
+
severityLevel: "Info",
|
|
1868
|
+
title: "Enforce named parameters in SCSS @mixin calls",
|
|
1869
|
+
enabled: false,
|
|
1870
|
+
parameters: [
|
|
1871
|
+
{
|
|
1872
|
+
name: "at-mixin-named-arguments",
|
|
1873
|
+
default: "null",
|
|
1874
|
+
description: "at-mixin-named-arguments"
|
|
1875
|
+
}
|
|
1876
|
+
]
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
id: "Stylelint_scss_at-mixin-no-risky-nesting-selector",
|
|
1880
|
+
category: "BestPractice",
|
|
1881
|
+
severityLevel: "Warning",
|
|
1882
|
+
title: "Disallow Risky Nesting Selectors Within a Mixin",
|
|
1883
|
+
enabled: false,
|
|
1884
|
+
parameters: [
|
|
1885
|
+
{
|
|
1886
|
+
name: "at-mixin-no-risky-nesting-selector",
|
|
1887
|
+
default: "null",
|
|
1888
|
+
description: "at-mixin-no-risky-nesting-selector"
|
|
1889
|
+
}
|
|
1890
|
+
]
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
id: "Stylelint_scss_at-mixin-parentheses-space-before",
|
|
1894
|
+
category: "CodeStyle",
|
|
1895
|
+
severityLevel: "Info",
|
|
1896
|
+
title: "Enforce space before @mixin parentheses",
|
|
1897
|
+
enabled: false,
|
|
1898
|
+
parameters: [
|
|
1899
|
+
{
|
|
1900
|
+
name: "at-mixin-parentheses-space-before",
|
|
1901
|
+
default: "null",
|
|
1902
|
+
description: "at-mixin-parentheses-space-before"
|
|
1903
|
+
}
|
|
1904
|
+
]
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
id: "Stylelint_scss_at-mixin-pattern",
|
|
1908
|
+
category: "CodeStyle",
|
|
1909
|
+
severityLevel: "Info",
|
|
1910
|
+
title: "Enforce Pattern for Sass/SCSS Mixin Names",
|
|
1911
|
+
enabled: false,
|
|
1912
|
+
parameters: [
|
|
1913
|
+
{
|
|
1914
|
+
name: "at-mixin-pattern",
|
|
1915
|
+
default: "null",
|
|
1916
|
+
description: "at-mixin-pattern"
|
|
1917
|
+
}
|
|
1918
|
+
]
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
id: "Stylelint_scss_at-root-no-redundant",
|
|
1922
|
+
category: "BestPractice",
|
|
1923
|
+
severityLevel: "Info",
|
|
1924
|
+
title: "Disallow redundant @at-root rule",
|
|
1925
|
+
enabled: false,
|
|
1926
|
+
parameters: [
|
|
1927
|
+
{
|
|
1928
|
+
name: "at-root-no-redundant",
|
|
1929
|
+
default: "null",
|
|
1930
|
+
description: "at-root-no-redundant"
|
|
1931
|
+
}
|
|
1932
|
+
]
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
id: "Stylelint_scss_at-rule-conditional-no-parentheses",
|
|
1936
|
+
category: "CodeStyle",
|
|
1937
|
+
severityLevel: "Info",
|
|
1938
|
+
title: "Disallow Parentheses in SCSS Conditional At-Rules",
|
|
1939
|
+
enabled: false,
|
|
1940
|
+
parameters: [
|
|
1941
|
+
{
|
|
1942
|
+
name: "at-rule-conditional-no-parentheses",
|
|
1943
|
+
default: "null",
|
|
1944
|
+
description: "at-rule-conditional-no-parentheses"
|
|
1945
|
+
}
|
|
1946
|
+
]
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
id: "Stylelint_scss_at-rule-no-unknown",
|
|
1950
|
+
category: "ErrorProne",
|
|
1951
|
+
severityLevel: "Warning",
|
|
1952
|
+
title: "Disallow Unknown At-Rules in SCSS",
|
|
1953
|
+
enabled: false,
|
|
1954
|
+
parameters: [
|
|
1955
|
+
{
|
|
1956
|
+
name: "at-rule-no-unknown",
|
|
1957
|
+
default: "true",
|
|
1958
|
+
description: "at-rule-no-unknown"
|
|
1959
|
+
}
|
|
1960
|
+
]
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
id: "Stylelint_scss_at-use-no-redundant-alias",
|
|
1964
|
+
category: "CodeStyle",
|
|
1965
|
+
severityLevel: "Info",
|
|
1966
|
+
title: "Disallow Redundant Namespace Aliases in SCSS @use",
|
|
1967
|
+
enabled: false,
|
|
1968
|
+
parameters: [
|
|
1969
|
+
{
|
|
1970
|
+
name: "at-use-no-redundant-alias",
|
|
1971
|
+
default: "null",
|
|
1972
|
+
description: "at-use-no-redundant-alias"
|
|
1973
|
+
}
|
|
1974
|
+
]
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
id: "Stylelint_scss_at-use-no-unnamespaced",
|
|
1978
|
+
category: "BestPractice",
|
|
1979
|
+
severityLevel: "Warning",
|
|
1980
|
+
title: "Disallow usage of @use without a namespace",
|
|
1981
|
+
enabled: false,
|
|
1982
|
+
parameters: [
|
|
1983
|
+
{
|
|
1984
|
+
name: "at-use-no-unnamespaced",
|
|
1985
|
+
default: "null",
|
|
1986
|
+
description: "at-use-no-unnamespaced"
|
|
1987
|
+
}
|
|
1988
|
+
]
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
id: "Stylelint_scss_block-no-redundant-nesting",
|
|
1992
|
+
category: "CodeStyle",
|
|
1993
|
+
severityLevel: "Info",
|
|
1994
|
+
title: "Disallow Redundant Nesting in SCSS Blocks",
|
|
1995
|
+
enabled: false,
|
|
1996
|
+
parameters: [
|
|
1997
|
+
{
|
|
1998
|
+
name: "block-no-redundant-nesting",
|
|
1999
|
+
default: "null",
|
|
2000
|
+
description: "block-no-redundant-nesting"
|
|
2001
|
+
}
|
|
2002
|
+
]
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
id: "Stylelint_scss_comment-no-empty",
|
|
2006
|
+
category: "CodeStyle",
|
|
2007
|
+
severityLevel: "Info",
|
|
2008
|
+
title: "Disallow Empty Comments in SCSS",
|
|
2009
|
+
enabled: false,
|
|
2010
|
+
parameters: [
|
|
2011
|
+
{
|
|
2012
|
+
name: "comment-no-empty",
|
|
2013
|
+
default: "true",
|
|
2014
|
+
description: "comment-no-empty"
|
|
2015
|
+
}
|
|
2016
|
+
]
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
id: "Stylelint_scss_comment-no-loud",
|
|
2020
|
+
category: "CodeStyle",
|
|
2021
|
+
severityLevel: "Info",
|
|
2022
|
+
title: "Disallow Block Comments",
|
|
2023
|
+
enabled: false,
|
|
2024
|
+
parameters: [
|
|
2025
|
+
{
|
|
2026
|
+
name: "comment-no-loud",
|
|
2027
|
+
default: "null",
|
|
2028
|
+
description: "comment-no-loud"
|
|
2029
|
+
}
|
|
2030
|
+
]
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
id: "Stylelint_scss_declaration-nested-properties",
|
|
2034
|
+
category: "CodeStyle",
|
|
2035
|
+
severityLevel: "Info",
|
|
2036
|
+
title: "Enforce declaration nesting for properties with dashes",
|
|
2037
|
+
enabled: false,
|
|
2038
|
+
parameters: [
|
|
2039
|
+
{
|
|
2040
|
+
name: "declaration-nested-properties",
|
|
2041
|
+
default: "null",
|
|
2042
|
+
description: "declaration-nested-properties"
|
|
2043
|
+
}
|
|
2044
|
+
]
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
id: "Stylelint_scss_declaration-nested-properties-no-divided-groups",
|
|
2048
|
+
category: "CodeStyle",
|
|
2049
|
+
severityLevel: "Info",
|
|
2050
|
+
title: "Disallow Divided Groups of Nested Properties with the Same Namespace",
|
|
2051
|
+
enabled: false,
|
|
2052
|
+
parameters: [
|
|
2053
|
+
{
|
|
2054
|
+
name: "declaration-nested-properties-no-divided-groups",
|
|
2055
|
+
default: "null",
|
|
2056
|
+
description: "declaration-nested-properties-no-divided-groups"
|
|
2057
|
+
}
|
|
2058
|
+
]
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
id: "Stylelint_scss_declaration-property-value-no-unknown",
|
|
2062
|
+
category: "ErrorProne",
|
|
2063
|
+
severityLevel: "High",
|
|
2064
|
+
title: "Disallow Unknown Values for CSS Property Declarations",
|
|
2065
|
+
enabled: false,
|
|
2066
|
+
parameters: [
|
|
2067
|
+
{
|
|
2068
|
+
name: "declaration-property-value-no-unknown",
|
|
2069
|
+
default: "null",
|
|
2070
|
+
description: "declaration-property-value-no-unknown"
|
|
2071
|
+
}
|
|
2072
|
+
]
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
id: "Stylelint_scss_dimension-no-non-numeric-values",
|
|
2076
|
+
category: "ErrorProne",
|
|
2077
|
+
severityLevel: "Warning",
|
|
2078
|
+
title: "Enforce Numeric Values with Units Using Arithmetic in SCSS",
|
|
2079
|
+
enabled: false,
|
|
2080
|
+
parameters: [
|
|
2081
|
+
{
|
|
2082
|
+
name: "dimension-no-non-numeric-values",
|
|
2083
|
+
default: "null",
|
|
2084
|
+
description: "dimension-no-non-numeric-values"
|
|
2085
|
+
}
|
|
2086
|
+
]
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
id: "Stylelint_scss_dollar-variable-colon-newline-after",
|
|
2090
|
+
category: "CodeStyle",
|
|
2091
|
+
severityLevel: "Info",
|
|
2092
|
+
title: "Require newline after colon in $-variable declarations",
|
|
2093
|
+
enabled: false,
|
|
2094
|
+
parameters: [
|
|
2095
|
+
{
|
|
2096
|
+
name: "dollar-variable-colon-newline-after",
|
|
2097
|
+
default: "null",
|
|
2098
|
+
description: "dollar-variable-colon-newline-after"
|
|
2099
|
+
}
|
|
2100
|
+
]
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
id: "Stylelint_scss_dollar-variable-colon-space-after",
|
|
2104
|
+
category: "CodeStyle",
|
|
2105
|
+
severityLevel: "Info",
|
|
2106
|
+
title: "Enforce whitespace after colon in SCSS $-variable declarations",
|
|
2107
|
+
enabled: false,
|
|
2108
|
+
parameters: [
|
|
2109
|
+
{
|
|
2110
|
+
name: "dollar-variable-colon-space-after",
|
|
2111
|
+
default: "null",
|
|
2112
|
+
description: "dollar-variable-colon-space-after"
|
|
2113
|
+
}
|
|
2114
|
+
]
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
id: "Stylelint_scss_dollar-variable-colon-space-before",
|
|
2118
|
+
category: "CodeStyle",
|
|
2119
|
+
severityLevel: "Info",
|
|
2120
|
+
title: "Enforce spacing before colon in SCSS `$`-variable declarations",
|
|
2121
|
+
enabled: false,
|
|
2122
|
+
parameters: [
|
|
2123
|
+
{
|
|
2124
|
+
name: "dollar-variable-colon-space-before",
|
|
2125
|
+
default: "null",
|
|
2126
|
+
description: "dollar-variable-colon-space-before"
|
|
2127
|
+
}
|
|
2128
|
+
]
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
id: "Stylelint_scss_dollar-variable-default",
|
|
2132
|
+
category: "BestPractice",
|
|
2133
|
+
severityLevel: "Info",
|
|
2134
|
+
title: "Require !default Flag for $-Variable Declarations",
|
|
2135
|
+
enabled: false,
|
|
2136
|
+
parameters: [
|
|
2137
|
+
{
|
|
2138
|
+
name: "dollar-variable-default",
|
|
2139
|
+
default: "null",
|
|
2140
|
+
description: "dollar-variable-default"
|
|
2141
|
+
}
|
|
2142
|
+
]
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
id: "Stylelint_scss_dollar-variable-empty-line-after",
|
|
2146
|
+
category: "CodeStyle",
|
|
2147
|
+
severityLevel: "Info",
|
|
2148
|
+
title: "Enforce empty line after $-variable declarations",
|
|
2149
|
+
enabled: false,
|
|
2150
|
+
parameters: [
|
|
2151
|
+
{
|
|
2152
|
+
name: "dollar-variable-empty-line-after",
|
|
2153
|
+
default: "null",
|
|
2154
|
+
description: "dollar-variable-empty-line-after"
|
|
2155
|
+
}
|
|
2156
|
+
]
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
id: "Stylelint_scss_dollar-variable-empty-line-before",
|
|
2160
|
+
category: "CodeStyle",
|
|
2161
|
+
severityLevel: "Info",
|
|
2162
|
+
title: "Enforce Empty Line Before `$`-Variable Declarations in SCSS",
|
|
2163
|
+
enabled: false,
|
|
2164
|
+
parameters: [
|
|
2165
|
+
{
|
|
2166
|
+
name: "dollar-variable-empty-line-before",
|
|
2167
|
+
default: "null",
|
|
2168
|
+
description: "dollar-variable-empty-line-before"
|
|
2169
|
+
}
|
|
2170
|
+
]
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
id: "Stylelint_scss_dollar-variable-first-in-block",
|
|
2174
|
+
category: "CodeStyle",
|
|
2175
|
+
severityLevel: "Info",
|
|
2176
|
+
title: "Require $-variable Declarations to be First in a Block",
|
|
2177
|
+
enabled: false,
|
|
2178
|
+
parameters: [
|
|
2179
|
+
{
|
|
2180
|
+
name: "dollar-variable-first-in-block",
|
|
2181
|
+
default: "null",
|
|
2182
|
+
description: "dollar-variable-first-in-block"
|
|
2183
|
+
}
|
|
2184
|
+
]
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
id: "Stylelint_scss_dollar-variable-no-missing-interpolation",
|
|
2188
|
+
category: "ErrorProne",
|
|
2189
|
+
severityLevel: "Warning",
|
|
2190
|
+
title: "Disallow Sass Variables Without Interpolation in CSS Custom Identifiers",
|
|
2191
|
+
enabled: false,
|
|
2192
|
+
parameters: [
|
|
2193
|
+
{
|
|
2194
|
+
name: "dollar-variable-no-missing-interpolation",
|
|
2195
|
+
default: "null",
|
|
2196
|
+
description: "dollar-variable-no-missing-interpolation"
|
|
2197
|
+
}
|
|
2198
|
+
]
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
id: "Stylelint_scss_dollar-variable-no-namespaced-assignment",
|
|
2202
|
+
category: "BestPractice",
|
|
2203
|
+
severityLevel: "Warning",
|
|
2204
|
+
title: "Disallow Assignment to Namespaced SCSS Variables",
|
|
2205
|
+
enabled: false,
|
|
2206
|
+
parameters: [
|
|
2207
|
+
{
|
|
2208
|
+
name: "dollar-variable-no-namespaced-assignment",
|
|
2209
|
+
default: "null",
|
|
2210
|
+
description: "dollar-variable-no-namespaced-assignment"
|
|
2211
|
+
}
|
|
2212
|
+
]
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
id: "Stylelint_scss_dollar-variable-pattern",
|
|
2216
|
+
category: "CodeStyle",
|
|
2217
|
+
severityLevel: "Info",
|
|
2218
|
+
title: "Enforce Pattern for Sass-like Variables",
|
|
2219
|
+
enabled: false,
|
|
2220
|
+
parameters: [
|
|
2221
|
+
{
|
|
2222
|
+
name: "dollar-variable-pattern",
|
|
2223
|
+
default: "null",
|
|
2224
|
+
description: "dollar-variable-pattern"
|
|
2225
|
+
}
|
|
2226
|
+
]
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
id: "Stylelint_scss_double-slash-comment-empty-line-before",
|
|
2230
|
+
category: "CodeStyle",
|
|
2231
|
+
severityLevel: "Info",
|
|
2232
|
+
title: "Require or disallow an empty line before `//`-comments",
|
|
2233
|
+
enabled: false,
|
|
2234
|
+
parameters: [
|
|
2235
|
+
{
|
|
2236
|
+
name: "double-slash-comment-empty-line-before",
|
|
2237
|
+
default: "null",
|
|
2238
|
+
description: "double-slash-comment-empty-line-before"
|
|
2239
|
+
}
|
|
2240
|
+
]
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
id: "Stylelint_scss_double-slash-comment-inline",
|
|
2244
|
+
category: "CodeStyle",
|
|
2245
|
+
severityLevel: "Info",
|
|
2246
|
+
title: "Enforce or Disallow Inline Double-Slash Comments",
|
|
2247
|
+
enabled: false,
|
|
2248
|
+
parameters: [
|
|
2249
|
+
{
|
|
2250
|
+
name: "double-slash-comment-inline",
|
|
2251
|
+
default: "null",
|
|
2252
|
+
description: "double-slash-comment-inline"
|
|
2253
|
+
}
|
|
2254
|
+
]
|
|
2255
|
+
},
|
|
2256
|
+
{
|
|
2257
|
+
id: "Stylelint_scss_double-slash-comment-whitespace-inside",
|
|
2258
|
+
category: "CodeStyle",
|
|
2259
|
+
severityLevel: "Info",
|
|
2260
|
+
title: "Enforce Whitespace After Double-Slash Comments",
|
|
2261
|
+
enabled: false,
|
|
2262
|
+
parameters: [
|
|
2263
|
+
{
|
|
2264
|
+
name: "double-slash-comment-whitespace-inside",
|
|
2265
|
+
default: "null",
|
|
2266
|
+
description: "double-slash-comment-whitespace-inside"
|
|
2267
|
+
}
|
|
2268
|
+
]
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
id: "Stylelint_scss_function-calculation-no-interpolation",
|
|
2272
|
+
category: "BestPractice",
|
|
2273
|
+
severityLevel: "Info",
|
|
2274
|
+
title: "Disallow Interpolation in calc(), clamp(), min(), and max() Functions",
|
|
2275
|
+
enabled: false,
|
|
2276
|
+
parameters: [
|
|
2277
|
+
{
|
|
2278
|
+
name: "function-calculation-no-interpolation",
|
|
2279
|
+
default: "null",
|
|
2280
|
+
description: "function-calculation-no-interpolation"
|
|
2281
|
+
}
|
|
2282
|
+
]
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
id: "Stylelint_scss_function-color-channel",
|
|
2286
|
+
category: "BestPractice",
|
|
2287
|
+
severityLevel: "Info",
|
|
2288
|
+
title: "Encourage use of color.channel function over deprecated color functions",
|
|
2289
|
+
enabled: false,
|
|
2290
|
+
parameters: [
|
|
2291
|
+
{
|
|
2292
|
+
name: "function-color-channel",
|
|
2293
|
+
default: "null",
|
|
2294
|
+
description: "function-color-channel"
|
|
2295
|
+
}
|
|
2296
|
+
]
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
id: "Stylelint_scss_function-color-relative",
|
|
2300
|
+
category: "BestPractice",
|
|
2301
|
+
severityLevel: "Info",
|
|
2302
|
+
title: "Encourage the use of scale-color function over specific color functions",
|
|
2303
|
+
enabled: false,
|
|
2304
|
+
parameters: [
|
|
2305
|
+
{
|
|
2306
|
+
name: "function-color-relative",
|
|
2307
|
+
default: "null",
|
|
2308
|
+
description: "function-color-relative"
|
|
2309
|
+
}
|
|
2310
|
+
]
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
id: "Stylelint_scss_function-disallowed-list",
|
|
2314
|
+
category: "BestPractice",
|
|
2315
|
+
severityLevel: "Warning",
|
|
2316
|
+
title: "Disallow Specified SCSS Functions",
|
|
2317
|
+
enabled: true,
|
|
2318
|
+
parameters: [
|
|
2319
|
+
{
|
|
2320
|
+
name: "function-disallowed-list",
|
|
2321
|
+
default: "null",
|
|
2322
|
+
description: "function-disallowed-list"
|
|
2323
|
+
}
|
|
2324
|
+
]
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
id: "Stylelint_scss_function-no-unknown",
|
|
2328
|
+
category: "ErrorProne",
|
|
2329
|
+
severityLevel: "Warning",
|
|
2330
|
+
title: "Disallow Unknown SCSS Functions",
|
|
2331
|
+
enabled: false,
|
|
2332
|
+
parameters: [
|
|
2333
|
+
{
|
|
2334
|
+
name: "function-no-unknown",
|
|
2335
|
+
default: "true",
|
|
2336
|
+
description: "function-no-unknown"
|
|
2337
|
+
}
|
|
2338
|
+
]
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
id: "Stylelint_scss_function-quote-no-quoted-strings-inside",
|
|
2342
|
+
category: "BestPractice",
|
|
2343
|
+
severityLevel: "Info",
|
|
2344
|
+
title: "Disallow Quoted Strings Inside the quote Function",
|
|
2345
|
+
enabled: false,
|
|
2346
|
+
parameters: [
|
|
2347
|
+
{
|
|
2348
|
+
name: "function-quote-no-quoted-strings-inside",
|
|
2349
|
+
default: "null",
|
|
2350
|
+
description: "function-quote-no-quoted-strings-inside"
|
|
2351
|
+
}
|
|
2352
|
+
]
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
id: "Stylelint_scss_function-unquote-no-unquoted-strings-inside",
|
|
2356
|
+
category: "BestPractice",
|
|
2357
|
+
severityLevel: "Info",
|
|
2358
|
+
title: "Disallow Unquoted Strings Inside the unquote Function",
|
|
2359
|
+
enabled: false,
|
|
2360
|
+
parameters: [
|
|
2361
|
+
{
|
|
2362
|
+
name: "function-unquote-no-unquoted-strings-inside",
|
|
2363
|
+
default: "null",
|
|
2364
|
+
description: "function-unquote-no-unquoted-strings-inside"
|
|
2365
|
+
}
|
|
2366
|
+
]
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
id: "Stylelint_scss_load-no-partial-leading-underscore",
|
|
2370
|
+
category: "BestPractice",
|
|
2371
|
+
severityLevel: "Warning",
|
|
2372
|
+
title: "Disallow Leading Underscore in SCSS Partial Names in Imports and Loads",
|
|
2373
|
+
enabled: false,
|
|
2374
|
+
parameters: [
|
|
2375
|
+
{
|
|
2376
|
+
name: "load-no-partial-leading-underscore",
|
|
2377
|
+
default: "null",
|
|
2378
|
+
description: "load-no-partial-leading-underscore"
|
|
2379
|
+
}
|
|
2380
|
+
]
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
id: "Stylelint_scss_load-partial-extension",
|
|
2384
|
+
category: "CodeStyle",
|
|
2385
|
+
severityLevel: "Info",
|
|
2386
|
+
title: "Enforce Extension Usage in @import, @use, @forward, and meta.load-css Commands",
|
|
2387
|
+
enabled: false,
|
|
2388
|
+
parameters: [
|
|
2389
|
+
{
|
|
2390
|
+
name: "load-partial-extension",
|
|
2391
|
+
default: "null",
|
|
2392
|
+
description: "load-partial-extension"
|
|
2393
|
+
}
|
|
2394
|
+
]
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
id: "Stylelint_scss_map-keys-quotes",
|
|
2398
|
+
category: "CodeStyle",
|
|
2399
|
+
severityLevel: "Info",
|
|
2400
|
+
title: "Require Quoted Keys in Sass Maps",
|
|
2401
|
+
enabled: false,
|
|
2402
|
+
parameters: [
|
|
2403
|
+
{
|
|
2404
|
+
name: "map-keys-quotes",
|
|
2405
|
+
default: "null",
|
|
2406
|
+
description: "map-keys-quotes"
|
|
2407
|
+
}
|
|
2408
|
+
]
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
id: "Stylelint_scss_media-feature-value-dollar-variable",
|
|
2412
|
+
category: "CodeStyle",
|
|
2413
|
+
severityLevel: "Info",
|
|
2414
|
+
title: "Require or Disallow Dollar Variables in Media Feature Values",
|
|
2415
|
+
enabled: false,
|
|
2416
|
+
parameters: [
|
|
2417
|
+
{
|
|
2418
|
+
name: "media-feature-value-dollar-variable",
|
|
2419
|
+
default: "null",
|
|
2420
|
+
description: "media-feature-value-dollar-variable"
|
|
2421
|
+
}
|
|
2422
|
+
]
|
|
2423
|
+
},
|
|
2424
|
+
{
|
|
2425
|
+
id: "Stylelint_scss_no-dollar-variables",
|
|
2426
|
+
category: "CodeStyle",
|
|
2427
|
+
severityLevel: "Info",
|
|
2428
|
+
title: "Disallow Dollar Variables in Stylesheets",
|
|
2429
|
+
enabled: false,
|
|
2430
|
+
parameters: [
|
|
2431
|
+
{
|
|
2432
|
+
name: "no-dollar-variables",
|
|
2433
|
+
default: "null",
|
|
2434
|
+
description: "no-dollar-variables"
|
|
2435
|
+
}
|
|
2436
|
+
]
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
id: "Stylelint_scss_no-duplicate-dollar-variables",
|
|
2440
|
+
category: "BestPractice",
|
|
2441
|
+
severityLevel: "Warning",
|
|
2442
|
+
title: "Disallow Duplicate Dollar Variables Within a Stylesheet",
|
|
2443
|
+
enabled: false,
|
|
2444
|
+
parameters: [
|
|
2445
|
+
{
|
|
2446
|
+
name: "no-duplicate-dollar-variables",
|
|
2447
|
+
default: "null",
|
|
2448
|
+
description: "no-duplicate-dollar-variables"
|
|
2449
|
+
}
|
|
2450
|
+
]
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
id: "Stylelint_scss_no-duplicate-load-rules",
|
|
2454
|
+
category: "BestPractice",
|
|
2455
|
+
severityLevel: "Warning",
|
|
2456
|
+
title: "Disallow Duplicate @import, @use and @forward Rules",
|
|
2457
|
+
enabled: false,
|
|
2458
|
+
parameters: [
|
|
2459
|
+
{
|
|
2460
|
+
name: "no-duplicate-load-rules",
|
|
2461
|
+
default: "null",
|
|
2462
|
+
description: "no-duplicate-load-rules"
|
|
2463
|
+
}
|
|
2464
|
+
]
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
id: "Stylelint_scss_no-duplicate-mixins",
|
|
2468
|
+
category: "BestPractice",
|
|
2469
|
+
severityLevel: "Warning",
|
|
2470
|
+
title: "Disallow Duplicate Mixins Within a Stylesheet",
|
|
2471
|
+
enabled: false,
|
|
2472
|
+
parameters: [
|
|
2473
|
+
{
|
|
2474
|
+
name: "no-duplicate-mixins",
|
|
2475
|
+
default: "null",
|
|
2476
|
+
description: "no-duplicate-mixins"
|
|
2477
|
+
}
|
|
2478
|
+
]
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
id: "Stylelint_scss_no-global-function-names",
|
|
2482
|
+
category: "Compatibility",
|
|
2483
|
+
severityLevel: "Warning",
|
|
2484
|
+
title: "Disallow Global Function Names in Sass",
|
|
2485
|
+
enabled: false,
|
|
2486
|
+
parameters: [
|
|
2487
|
+
{
|
|
2488
|
+
name: "no-global-function-names",
|
|
2489
|
+
default: "null",
|
|
2490
|
+
description: "no-global-function-names"
|
|
2491
|
+
}
|
|
2492
|
+
]
|
|
2493
|
+
},
|
|
2494
|
+
{
|
|
2495
|
+
id: "Stylelint_scss_no-unused-private-members",
|
|
2496
|
+
category: "UnusedCode",
|
|
2497
|
+
severityLevel: "Warning",
|
|
2498
|
+
title: "Disallow unused private members",
|
|
2499
|
+
enabled: false,
|
|
2500
|
+
parameters: [
|
|
2501
|
+
{
|
|
2502
|
+
name: "no-unused-private-members",
|
|
2503
|
+
default: "null",
|
|
2504
|
+
description: "no-unused-private-members"
|
|
2505
|
+
}
|
|
2506
|
+
]
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
id: "Stylelint_scss_operator-no-newline-after",
|
|
2510
|
+
category: "CodeStyle",
|
|
2511
|
+
severityLevel: "Info",
|
|
2512
|
+
title: "Disallow Linebreaks After Sass Operators",
|
|
2513
|
+
enabled: false,
|
|
2514
|
+
parameters: [
|
|
2515
|
+
{
|
|
2516
|
+
name: "operator-no-newline-after",
|
|
2517
|
+
default: "null",
|
|
2518
|
+
description: "operator-no-newline-after"
|
|
2519
|
+
}
|
|
2520
|
+
]
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
id: "Stylelint_scss_operator-no-newline-before",
|
|
2524
|
+
category: "CodeStyle",
|
|
2525
|
+
severityLevel: "Info",
|
|
2526
|
+
title: "Disallow Linebreaks Before Sass Operators",
|
|
2527
|
+
enabled: false,
|
|
2528
|
+
parameters: [
|
|
2529
|
+
{
|
|
2530
|
+
name: "operator-no-newline-before",
|
|
2531
|
+
default: "null",
|
|
2532
|
+
description: "operator-no-newline-before"
|
|
2533
|
+
}
|
|
2534
|
+
]
|
|
2535
|
+
},
|
|
2536
|
+
{
|
|
2537
|
+
id: "Stylelint_scss_operator-no-unspaced",
|
|
2538
|
+
category: "CodeStyle",
|
|
2539
|
+
severityLevel: "Info",
|
|
2540
|
+
title: "Disallow Unspaced Operators in Sass Operations",
|
|
2541
|
+
enabled: false,
|
|
2542
|
+
parameters: [
|
|
2543
|
+
{
|
|
2544
|
+
name: "operator-no-unspaced",
|
|
2545
|
+
default: "null",
|
|
2546
|
+
description: "operator-no-unspaced"
|
|
2547
|
+
}
|
|
2548
|
+
]
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
id: "Stylelint_scss_partial-no-import",
|
|
2552
|
+
category: "BestPractice",
|
|
2553
|
+
severityLevel: "Warning",
|
|
2554
|
+
title: "Disallow non-CSS @import statements in SCSS partial files",
|
|
2555
|
+
enabled: false,
|
|
2556
|
+
parameters: [
|
|
2557
|
+
{
|
|
2558
|
+
name: "partial-no-import",
|
|
2559
|
+
default: "null",
|
|
2560
|
+
description: "partial-no-import"
|
|
2561
|
+
}
|
|
2562
|
+
]
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
id: "Stylelint_scss_percent-placeholder-pattern",
|
|
2566
|
+
category: "CodeStyle",
|
|
2567
|
+
severityLevel: "Info",
|
|
2568
|
+
title: "Enforce Pattern for % Placeholders in SCSS",
|
|
2569
|
+
enabled: false,
|
|
2570
|
+
parameters: [
|
|
2571
|
+
{
|
|
2572
|
+
name: "percent-placeholder-pattern",
|
|
2573
|
+
default: "null",
|
|
2574
|
+
description: "percent-placeholder-pattern"
|
|
2575
|
+
}
|
|
2576
|
+
]
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
id: "Stylelint_scss_property-no-unknown",
|
|
2580
|
+
category: "ErrorProne",
|
|
2581
|
+
severityLevel: "High",
|
|
2582
|
+
title: "Disallow Unknown CSS Properties",
|
|
2583
|
+
enabled: false,
|
|
2584
|
+
parameters: [
|
|
2585
|
+
{
|
|
2586
|
+
name: "property-no-unknown",
|
|
2587
|
+
default: "true",
|
|
2588
|
+
description: "property-no-unknown"
|
|
2589
|
+
}
|
|
2590
|
+
]
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
id: "Stylelint_scss_selector-nest-combinators",
|
|
2594
|
+
category: "CodeStyle",
|
|
2595
|
+
severityLevel: "Info",
|
|
2596
|
+
title: "Enforce or Disallow Nesting of Combinators in Selectors",
|
|
2597
|
+
enabled: false,
|
|
2598
|
+
parameters: [
|
|
2599
|
+
{
|
|
2600
|
+
name: "selector-nest-combinators",
|
|
2601
|
+
default: "null",
|
|
2602
|
+
description: "selector-nest-combinators"
|
|
2603
|
+
}
|
|
2604
|
+
]
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
id: "Stylelint_scss_selector-no-redundant-nesting-selector",
|
|
2608
|
+
category: "CodeStyle",
|
|
2609
|
+
severityLevel: "Info",
|
|
2610
|
+
title: "Disallow Redundant Nesting Selectors (&)",
|
|
2611
|
+
enabled: false,
|
|
2612
|
+
parameters: [
|
|
2613
|
+
{
|
|
2614
|
+
name: "selector-no-redundant-nesting-selector",
|
|
2615
|
+
default: "null",
|
|
2616
|
+
description: "selector-no-redundant-nesting-selector"
|
|
2617
|
+
}
|
|
2618
|
+
]
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
id: "Stylelint_scss_selector-no-union-class-name",
|
|
2622
|
+
category: "CodeStyle",
|
|
2623
|
+
severityLevel: "Info",
|
|
2624
|
+
title: "Disallow Union Class Names with Parent Selector",
|
|
2625
|
+
enabled: false,
|
|
2626
|
+
parameters: [
|
|
2627
|
+
{
|
|
2628
|
+
name: "selector-no-union-class-name",
|
|
2629
|
+
default: "null",
|
|
2630
|
+
description: "selector-no-union-class-name"
|
|
2631
|
+
}
|
|
2632
|
+
]
|
|
2633
|
+
},
|
|
2634
|
+
{
|
|
2635
|
+
id: "Stylelint_selector-anb-no-unmatchable",
|
|
2636
|
+
category: "ErrorProne",
|
|
2637
|
+
severityLevel: "Warning",
|
|
2638
|
+
title: "Disallow Unmatchable An+B Selectors",
|
|
2639
|
+
enabled: false,
|
|
2640
|
+
parameters: [
|
|
2641
|
+
{
|
|
2642
|
+
name: "selector-anb-no-unmatchable",
|
|
2643
|
+
default: "true",
|
|
2644
|
+
description: "selector-anb-no-unmatchable"
|
|
2645
|
+
}
|
|
2646
|
+
]
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
id: "Stylelint_selector-attribute-name-disallowed-list",
|
|
2650
|
+
category: "BestPractice",
|
|
2651
|
+
severityLevel: "Warning",
|
|
2652
|
+
title: "Disallow Specified Attribute Names in Selectors",
|
|
2653
|
+
enabled: true,
|
|
2654
|
+
parameters: [
|
|
2655
|
+
{
|
|
2656
|
+
name: "selector-attribute-name-disallowed-list",
|
|
2657
|
+
default: "null",
|
|
2658
|
+
description: "selector-attribute-name-disallowed-list"
|
|
2659
|
+
}
|
|
2660
|
+
]
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
id: "Stylelint_selector-attribute-operator-allowed-list",
|
|
2664
|
+
category: "CodeStyle",
|
|
2665
|
+
severityLevel: "Info",
|
|
2666
|
+
title: "Enforce Allowed Attribute Operators in Selectors",
|
|
2667
|
+
enabled: true,
|
|
2668
|
+
parameters: [
|
|
2669
|
+
{
|
|
2670
|
+
name: "selector-attribute-operator-allowed-list",
|
|
2671
|
+
default: "null",
|
|
2672
|
+
description: "selector-attribute-operator-allowed-list"
|
|
2673
|
+
}
|
|
2674
|
+
]
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
id: "Stylelint_selector-attribute-operator-disallowed-list",
|
|
2678
|
+
category: "CodeStyle",
|
|
2679
|
+
severityLevel: "Info",
|
|
2680
|
+
title: "Disallow Specific Attribute Operators in Selectors",
|
|
2681
|
+
enabled: true,
|
|
2682
|
+
parameters: [
|
|
2683
|
+
{
|
|
2684
|
+
name: "selector-attribute-operator-disallowed-list",
|
|
2685
|
+
default: "null",
|
|
2686
|
+
description: "selector-attribute-operator-disallowed-list"
|
|
2687
|
+
}
|
|
2688
|
+
]
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
id: "Stylelint_selector-attribute-quotes",
|
|
2692
|
+
category: "CodeStyle",
|
|
2693
|
+
severityLevel: "Info",
|
|
2694
|
+
title: "Enforce Quotes for CSS Attribute Selector Values",
|
|
2695
|
+
enabled: true,
|
|
2696
|
+
parameters: [
|
|
2697
|
+
{
|
|
2698
|
+
name: "selector-attribute-quotes",
|
|
2699
|
+
default: "always",
|
|
2700
|
+
description: "selector-attribute-quotes"
|
|
2701
|
+
}
|
|
2702
|
+
]
|
|
2703
|
+
},
|
|
2704
|
+
{
|
|
2705
|
+
id: "Stylelint_selector-class-pattern",
|
|
2706
|
+
category: "CodeStyle",
|
|
2707
|
+
severityLevel: "Info",
|
|
2708
|
+
title: "Enforce Pattern for Class Selectors",
|
|
2709
|
+
enabled: true,
|
|
2710
|
+
parameters: [
|
|
2711
|
+
{
|
|
2712
|
+
name: "selector-class-pattern",
|
|
2713
|
+
default: '["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",{"message":"(selector) => `Expected class selector \\"${selector}\\" to be kebab-case`"}]',
|
|
2714
|
+
description: "selector-class-pattern"
|
|
2715
|
+
}
|
|
2716
|
+
]
|
|
2717
|
+
},
|
|
2718
|
+
{
|
|
2719
|
+
id: "Stylelint_selector-combinator-allowed-list",
|
|
2720
|
+
category: "CodeStyle",
|
|
2721
|
+
severityLevel: "Info",
|
|
2722
|
+
title: "Enforce Allowed Selector Combinators",
|
|
2723
|
+
enabled: true,
|
|
2724
|
+
parameters: [
|
|
2725
|
+
{
|
|
2726
|
+
name: "selector-combinator-allowed-list",
|
|
2727
|
+
default: "null",
|
|
2728
|
+
description: "selector-combinator-allowed-list"
|
|
2729
|
+
}
|
|
2730
|
+
]
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
id: "Stylelint_selector-combinator-disallowed-list",
|
|
2734
|
+
category: "CodeStyle",
|
|
2735
|
+
severityLevel: "Info",
|
|
2736
|
+
title: "Disallow Specified CSS Selector Combinators",
|
|
2737
|
+
enabled: true,
|
|
2738
|
+
parameters: [
|
|
2739
|
+
{
|
|
2740
|
+
name: "selector-combinator-disallowed-list",
|
|
2741
|
+
default: "null",
|
|
2742
|
+
description: "selector-combinator-disallowed-list"
|
|
2743
|
+
}
|
|
2744
|
+
]
|
|
2745
|
+
},
|
|
2746
|
+
{
|
|
2747
|
+
id: "Stylelint_selector-disallowed-list",
|
|
2748
|
+
category: "BestPractice",
|
|
2749
|
+
severityLevel: "Warning",
|
|
2750
|
+
title: "Disallow Specific CSS Selectors",
|
|
2751
|
+
enabled: true,
|
|
2752
|
+
parameters: [
|
|
2753
|
+
{
|
|
2754
|
+
name: "selector-disallowed-list",
|
|
2755
|
+
default: "null",
|
|
2756
|
+
description: "selector-disallowed-list"
|
|
2757
|
+
}
|
|
2758
|
+
]
|
|
2759
|
+
},
|
|
2760
|
+
{
|
|
2761
|
+
id: "Stylelint_selector-id-pattern",
|
|
2762
|
+
category: "CodeStyle",
|
|
2763
|
+
severityLevel: "Info",
|
|
2764
|
+
title: "Enforce Pattern for ID Selectors",
|
|
2765
|
+
enabled: true,
|
|
2766
|
+
parameters: [
|
|
2767
|
+
{
|
|
2768
|
+
name: "selector-id-pattern",
|
|
2769
|
+
default: '["^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",{"message":"(selector) => `Expected id selector \\"${selector}\\" to be kebab-case`"}]',
|
|
2770
|
+
description: "selector-id-pattern"
|
|
2771
|
+
}
|
|
2772
|
+
]
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
id: "Stylelint_selector-max-attribute",
|
|
2776
|
+
category: "CodeStyle",
|
|
2777
|
+
severityLevel: "Info",
|
|
2778
|
+
title: "Limit the Number of Attribute Selectors in a Selector",
|
|
2779
|
+
enabled: true,
|
|
2780
|
+
parameters: [
|
|
2781
|
+
{
|
|
2782
|
+
name: "selector-max-attribute",
|
|
2783
|
+
default: "null",
|
|
2784
|
+
description: "selector-max-attribute"
|
|
2785
|
+
}
|
|
2786
|
+
]
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
id: "Stylelint_selector-max-class",
|
|
2790
|
+
category: "CodeStyle",
|
|
2791
|
+
severityLevel: "Info",
|
|
2792
|
+
title: "Limit the Number of Classes in a CSS Selector",
|
|
2793
|
+
enabled: true,
|
|
2794
|
+
parameters: [
|
|
2795
|
+
{
|
|
2796
|
+
name: "selector-max-class",
|
|
2797
|
+
default: "null",
|
|
2798
|
+
description: "selector-max-class"
|
|
2799
|
+
}
|
|
2800
|
+
]
|
|
2801
|
+
},
|
|
2802
|
+
{
|
|
2803
|
+
id: "Stylelint_selector-max-combinators",
|
|
2804
|
+
category: "CodeStyle",
|
|
2805
|
+
severityLevel: "Info",
|
|
2806
|
+
title: "Limit the Number of Combinators in a Selector",
|
|
2807
|
+
enabled: true,
|
|
2808
|
+
parameters: [
|
|
2809
|
+
{
|
|
2810
|
+
name: "selector-max-combinators",
|
|
2811
|
+
default: "null",
|
|
2812
|
+
description: "selector-max-combinators"
|
|
2813
|
+
}
|
|
2814
|
+
]
|
|
2815
|
+
},
|
|
2816
|
+
{
|
|
2817
|
+
id: "Stylelint_selector-max-compound-selectors",
|
|
2818
|
+
category: "BestPractice",
|
|
2819
|
+
severityLevel: "Warning",
|
|
2820
|
+
title: "Limit the Number of Compound Selectors in a Selector",
|
|
2821
|
+
enabled: true,
|
|
2822
|
+
parameters: [
|
|
2823
|
+
{
|
|
2824
|
+
name: "selector-max-compound-selectors",
|
|
2825
|
+
default: "null",
|
|
2826
|
+
description: "selector-max-compound-selectors"
|
|
2827
|
+
}
|
|
2828
|
+
]
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
id: "Stylelint_selector-max-id",
|
|
2832
|
+
category: "BestPractice",
|
|
2833
|
+
severityLevel: "Warning",
|
|
2834
|
+
title: "Limit the Number of ID Selectors in a Selector",
|
|
2835
|
+
enabled: true,
|
|
2836
|
+
parameters: [
|
|
2837
|
+
{
|
|
2838
|
+
name: "selector-max-id",
|
|
2839
|
+
default: "null",
|
|
2840
|
+
description: "selector-max-id"
|
|
2841
|
+
}
|
|
2842
|
+
]
|
|
2843
|
+
},
|
|
2844
|
+
{
|
|
2845
|
+
id: "Stylelint_selector-max-pseudo-class",
|
|
2846
|
+
category: "CodeStyle",
|
|
2847
|
+
severityLevel: "Info",
|
|
2848
|
+
title: "Limit the Number of Pseudo-Classes in a Selector",
|
|
2849
|
+
enabled: true,
|
|
2850
|
+
parameters: [
|
|
2851
|
+
{
|
|
2852
|
+
name: "selector-max-pseudo-class",
|
|
2853
|
+
default: "null",
|
|
2854
|
+
description: "selector-max-pseudo-class"
|
|
2855
|
+
}
|
|
2856
|
+
]
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
id: "Stylelint_selector-max-specificity",
|
|
2860
|
+
category: "BestPractice",
|
|
2861
|
+
severityLevel: "Warning",
|
|
2862
|
+
title: "Limit Selector Specificity",
|
|
2863
|
+
enabled: true,
|
|
2864
|
+
parameters: [
|
|
2865
|
+
{
|
|
2866
|
+
name: "selector-max-specificity",
|
|
2867
|
+
default: "null",
|
|
2868
|
+
description: "selector-max-specificity"
|
|
2869
|
+
}
|
|
2870
|
+
]
|
|
2871
|
+
},
|
|
2872
|
+
{
|
|
2873
|
+
id: "Stylelint_selector-max-type",
|
|
2874
|
+
category: "CodeStyle",
|
|
2875
|
+
severityLevel: "Info",
|
|
2876
|
+
title: "Limit the Number of Type Selectors in a Selector",
|
|
2877
|
+
enabled: true,
|
|
2878
|
+
parameters: [
|
|
2879
|
+
{
|
|
2880
|
+
name: "selector-max-type",
|
|
2881
|
+
default: "null",
|
|
2882
|
+
description: "selector-max-type"
|
|
2883
|
+
}
|
|
2884
|
+
]
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
id: "Stylelint_selector-max-universal",
|
|
2888
|
+
category: "Performance",
|
|
2889
|
+
severityLevel: "Warning",
|
|
2890
|
+
title: "Limit the Number of Universal Selectors in a Selector",
|
|
2891
|
+
enabled: true,
|
|
2892
|
+
parameters: [
|
|
2893
|
+
{
|
|
2894
|
+
name: "selector-max-universal",
|
|
2895
|
+
default: "null",
|
|
2896
|
+
description: "selector-max-universal"
|
|
2897
|
+
}
|
|
2898
|
+
]
|
|
2899
|
+
},
|
|
2900
|
+
{
|
|
2901
|
+
id: "Stylelint_selector-nested-pattern",
|
|
2902
|
+
category: "CodeStyle",
|
|
2903
|
+
severityLevel: "Info",
|
|
2904
|
+
title: "Enforce Pattern for Nested Selectors",
|
|
2905
|
+
enabled: true,
|
|
2906
|
+
parameters: [
|
|
2907
|
+
{
|
|
2908
|
+
name: "selector-nested-pattern",
|
|
2909
|
+
default: "null",
|
|
2910
|
+
description: "selector-nested-pattern"
|
|
2911
|
+
}
|
|
2912
|
+
]
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
id: "Stylelint_selector-no-qualifying-type",
|
|
2916
|
+
category: "CodeStyle",
|
|
2917
|
+
severityLevel: "Info",
|
|
2918
|
+
title: "Disallow Qualifying a Selector by Type",
|
|
2919
|
+
enabled: true,
|
|
2920
|
+
parameters: [
|
|
2921
|
+
{
|
|
2922
|
+
name: "selector-no-qualifying-type",
|
|
2923
|
+
default: "null",
|
|
2924
|
+
description: "selector-no-qualifying-type"
|
|
2925
|
+
}
|
|
2926
|
+
]
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
id: "Stylelint_selector-not-notation",
|
|
2930
|
+
category: "Compatibility",
|
|
2931
|
+
severityLevel: "Info",
|
|
2932
|
+
title: "Enforce notation style for :not() pseudo-class selectors",
|
|
2933
|
+
enabled: true,
|
|
2934
|
+
parameters: [
|
|
2935
|
+
{
|
|
2936
|
+
name: "selector-not-notation",
|
|
2937
|
+
default: "complex",
|
|
2938
|
+
description: "selector-not-notation"
|
|
2939
|
+
}
|
|
2940
|
+
]
|
|
2941
|
+
},
|
|
2942
|
+
{
|
|
2943
|
+
id: "Stylelint_selector-no-vendor-prefix",
|
|
2944
|
+
category: "CodeStyle",
|
|
2945
|
+
severityLevel: "Info",
|
|
2946
|
+
title: "Disallow Vendor Prefixes for Selectors",
|
|
2947
|
+
enabled: true,
|
|
2948
|
+
parameters: [
|
|
2949
|
+
{
|
|
2950
|
+
name: "selector-no-vendor-prefix",
|
|
2951
|
+
default: "true",
|
|
2952
|
+
description: "selector-no-vendor-prefix"
|
|
2953
|
+
}
|
|
2954
|
+
]
|
|
2955
|
+
},
|
|
2956
|
+
{
|
|
2957
|
+
id: "Stylelint_selector-pseudo-class-allowed-list",
|
|
2958
|
+
category: "BestPractice",
|
|
2959
|
+
severityLevel: "Info",
|
|
2960
|
+
title: "Enforce Allowed Pseudo-Class Selectors",
|
|
2961
|
+
enabled: true,
|
|
2962
|
+
parameters: [
|
|
2963
|
+
{
|
|
2964
|
+
name: "selector-pseudo-class-allowed-list",
|
|
2965
|
+
default: "null",
|
|
2966
|
+
description: "selector-pseudo-class-allowed-list"
|
|
2967
|
+
}
|
|
2968
|
+
]
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
id: "Stylelint_selector-pseudo-class-disallowed-list",
|
|
2972
|
+
category: "BestPractice",
|
|
2973
|
+
severityLevel: "Info",
|
|
2974
|
+
title: "Disallow Specified Pseudo-Class Selectors",
|
|
2975
|
+
enabled: true,
|
|
2976
|
+
parameters: [
|
|
2977
|
+
{
|
|
2978
|
+
name: "selector-pseudo-class-disallowed-list",
|
|
2979
|
+
default: "null",
|
|
2980
|
+
description: "selector-pseudo-class-disallowed-list"
|
|
2981
|
+
}
|
|
2982
|
+
]
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
id: "Stylelint_selector-pseudo-class-focus",
|
|
2986
|
+
category: "BestPractice",
|
|
2987
|
+
severityLevel: "Warning",
|
|
2988
|
+
title: "Enforce presence of :focus pseudo-class when using :hover",
|
|
2989
|
+
enabled: false,
|
|
2990
|
+
parameters: [
|
|
2991
|
+
{
|
|
2992
|
+
name: "selector-pseudo-class-focus",
|
|
2993
|
+
default: "null",
|
|
2994
|
+
description: "selector-pseudo-class-focus"
|
|
2995
|
+
}
|
|
2996
|
+
]
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
id: "Stylelint_selector-pseudo-class-no-unknown",
|
|
3000
|
+
category: "ErrorProne",
|
|
3001
|
+
severityLevel: "Warning",
|
|
3002
|
+
title: "Disallow unknown pseudo-class selectors",
|
|
3003
|
+
enabled: false,
|
|
3004
|
+
parameters: [
|
|
3005
|
+
{
|
|
3006
|
+
name: "selector-pseudo-class-no-unknown",
|
|
3007
|
+
default: "true",
|
|
3008
|
+
description: "selector-pseudo-class-no-unknown"
|
|
3009
|
+
}
|
|
3010
|
+
]
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
id: "Stylelint_selector-pseudo-element-allowed-list",
|
|
3014
|
+
category: "BestPractice",
|
|
3015
|
+
severityLevel: "Info",
|
|
3016
|
+
title: "Enforce Allowed Pseudo-Element Selectors List",
|
|
3017
|
+
enabled: true,
|
|
3018
|
+
parameters: [
|
|
3019
|
+
{
|
|
3020
|
+
name: "selector-pseudo-element-allowed-list",
|
|
3021
|
+
default: "null",
|
|
3022
|
+
description: "selector-pseudo-element-allowed-list"
|
|
3023
|
+
}
|
|
3024
|
+
]
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
id: "Stylelint_selector-pseudo-element-colon-notation",
|
|
3028
|
+
category: "CodeStyle",
|
|
3029
|
+
severityLevel: "Info",
|
|
3030
|
+
title: "Enforce single or double colon notation for pseudo-element selectors",
|
|
3031
|
+
enabled: true,
|
|
3032
|
+
parameters: [
|
|
3033
|
+
{
|
|
3034
|
+
name: "selector-pseudo-element-colon-notation",
|
|
3035
|
+
default: "double",
|
|
3036
|
+
description: "selector-pseudo-element-colon-notation"
|
|
3037
|
+
}
|
|
3038
|
+
]
|
|
3039
|
+
},
|
|
3040
|
+
{
|
|
3041
|
+
id: "Stylelint_selector-pseudo-element-disallowed-list",
|
|
3042
|
+
category: "BestPractice",
|
|
3043
|
+
severityLevel: "Info",
|
|
3044
|
+
title: "Disallow Specified Pseudo-Element Selectors",
|
|
3045
|
+
enabled: true,
|
|
3046
|
+
parameters: [
|
|
3047
|
+
{
|
|
3048
|
+
name: "selector-pseudo-element-disallowed-list",
|
|
3049
|
+
default: "null",
|
|
3050
|
+
description: "selector-pseudo-element-disallowed-list"
|
|
3051
|
+
}
|
|
3052
|
+
]
|
|
3053
|
+
},
|
|
3054
|
+
{
|
|
3055
|
+
id: "Stylelint_selector-pseudo-element-no-unknown",
|
|
3056
|
+
category: "ErrorProne",
|
|
3057
|
+
severityLevel: "Warning",
|
|
3058
|
+
title: "Disallow Unknown Pseudo-Element Selectors",
|
|
3059
|
+
enabled: false,
|
|
3060
|
+
parameters: [
|
|
3061
|
+
{
|
|
3062
|
+
name: "selector-pseudo-element-no-unknown",
|
|
3063
|
+
default: "true",
|
|
3064
|
+
description: "selector-pseudo-element-no-unknown"
|
|
3065
|
+
}
|
|
3066
|
+
]
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
id: "Stylelint_selector-type-case",
|
|
3070
|
+
category: "CodeStyle",
|
|
3071
|
+
severityLevel: "Info",
|
|
3072
|
+
title: "Enforce case for CSS type selectors",
|
|
3073
|
+
enabled: true,
|
|
3074
|
+
parameters: [
|
|
3075
|
+
{
|
|
3076
|
+
name: "selector-type-case",
|
|
3077
|
+
default: "lower",
|
|
3078
|
+
description: "selector-type-case"
|
|
3079
|
+
}
|
|
3080
|
+
]
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
id: "Stylelint_selector-type-no-unknown",
|
|
3084
|
+
category: "ErrorProne",
|
|
3085
|
+
severityLevel: "Warning",
|
|
3086
|
+
title: "Disallow Unknown Type Selectors",
|
|
3087
|
+
enabled: false,
|
|
3088
|
+
parameters: [
|
|
3089
|
+
{
|
|
3090
|
+
name: "selector-type-no-unknown",
|
|
3091
|
+
default: '[true,{"ignore":["custom-elements"]}]',
|
|
3092
|
+
description: "selector-type-no-unknown"
|
|
3093
|
+
}
|
|
3094
|
+
]
|
|
3095
|
+
},
|
|
3096
|
+
{
|
|
3097
|
+
id: "Stylelint_shorthand-property-no-redundant-values",
|
|
3098
|
+
category: "CodeStyle",
|
|
3099
|
+
severityLevel: "Info",
|
|
3100
|
+
title: "Disallow Redundant Values in CSS Shorthand Properties",
|
|
3101
|
+
enabled: true,
|
|
3102
|
+
parameters: [
|
|
3103
|
+
{
|
|
3104
|
+
name: "shorthand-property-no-redundant-values",
|
|
3105
|
+
default: "true",
|
|
3106
|
+
description: "shorthand-property-no-redundant-values"
|
|
3107
|
+
}
|
|
3108
|
+
]
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
id: "Stylelint_string-no-newline",
|
|
3112
|
+
category: "ErrorProne",
|
|
3113
|
+
severityLevel: "Warning",
|
|
3114
|
+
title: "Disallow Invalid Newlines Within Strings",
|
|
3115
|
+
enabled: false,
|
|
3116
|
+
parameters: [
|
|
3117
|
+
{
|
|
3118
|
+
name: "string-no-newline",
|
|
3119
|
+
default: "true",
|
|
3120
|
+
description: "string-no-newline"
|
|
3121
|
+
}
|
|
3122
|
+
]
|
|
3123
|
+
},
|
|
3124
|
+
{
|
|
3125
|
+
id: "Stylelint_syntax-string-no-invalid",
|
|
3126
|
+
category: "ErrorProne",
|
|
3127
|
+
severityLevel: "Warning",
|
|
3128
|
+
title: "Disallow Invalid Syntax Strings in @property",
|
|
3129
|
+
enabled: false,
|
|
3130
|
+
parameters: [
|
|
3131
|
+
{
|
|
3132
|
+
name: "syntax-string-no-invalid",
|
|
3133
|
+
default: "null",
|
|
3134
|
+
description: "syntax-string-no-invalid"
|
|
3135
|
+
}
|
|
3136
|
+
]
|
|
3137
|
+
},
|
|
3138
|
+
{
|
|
3139
|
+
id: "Stylelint_time-min-milliseconds",
|
|
3140
|
+
category: "BestPractice",
|
|
3141
|
+
severityLevel: "Warning",
|
|
3142
|
+
title: "Limit Minimum Milliseconds for Time Values",
|
|
3143
|
+
enabled: true,
|
|
3144
|
+
parameters: [
|
|
3145
|
+
{
|
|
3146
|
+
name: "time-min-milliseconds",
|
|
3147
|
+
default: "null",
|
|
3148
|
+
description: "time-min-milliseconds"
|
|
3149
|
+
}
|
|
3150
|
+
]
|
|
3151
|
+
},
|
|
3152
|
+
{
|
|
3153
|
+
id: "Stylelint_unit-allowed-list",
|
|
3154
|
+
category: "BestPractice",
|
|
3155
|
+
severityLevel: "Warning",
|
|
3156
|
+
title: "Enforce Allowed Units List",
|
|
3157
|
+
enabled: true,
|
|
3158
|
+
parameters: [
|
|
3159
|
+
{
|
|
3160
|
+
name: "unit-allowed-list",
|
|
3161
|
+
default: "null",
|
|
3162
|
+
description: "unit-allowed-list"
|
|
3163
|
+
}
|
|
3164
|
+
]
|
|
3165
|
+
},
|
|
3166
|
+
{
|
|
3167
|
+
id: "Stylelint_unit-disallowed-list",
|
|
3168
|
+
category: "CodeStyle",
|
|
3169
|
+
severityLevel: "Info",
|
|
3170
|
+
title: "Disallow Specified CSS Units",
|
|
3171
|
+
enabled: true,
|
|
3172
|
+
parameters: [
|
|
3173
|
+
{
|
|
3174
|
+
name: "unit-disallowed-list",
|
|
3175
|
+
default: "null",
|
|
3176
|
+
description: "unit-disallowed-list"
|
|
3177
|
+
}
|
|
3178
|
+
]
|
|
3179
|
+
},
|
|
3180
|
+
{
|
|
3181
|
+
id: "Stylelint_unit-no-unknown",
|
|
3182
|
+
category: "ErrorProne",
|
|
3183
|
+
severityLevel: "Warning",
|
|
3184
|
+
title: "Disallow Unknown Units",
|
|
3185
|
+
enabled: false,
|
|
3186
|
+
parameters: [
|
|
3187
|
+
{
|
|
3188
|
+
name: "unit-no-unknown",
|
|
3189
|
+
default: "true",
|
|
3190
|
+
description: "unit-no-unknown"
|
|
3191
|
+
}
|
|
3192
|
+
]
|
|
3193
|
+
},
|
|
3194
|
+
{
|
|
3195
|
+
id: "Stylelint_value-keyword-case",
|
|
3196
|
+
category: "CodeStyle",
|
|
3197
|
+
severityLevel: "Info",
|
|
3198
|
+
title: "Enforce case for keyword values",
|
|
3199
|
+
enabled: true,
|
|
3200
|
+
parameters: [
|
|
3201
|
+
{
|
|
3202
|
+
name: "value-keyword-case",
|
|
3203
|
+
default: "lower",
|
|
3204
|
+
description: "value-keyword-case"
|
|
3205
|
+
}
|
|
3206
|
+
]
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
id: "Stylelint_value-no-vendor-prefix",
|
|
3210
|
+
category: "CodeStyle",
|
|
3211
|
+
severityLevel: "Info",
|
|
3212
|
+
title: "Disallow Vendor Prefixes for CSS Values",
|
|
3213
|
+
enabled: true,
|
|
3214
|
+
parameters: [
|
|
3215
|
+
{
|
|
3216
|
+
name: "value-no-vendor-prefix",
|
|
3217
|
+
default: '[true,{"ignoreValues":["box","inline-box"]}]',
|
|
3218
|
+
description: "value-no-vendor-prefix"
|
|
3219
|
+
}
|
|
3220
|
+
]
|
|
3221
|
+
}
|
|
3222
|
+
];
|
|
3223
|
+
|
|
3224
|
+
// src/adapter.ts
|
|
3225
|
+
var TOOL_ID = "Stylelint";
|
|
3226
|
+
var LOCAL_CONFIG_FILES = [
|
|
3227
|
+
".stylelintrc",
|
|
3228
|
+
".stylelintrc.json",
|
|
3229
|
+
".stylelintrc.yaml",
|
|
3230
|
+
".stylelintrc.yml",
|
|
3231
|
+
".stylelintrc.js",
|
|
3232
|
+
".stylelintrc.mjs",
|
|
3233
|
+
".stylelintrc.cjs",
|
|
3234
|
+
"stylelint.config.js",
|
|
3235
|
+
"stylelint.config.mjs",
|
|
3236
|
+
"stylelint.config.cjs"
|
|
3237
|
+
];
|
|
3238
|
+
var PATTERN_META = new Map(
|
|
3239
|
+
patterns_default.map((p) => [
|
|
3240
|
+
p.id,
|
|
3241
|
+
{
|
|
3242
|
+
category: p.category,
|
|
3243
|
+
severity: p.severityLevel ?? "Info"
|
|
3244
|
+
}
|
|
3245
|
+
])
|
|
3246
|
+
);
|
|
3247
|
+
function ruleMetadata(ruleId) {
|
|
3248
|
+
const patternId = `${TOOL_ID}_${ruleId}`;
|
|
3249
|
+
return PATTERN_META.get(patternId) ?? { category: "CodeStyle", severity: "Info" };
|
|
3250
|
+
}
|
|
3251
|
+
function buildStylelintConfig(patterns) {
|
|
3252
|
+
const rules = {};
|
|
3253
|
+
const prefix = `${TOOL_ID}_`;
|
|
3254
|
+
for (const p of patterns) {
|
|
3255
|
+
const ruleId = p.patternId.startsWith(prefix) ? p.patternId.slice(prefix.length) : p.patternId;
|
|
3256
|
+
if (p.parameters && Object.keys(p.parameters).length > 0) {
|
|
3257
|
+
const paramValues = Object.values(p.parameters).map(parseParamValue);
|
|
3258
|
+
rules[ruleId] = paramValues.length === 1 ? paramValues[0] : paramValues;
|
|
3259
|
+
} else {
|
|
3260
|
+
rules[ruleId] = true;
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
return { rules };
|
|
3264
|
+
}
|
|
3265
|
+
function parseParamValue(value) {
|
|
3266
|
+
if (typeof value !== "string") return value;
|
|
3267
|
+
const trimmed = value.trim();
|
|
3268
|
+
if (trimmed.startsWith("[") && trimmed.endsWith("]") || trimmed.startsWith("{") && trimmed.endsWith("}")) {
|
|
3269
|
+
try {
|
|
3270
|
+
return JSON.parse(trimmed);
|
|
3271
|
+
} catch {
|
|
3272
|
+
return value;
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
return value;
|
|
3276
|
+
}
|
|
3277
|
+
function readLine(filePath, lineNumber) {
|
|
3278
|
+
try {
|
|
3279
|
+
const content = import_fs.default.readFileSync(filePath, "utf-8");
|
|
3280
|
+
const lines = content.split("\n");
|
|
3281
|
+
return lines[lineNumber - 1] ?? "";
|
|
3282
|
+
} catch {
|
|
3283
|
+
return "";
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
async function importStylelint() {
|
|
3287
|
+
const mod = await import("stylelint");
|
|
3288
|
+
return mod.lint ? mod : mod.default;
|
|
3289
|
+
}
|
|
3290
|
+
var adapter = {
|
|
3291
|
+
id: TOOL_ID,
|
|
3292
|
+
displayName: "Stylelint",
|
|
3293
|
+
preferredVersion: "16.0.0",
|
|
3294
|
+
compatibleVersions: ">=16.0.0 <17.0.0",
|
|
3295
|
+
website: "https://stylelint.io",
|
|
3296
|
+
languages: ["CSS", "LESS", "SASS"],
|
|
3297
|
+
filePatterns: ["**/*.css", "**/*.scss", "**/*.less"],
|
|
3298
|
+
supportedOS: ["linux", "darwin", "win32"],
|
|
3299
|
+
supportedArch: ["x64", "arm64"],
|
|
3300
|
+
supportedRunners: ["local", "container"],
|
|
3301
|
+
prerequisites: [],
|
|
3302
|
+
/**
|
|
3303
|
+
* Verifies that the `stylelint` npm package is loadable and returns its version.
|
|
3304
|
+
* Because Stylelint is a direct runtime dependency, it should always be present.
|
|
3305
|
+
*/
|
|
3306
|
+
async checkAvailability(ctx) {
|
|
3307
|
+
ctx.logger.debug("Checking availability", { toolId: TOOL_ID });
|
|
3308
|
+
try {
|
|
3309
|
+
const mod = await importStylelint();
|
|
3310
|
+
await mod.lint({ code: "", config: { rules: {} } });
|
|
3311
|
+
let version = "unknown";
|
|
3312
|
+
try {
|
|
3313
|
+
const stylelintPath = require.resolve("stylelint");
|
|
3314
|
+
const pkgPath = import_path.default.join(import_path.default.dirname(stylelintPath), "..", "package.json");
|
|
3315
|
+
const pkgJson = JSON.parse(import_fs.default.readFileSync(pkgPath, "utf-8"));
|
|
3316
|
+
version = pkgJson.version ?? "unknown";
|
|
3317
|
+
} catch {
|
|
3318
|
+
}
|
|
3319
|
+
ctx.logger.debug("Availability check result", { toolId: TOOL_ID, available: true, version });
|
|
3320
|
+
return { available: true, version, installation: "bundled" };
|
|
3321
|
+
} catch (err) {
|
|
3322
|
+
const reason = `stylelint package not loadable: ${err instanceof Error ? err.message : String(err)}`;
|
|
3323
|
+
ctx.logger.debug("Availability check result", { toolId: TOOL_ID, available: false, reason });
|
|
3324
|
+
return { available: false, reason };
|
|
3325
|
+
}
|
|
3326
|
+
},
|
|
3327
|
+
/**
|
|
3328
|
+
* No-op — Stylelint is an npm dependency and requires no runtime installation.
|
|
3329
|
+
*/
|
|
3330
|
+
async install(ctx) {
|
|
3331
|
+
ctx.logger.info("Starting install", { toolId: TOOL_ID });
|
|
3332
|
+
ctx.logger.info("Install not needed \u2014 npm dependency", { toolId: TOOL_ID });
|
|
3333
|
+
return { success: true, installedVersion: adapter.preferredVersion };
|
|
3334
|
+
},
|
|
3335
|
+
/**
|
|
3336
|
+
* Looks for any of the standard Stylelint config file names in the
|
|
3337
|
+
* repository root. Returns the path to the first one found.
|
|
3338
|
+
*/
|
|
3339
|
+
async checkLocalConfigurationFile(ctx) {
|
|
3340
|
+
ctx.logger.debug("Checking for local config", { toolId: TOOL_ID });
|
|
3341
|
+
for (const name of LOCAL_CONFIG_FILES) {
|
|
3342
|
+
const candidate = import_path.default.join(ctx.repositoryRoot, name);
|
|
3343
|
+
try {
|
|
3344
|
+
import_fs.default.accessSync(candidate);
|
|
3345
|
+
ctx.logger.debug("Local config check", { toolId: TOOL_ID, found: true, path: candidate });
|
|
3346
|
+
return { found: true, path: candidate };
|
|
3347
|
+
} catch {
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
ctx.logger.debug("Local config check", { toolId: TOOL_ID, found: false, path: void 0 });
|
|
3351
|
+
return { found: false };
|
|
3352
|
+
},
|
|
3353
|
+
/**
|
|
3354
|
+
* Runs Stylelint against the target files and converts results to Codacy Issues.
|
|
3355
|
+
*
|
|
3356
|
+
* Config resolution order:
|
|
3357
|
+
* 1. Local config file if `useLocalConfigurationFile` is true
|
|
3358
|
+
* 2. Codacy patterns → build inline config with only those rules
|
|
3359
|
+
* 3. Default: `stylelint-config-standard`
|
|
3360
|
+
*/
|
|
3361
|
+
async analyze(ctx, codacyConfig) {
|
|
3362
|
+
const startMs = Date.now();
|
|
3363
|
+
ctx.logger.info("Starting analysis", { toolId: TOOL_ID, fileCount: ctx.targetFiles.length });
|
|
3364
|
+
const startedAt = /* @__PURE__ */ new Date();
|
|
3365
|
+
const issues = [];
|
|
3366
|
+
const errors = [];
|
|
3367
|
+
const absoluteFiles = ctx.targetFiles.map(
|
|
3368
|
+
(f) => import_path.default.resolve(ctx.repositoryRoot, f)
|
|
3369
|
+
);
|
|
3370
|
+
if (absoluteFiles.length === 0) {
|
|
3371
|
+
const completedAt2 = /* @__PURE__ */ new Date();
|
|
3372
|
+
return buildResult(startedAt, completedAt2, issues, errors, ctx.targetFiles.length);
|
|
3373
|
+
}
|
|
3374
|
+
let stylelint;
|
|
3375
|
+
try {
|
|
3376
|
+
stylelint = await importStylelint();
|
|
3377
|
+
} catch (err) {
|
|
3378
|
+
const completedAt2 = /* @__PURE__ */ new Date();
|
|
3379
|
+
errors.push({
|
|
3380
|
+
toolId: TOOL_ID,
|
|
3381
|
+
phase: "toolInvoke",
|
|
3382
|
+
kind: "InvocationError",
|
|
3383
|
+
message: `Failed to load stylelint: ${err instanceof Error ? err.message : String(err)}`,
|
|
3384
|
+
level: "error"
|
|
3385
|
+
});
|
|
3386
|
+
return buildResult(startedAt, completedAt2, issues, errors, ctx.targetFiles.length);
|
|
3387
|
+
}
|
|
3388
|
+
const lintOptions = { files: absoluteFiles };
|
|
3389
|
+
if (codacyConfig.useLocalConfigurationFile && codacyConfig.localConfigurationFile) {
|
|
3390
|
+
lintOptions.configFile = codacyConfig.localConfigurationFile;
|
|
3391
|
+
} else if (codacyConfig.patterns.length > 0) {
|
|
3392
|
+
lintOptions.config = buildStylelintConfig(codacyConfig.patterns);
|
|
3393
|
+
} else {
|
|
3394
|
+
lintOptions.config = { extends: ["stylelint-config-standard"] };
|
|
3395
|
+
}
|
|
3396
|
+
try {
|
|
3397
|
+
const result = await stylelint.lint(lintOptions);
|
|
3398
|
+
for (const fileResult of result.results) {
|
|
3399
|
+
if (!fileResult.source) continue;
|
|
3400
|
+
const relPath = import_path.default.relative(ctx.repositoryRoot, fileResult.source);
|
|
3401
|
+
for (const warning of fileResult.warnings) {
|
|
3402
|
+
if (!warning.rule) {
|
|
3403
|
+
errors.push({
|
|
3404
|
+
toolId: TOOL_ID,
|
|
3405
|
+
phase: "outputParse",
|
|
3406
|
+
kind: "UnknownPattern",
|
|
3407
|
+
message: `Stylelint returned a warning with no rule in file: ${relPath}`,
|
|
3408
|
+
level: "warning",
|
|
3409
|
+
filePath: relPath
|
|
3410
|
+
});
|
|
3411
|
+
continue;
|
|
3412
|
+
}
|
|
3413
|
+
const meta = ruleMetadata(warning.rule);
|
|
3414
|
+
const message = warning.text.replace(` (${warning.rule})`, "");
|
|
3415
|
+
issues.push({
|
|
3416
|
+
filePath: relPath,
|
|
3417
|
+
patternId: `${TOOL_ID}_${warning.rule}`,
|
|
3418
|
+
toolId: TOOL_ID,
|
|
3419
|
+
line: warning.line,
|
|
3420
|
+
column: warning.column,
|
|
3421
|
+
endLine: warning.endLine,
|
|
3422
|
+
endColumn: warning.endColumn,
|
|
3423
|
+
message,
|
|
3424
|
+
lineContent: readLine(fileResult.source, warning.line),
|
|
3425
|
+
category: meta.category,
|
|
3426
|
+
severity: meta.severity
|
|
3427
|
+
});
|
|
3428
|
+
}
|
|
3429
|
+
}
|
|
3430
|
+
} catch (err) {
|
|
3431
|
+
errors.push({
|
|
3432
|
+
toolId: TOOL_ID,
|
|
3433
|
+
phase: "toolInvoke",
|
|
3434
|
+
kind: "InvocationError",
|
|
3435
|
+
message: `Stylelint failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
3436
|
+
level: "error"
|
|
3437
|
+
});
|
|
3438
|
+
}
|
|
3439
|
+
const completedAt = /* @__PURE__ */ new Date();
|
|
3440
|
+
ctx.logger.info("Analysis complete", { toolId: TOOL_ID, issueCount: issues.length, errorCount: errors.length, durationMs: Date.now() - startMs });
|
|
3441
|
+
return buildResult(startedAt, completedAt, issues, errors, ctx.targetFiles.length);
|
|
3442
|
+
}
|
|
3443
|
+
};
|
|
3444
|
+
function buildResult(startedAt, completedAt, issues, errors, filesAnalyzed) {
|
|
3445
|
+
const durationMs = completedAt.getTime() - startedAt.getTime();
|
|
3446
|
+
return {
|
|
3447
|
+
metadata: {
|
|
3448
|
+
startedAt: startedAt.toISOString(),
|
|
3449
|
+
completedAt: completedAt.toISOString(),
|
|
3450
|
+
durationMs
|
|
3451
|
+
},
|
|
3452
|
+
issues,
|
|
3453
|
+
errors,
|
|
3454
|
+
summary: {
|
|
3455
|
+
toolId: TOOL_ID,
|
|
3456
|
+
status: errors.some((e) => e.level === "error") ? "partial" : "success",
|
|
3457
|
+
issueCount: issues.length,
|
|
3458
|
+
errorCount: errors.length,
|
|
3459
|
+
durationMs,
|
|
3460
|
+
filesAnalyzed
|
|
3461
|
+
}
|
|
3462
|
+
};
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
// src/index.ts
|
|
3466
|
+
var index_default = (0, import_tooling.defineToolAdapter)(adapter);
|