-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sass-lint.yml
114 lines (111 loc) · 2.66 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
files:
include: 'src/components/**/*.scss'
options:
formatter: stylish
merge-default-rules: false
rules:
# Warn if BEM nesting goes more than 1 level deep (e.g. block__element__nested-element = 2)
bem-depth:
- 1
- max-depth: 1
# Use BEM naming
class-name-format:
- 1
- convention: hyphenatedbem
brace-style:
- 2
- style: 1tbs
- allow-single-line: false
# Require newline between blocks
empty-line-between-blocks:
- 2
- include: true
- ignore-single-line-rulesets: false
# @extends always come first
extends-before-declarations: 1
extends-before-mixins: 1
# Require newline at the end of files
final-newline:
- 2
- include: true
# use-hyphenated-function-names
function-name-format:
- 2
- allow-leading-underscore: true
convention: hyphenatedlowercase
# Must use hex colour shortcodes (if possible)
hex-length:
- 2
- style: short
# Hex codes must use lowercase characters
hex-notation:
- 2
- style: lowercase
# Indent with 4 spaces
indentation:
- 2
- size: 4
# use-hyphenated-mixin-names
mixin-name-format:
- 2
- allow-leading-underscore: true
convention: hyphenatedlowercase
# Allow CSS-style comments
no-css-comments: 0
# Allow empty rules
no-empty-rulesets: 0
# Make sure hex codes are valid
no-invalid-hex: 2
# Make sure properties are properly spelled
no-misspelled-properties:
- 2
- extra-properties: []
# Do not allow qualifying elements like div#my-el { ... } or a.external-link { ... }
no-qualifying-elements:
- 2
- allow-element-with-attribute: false
allow-element-with-class: false
allow-element-with-id: false
# Only one rule per line
one-declaration-per-line: 2
# Warn if properties out of order
property-sort-order:
- 1
- order: concentric # http://rhodesmill.org/brandon/2011/concentric-css/
- ignore-custom-properties: true
# Use "double" quotes
quotes:
- 2
- style: double
# Use shorthand properties where possible
shorthand-values: 2
# Force selectors on a separate line
single-line-per-selector: 2
# Require spaces after various tokens
space-after-colon:
- 2
- include: true
space-after-comma:
- 2
- include: true
space-around-operator:
- 2
- include: true
space-before-bang:
- 2
- include: true
space-before-brace:
- 2
- include: true
trailing-semicolon: 2
# URLs must be quoted
url-quotes: 2
# vars-must-use-hyphens
variable-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
# Zero (0) values must not have units
zero-unit:
- 2
- include: false