forked from WebDevStudios/wd_s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sass-lint.yml
138 lines (119 loc) · 3.71 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
135
136
137
138
# 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
# File Options
files:
ignore:
- 'assets/**/_colors.scss'
- 'assets/**/_gravity-forms.scss'
- 'assets/**/_scaffolding.scss'
- 'assets/**/style.scss'
- 'sass/tests/**/*.scss'
- 'sass/vendor/**/*.scss'
# Rule Configuration
rules:
placeholder-in-extend: 0
mixins-before-declarations:
- 1
-
exclude: ['grid-media', 'media'] # allow @include grid-media(), @include media();
empty-line-between-blocks:
- 1
-
allow-single-line-rulesets: false
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: false
allow-element-with-id: false
no-vendor-prefixes: 0
no-warn: 0
no-empty-rulesets:
- 0
force-attribute-nesting: 0
force-element-nesting: 0
force-pseudo-nesting: 0
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.
attribute-quotes: 1
border-zero: 0
brace-style:
- 1
-
style: 1tbs
allow-single-line: false
class-name-format:
- 1
-
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', 'wp-block-button__link'] # 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: 4
property-units:
- 1
-
per-property: { border: ['px'], border-bottom: ['px'], border-left: ['px'], border-right: ['px'], border-top: ['px'], border-radius: ['px'], border-bottom-left-radius: ['px'], border-bottom-right-radius: ['px'], border-top-left-radius: ['px'], border-top-right-radius: ['px'], box-shadow: ['rem'], font-size: ['rem'], height: ['rem', 'vh'], letter-spacing: ['em'], margin: ['rem'], margin-bottom: ['rem'], margin-left: ['rem'], margin-right: ['rem'], margin-top: ['rem'], padding: ['rem'], padding-bottom: ['rem'], padding-left: ['rem'], padding-right: ['rem'], padding-top: ['rem'], text-shadow: ['em'], width: ['rem', 'vw'] }
quotes:
- 1
-
style: single
shorthand-values:
- 1
-
allowed-shorthands:
- 1
- 2
space-between-parens: 0
final-newline: 0
no-misspelled-properties:
- 1
-
'extra-properties':
- '-webkit-overflow-scrolling'