Skip to content

Commit ce7be7e

Browse files
author
Darius Rosendahl
committed
Completed the sass-lint rules
1 parent 7733a83 commit ce7be7e

File tree

1 file changed

+69
-12
lines changed

1 file changed

+69
-12
lines changed

sass-lint.yml

Lines changed: 69 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,41 @@ options:
1515
files:
1616
include: 'scss/**/*.s+(a|c)ss'
1717
ignore:
18-
- 'sass/layout/docs_code.scss'
18+
- 'scss/vendor/**/*.*'
1919
# Rule Configuration
2020
rules:
21-
max-depth: 2
2221
extends-before-mixins: 2
22+
class-name-format:
23+
- 2
24+
- convention: 'hyphenatedlowercase'
25+
declarations-before-nesting: true
2326
extends-before-declarations: 2
27+
force-element-nesting: true
28+
force-pseudo-nesting: true
29+
function-name-format:
30+
- 2
31+
- convention: 'hyphenatedlowercase'
32+
hex-length: 'short'
33+
no-color-keywords: true
34+
hex-notation:
35+
- 2
36+
-
37+
style: lowercase
38+
empty-line-between-blocks:
39+
- 1
40+
- include: true
41+
- allow-single-line-rulesets: false
2442
placeholder-in-extend: 2
43+
leading-zero: false
44+
- 1
45+
nesting-depth:
46+
- 1
47+
- max-depth: 3
48+
mixin-name-format:
49+
- 2
50+
- convention: 'hyphenatedlowercase'
2551
mixins-before-declarations:
26-
- 0
52+
- 2
2753
-
2854
exclude:
2955
- breakpoint
@@ -32,20 +58,50 @@ rules:
3258
no-warn: 1
3359
no-debug: 1
3460
no-ids: 1
35-
no-important: 1
36-
hex-notation:
61+
space-after-colon:
3762
- 2
38-
-
39-
style: lowercase
63+
- include: true
64+
space-after-comma:
65+
- 2
66+
- include: true
67+
space-before-brace:
68+
- 2
69+
- include: true
70+
space-before-colon:
71+
- 2
72+
- include: false
73+
space-after-bang: false
74+
trailing-semicolon:
75+
- 2
76+
- include: true
77+
url-quotes:
78+
- 2
79+
shorthand-values:
80+
- 2
81+
- allowed-shorthands:
82+
- 1
83+
- 2
84+
no-important: 2
85+
no-invalid-hex: 2
86+
no-trailing-whitespace: 1
87+
placeholder-name-format:
88+
- 2
89+
- convention: 'hyphenatedlowercase'
4090
indentation:
41-
- 1
91+
- 2
4292
-
43-
size: 'tab'
93+
size: tab
4494
property-sort-order:
4595
- 1
4696
-
4797
order:
4898
- content
99+
- position
100+
- z-index
101+
- top
102+
- right
103+
- bottom
104+
- left
49105
- display
50106
- flex-direction
51107
- align-items
@@ -83,8 +139,9 @@ rules:
83139
- border-radius
84140
ignore-custom-properties: true
85141
variable-for-property:
86-
- 0
142+
- 2
87143
-
88144
properties:
89-
- margin
90-
- content
145+
-
146+
zero-unit:
147+
- 2

0 commit comments

Comments
 (0)