forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scss-lint.yml
135 lines (133 loc) · 3.08 KB
/
.scss-lint.yml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Documentation:
# https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md
plugin_directories: ['.scss-linters']
scss_files: '{ui,site/assets/styles}/**/*.scss'
exclude:
- node_modules
- git_modules
- app_modules
- ui/vendor/**
- site/assets/styles/_vendor/**
linters:
BangFormat:
enabled: true
space_before_bang: true
space_after_bang: false
BorderZero:
enabled: true
ColorKeyword:
enabled: true
ColorVariable:
enabled: false
Comment:
enabled: true
allowed: 'Copyright'
DeclarationOrder:
enabled: false
DuplicateProperty:
enabled: true
ElsePlacement:
enabled: false
EmptyLineBetweenBlocks:
enabled: false
EmptyRule:
enabled: true
severity: error
ExtendDirective:
enabled: true
severity: error
FinalNewline:
enabled: false # Already checked by another task
HexLength:
enabled: true
style: short
HexNotation:
enabled: true
style: lowercase
HexValidation:
enabled: true
IdSelector:
enabled: true
severity: error
ImportPath:
enabled: true
leading_underscore: false
filename_extension: false
ImportantRule:
enabled: true
Indentation:
enabled: false # Already checked by another task
LeadingZero:
enabled: true
style: include_zero
MergeableSelector:
enabled: true
force_nesting: true
NameFormat:
enabled: true
allow_leading_underscore: true # For private variables, mixins and functions
convention: '^[a-z]|[a-z0-9\-]{2,}$'
convention_explanation: 'Valid names for variables, mixins and functions: i, foo, foo-bar, foo-1, _private-thing'
severity: error
NestingDepth:
enabled: true
max_depth: 3
ignore_parent_selectors: true
PlaceholderInExtend:
enabled: false
PropertyCount:
enabled: false
PropertySortOrder:
enabled: false
PropertySpelling:
enabled: true
PseudoElement:
enabled: false
QualifyingElement:
enabled: false
SelectorDepth:
enabled: true
max_depth: 3
SelectorFormat: # Note: this does not warn about malformed selector that start with #{$css-prefix}
enabled: true
convention: '^[a-z0-9_\-]+$'
convention_explanation: 'Valid class names: block_container, block, block--modifier, block__element, block__element--modifier'
severity: error
Shorthand:
enabled: false
SingleLinePerProperty:
enabled: true
allow_single_line_rule_sets: false
SingleLinePerSelector:
enabled: true
SpaceAfterComma:
enabled: true
SpaceAfterPropertyColon:
enabled: true
style: one_space_or_newline
SpaceAfterVariableName:
enabled: true
SpaceAroundOperator:
enabled: true
style: one_space
SpaceBeforeBrace:
enabled: true
allow_single_line_padding: true
StringQuotes:
enabled: true
style: single_quotes
TrailingSemicolon:
enabled: true
UnnecessaryParentReference:
enabled: true
UrlQuotes:
enabled: true
VendorPrefix:
enabled: true
ZeroUnit:
enabled: true
DisallowLastParentSelector:
enabled: true
severity: error
exclude:
- site/assets/styles/**