-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.sass-lint.yml
134 lines (117 loc) · 3.15 KB
/
.sass-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
# Sample Configs
# - https://github.com/sasstools/sass-lint/blob/develop/docs/sass-lint.yml
# - https://github.com/sasstools/gulp-sass-lint/blob/master/tests/.sass-lint.yml
# Sass Lint Rules
# - https://github.com/sasstools/sass-lint/tree/develop/docs/rules
# Severity
# - 0: turns rule off
# - 1: set as a warning
# - 2: set to error
# Rule Configuration
rules:
# Extends
placeholder-in-extend: 0
# Mixins
mixins-before-declarations:
- 1
-
exclude: ['media'] # except @include media();
# Line Spacing
empty-line-between-blocks:
- 0
-
allow-single-line-rulesets: false
# Disallows
no-color-literals:
- 1
-
allow-rgba: true
no-debug: 0
no-ids: 0
no-mergeable-selectors: 0
no-qualifying-elements:
- 1
-
allow-element-with-attribute: true
allow-element-with-class: true
allow-element-with-id: false
no-vendor-prefixes: 0
no-warn: 0
# Nesting
force-attribute-nesting: 0
force-element-nesting: 0
force-pseudo-nesting: 0
# Name Formats
function-name-format:
- 1
-
convention-explanation: Please use hyphenated lowercase for function names. Also, you may use a leading underscore if you prefer.
mixin-name-format:
- 1
-
convention-explanation: Please use hyphenated lowercase for mixin names. Also, you may use a leading underscore if you prefer.
placeholder-name-format:
- 1
-
convention-explanation: Please use hyphenated lowercase for placeholder names. Also, you may use a leading underscore if you prefer.
variable-name-format:
- 1
-
allow-leading-underscore: false
convention-explanation: Please use hyphenated lowercase for variable names. No leading underscore is allowed.
# Style Guide
attribute-quotes: 1
border-zero: 0
brace-style:
- 1
-
style: 1tbs
allow-single-line: false
class-name-format:
- 0
-
allow-leading-underscore: false
convention-explanation: Please use hypenated lowercase for class names, and without a leading underscore. If you find a WordPress core condition that conflicts with this convention feel free to modify and extend the ignore option.
ignore: ['current_page_item', 'widget_search'] # ignore selectors declared by WordPress
empty-args: 0
hex-length: 1
hex-notation: 1
id-name-format:
- 1
-
convention-explanation: Please try to use hyphenated lowercase ID name format. If overriding a plugin that does not use this format then please ignore or extend the list of ignore option.
indentation:
- 1
-
size: tab
leading-zero:
- 1
-
include: true
nesting-depth:
- 1
-
max-depth: 3
property-units:
- 0
-
per-property: { width: ['px', 'rem', 'vw'], height: ['px', 'rem', 'vh'], margin: ['px', 'rem'], padding: ['px', 'rem'] }
quotes:
- 1
-
style: double
shorthand-values:
- 1
-
allowed-shorthands:
- 1
- 2
# Inner Spacing
space-between-parens: 0
# Final Items
final-newline: 0
no-misspelled-properties:
- 1
-
'extra-properties':
- '-webkit-overflow-scrolling'