-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsass-lint.yml
70 lines (69 loc) · 1.35 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
#########################
## Sample Sass Lint File
#########################
# Linter Options
options:
# Don't merge default rules
merge-default-rules: false
# Set the formatter to 'html'
formatter: html
# Output file instead of logging results
output-file: 'sass-lint-report.html'
# Raise an error if more than 50 warnings are generated
max-warnings: 100
# File Options
files:
include: './theme/scss/**/*.s+(a|c)ss'
ignore:
- ''
# Rule Configuration
rules:
extends-before-mixins: 2
extends-before-declarations: 2
placeholder-in-extend: 2
mixins-before-declarations:
- 0
-
exclude:
- breakpoint
- mq
no-warn: 1
no-debug: 1
no-invalid-hex: 1
no-mergeable-selectors: 1
no-misspelled-properties: 1
no-url-protocols: 1
one-declaration-per-line: 1
space-after-bang: 1
space-after-colon: 1
space-after-comma: 1
space-before-bang: 1
space-before-brace: 1
trailing-semicolon: 1
zero-unit: 1
no-duplicate-properties:
- 1
-
exclude:
- background
indentation:
- 1
-
size: 'tab'
variable-for-property:
- 1
-
properties:
- color
- background-color
allowed-functions:
- 'darken'
- 'lighten'
- 'saturate'
- 'adjust-color'
shorthand-values:
- 1
-
allowed-shorthands:
- 1
- 2