-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstylelint.config.js
More file actions
82 lines (82 loc) · 2.64 KB
/
stylelint.config.js
File metadata and controls
82 lines (82 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
module.exports = {
'extends': 'stylelint-config-standard-scss',
'ignoreFiles': [
'src/scss/themes/debug/*.scss',
'src/scss/themes/ng/*.scss',
],
'rules': {
'scss/dollar-variable-colon-space-after': null,
'scss/dollar-variable-empty-line-before': null,
'scss/double-slash-comment-empty-line-before': null,
'scss/at-import-no-partial-leading-underscore': null,
'scss/load-no-partial-leading-underscore': null,
'scss/at-mixin-argumentless-call-parentheses': 'always',
'scss/at-mixin-pattern': [
'^_?(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$', // This allows kebab-case with an optional starting underscore
{
message: 'Expected mixin to be kebab-case, mixins can start with an underscore',
},
],
'selector-class-pattern': [
'^[a-z][a-z0-9_-]*(?:--[a-z0-9_-]+)?$',
{
message: (selector) => `Expected class selector "${selector}" to be kebab-case, --modifier is allowed`,
},
],
'scss/comment-no-empty': null,
'no-empty-source': null,
'color-hex-length': null,
'declaration-block-no-redundant-longhand-properties': null,
'no-descending-specificity': null,
'property-no-unknown': [
true,
{
'ignoreProperties': ['aspect-ratio', 'container-type', 'container-name'],
}
],
'unit-no-unknown' : [
true,
{
'ignoreUnits': ['cwq', 'cqh', 'cqi', 'cqb', 'cqmin', 'cqmax'],
}
],
'at-rule-empty-line-before': [
'always',
{
except: ['blockless-after-same-name-blockless', 'first-nested'],
ignore: ['after-comment'],
ignoreAtRules: ['else'],
},
],
'at-rule-no-unknown': [
true,
{
'ignoreAtRules': [
'extend',
'at-root',
'debug',
'warn',
'error',
'if',
'else',
'for',
'each',
'while',
'mixin',
'include',
'content',
'return',
'function',
'tailwind',
'apply',
'responsive',
'variants',
'screen',
'container',
'use',
'forward',
],
},
],
},
};