forked from guardian/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sass-lint.yml
100 lines (94 loc) · 1.94 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
files:
include: 'static/src/stylesheets/**/*.scss'
ignore:
# Do not lint external files.
- 'static/src/stylesheets/icons/**/*.scss'
- 'static/src/stylesheets/email/foundation-emails/**/*.scss'
# Open issue: https://github.com/tonyganch/gonzales-pe/issues/197
- 'static/src/stylesheets/atoms/vars.scss'
options:
formatter: stylish
merge-default-rules: false
rules:
# Extends
extends-before-declarations: 1
extends-before-mixins: 1
placeholder-in-extend: 1
# Mixins
mixins-before-declarations: 1
# Line Spacing
single-line-per-selector: 0
empty-line-between-blocks:
- 0
- ignore-single-line-rulesets: true
# Disallows
no-color-keywords: 1
no-css-comments: 0
no-debug: 1
no-duplicate-properties:
- 1
- exclude:
- font-size
- max-height
- src
- background
- display
- color
- left
no-empty-rulesets: 0
no-invalid-hex: 1
no-mergeable-selectors: 0
no-misspelled-properties:
- 1
- extra-properties:
- mso-line-height-rule
- mso-hide
- overflow-scrolling
- osx-font-smoothing
- grid-column-gap
- grid-row-gap
- grid-gap
- touch-callout
no-trailing-zero: 1
no-url-protocols: 0
# Name Formats
function-name-format: 0
mixin-name-format: 0
placeholder-name-format: 0
variable-name-format: 0
# Style Guide
border-zero: 1
final-newline:
- 1
- include: true
hex-length:
- 1
- style: long
hex-notation:
- 1
- style: lowercase
indentation:
- 1
- size: 4
leading-zero:
- 1
- include: false
property-sort-order:
- 0
- order: 'margin,'
quotes:
- 1
- style: single
shorthand-values: 1
space-after-colon: 1
space-after-comma: 1
space-before-brace: 1
space-before-colon: 1
space-between-parens:
- 1
- include: false
url-quotes: 0
zero-unit: 0
nesting-depth:
- 1
- max-depth: 4