Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 01c09e3

Browse files
author
Marlow Payne
committed
Add a sass-lint ruleset
1 parent b2cf0b3 commit 01c09e3

1 file changed

Lines changed: 347 additions & 0 deletions

File tree

css/.sass-lint.yml

Lines changed: 347 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,347 @@
1+
# sass-lint config generated by make-sass-lint-config v0.1.1
2+
#
3+
# The following scss-lint Linters are not yet supported by sass-lint:
4+
# DisableLinterReason, ElsePlacement, PropertyCount, SelectorDepth
5+
# SpaceAroundOperator, TrailingWhitespace, UnnecessaryParentReference, VendorPrefixes
6+
# Compass::*
7+
#
8+
# The following settings/values are unsupported by sass-lint:
9+
# Linter Indentation, option "allow_non_nested_indentation"
10+
# Linter Indentation, option "character"
11+
# Linter SpaceBeforeBrace, option "allow_single_line_padding"
12+
# Linter PropertySortOrder, option "min_properties"
13+
# Linter PropertySortOrder, option "separate_groups"
14+
15+
files:
16+
include: '**/*.s+(a|c)ss'
17+
options:
18+
formatter: stylish
19+
merge-default-rules: false
20+
rules:
21+
bem-depth:
22+
- 2
23+
- max-depth: 1
24+
border-zero:
25+
- 2
26+
- convention: zero
27+
brace-style:
28+
- 2
29+
- allow-single-line: false
30+
class-name-format:
31+
- 2
32+
- convention: hyphenatedbem
33+
clean-import-paths:
34+
- 2
35+
- filename-extension: false
36+
leading-underscore: false
37+
empty-line-between-blocks:
38+
- 2
39+
- ignore-single-line-rulesets: true
40+
extends-before-declarations: 2
41+
extends-before-mixins: 2
42+
final-newline:
43+
- 2
44+
- include: true
45+
force-attribute-nesting: 0
46+
force-element-nesting: 0
47+
force-pseudo-nesting: 0
48+
function-name-format:
49+
- 2
50+
- allow-leading-underscore: true
51+
convention: '[a-z]|-{3}|_{3}|[^_]_[^_]'
52+
hex-length:
53+
- 2
54+
- style: short
55+
hex-notation:
56+
- 2
57+
- style: lowercase
58+
id-name-format:
59+
- 2
60+
- convention: hyphenatedbem
61+
indentation:
62+
- 2
63+
- size: 4
64+
leading-zero:
65+
- 2
66+
- include: true
67+
mixin-name-format:
68+
- 2
69+
- allow-leading-underscore: true
70+
convention: '[a-z]|-{3}|_{3}|[^_]_[^_]'
71+
mixins-before-declarations: 2
72+
nesting-depth:
73+
- 2
74+
- max-depth: 4
75+
no-color-keyword: 0
76+
no-color-literals: 0
77+
no-css-comments: 2
78+
no-debug: 2
79+
no-duplicate-properties: 2
80+
no-empty-rulesets: 0
81+
no-extends: 0
82+
no-ids: 0
83+
no-important: 0
84+
no-invalid-hex: 2
85+
no-mergeable-selectors: 2
86+
no-misspelled-properties:
87+
- 2
88+
- extra-properties: []
89+
no-qualifying-elements:
90+
- 2
91+
- allow-element-with-attribute: true
92+
allow-element-with-class: false
93+
allow-element-with-id: false
94+
no-trailing-zero: 2
95+
no-transition-all: 0
96+
no-url-protocols: 2
97+
placeholder-in-extend: 2
98+
placeholder-name-format:
99+
- 2
100+
- convention: hyphenatedbem
101+
property-sort-order:
102+
- 2
103+
- ignore-custom-properties: false
104+
order:
105+
- content
106+
- quotes
107+
- counter-reset
108+
- counter-increment
109+
- null
110+
- position
111+
- top
112+
- right
113+
- bottom
114+
- left
115+
- z-index
116+
- float
117+
- clear
118+
- null
119+
- display
120+
- overflow
121+
- overflow-x
122+
- overflow-y
123+
- clip
124+
- table-layout
125+
- empty-cells
126+
- caption-side
127+
- border-spacing
128+
- border-collapse
129+
- flex-flow
130+
- flex-direction
131+
- flex-wrap
132+
- justify-content
133+
- align-items
134+
- align-content
135+
- flex
136+
- flex-grow
137+
- flex-shrink
138+
- flex-basis
139+
- align-self
140+
- order
141+
- box-sizing
142+
- width
143+
- min-width
144+
- max-width
145+
- height
146+
- min-height
147+
- max-height
148+
- margin
149+
- margin-top
150+
- margin-right
151+
- margin-bottom
152+
- margin-left
153+
- padding
154+
- padding-top
155+
- padding-right
156+
- padding-bottom
157+
- padding-left
158+
- border
159+
- border-width
160+
- border-style
161+
- border-color
162+
- border-top
163+
- border-top-width
164+
- border-top-style
165+
- border-top-color
166+
- border-right
167+
- border-right-width
168+
- border-right-style
169+
- border-right-color
170+
- border-bottom
171+
- border-bottom-width
172+
- border-bottom-style
173+
- border-bottom-color
174+
- border-left
175+
- border-left-width
176+
- border-left-style
177+
- border-left-color
178+
- null
179+
- visibility
180+
- opacity
181+
- border-radius
182+
- border-top-left-radius
183+
- border-top-right-radius
184+
- border-bottom-right-radius
185+
- border-bottom-left-radius
186+
- border-image
187+
- border-image-source
188+
- border-image-slice
189+
- border-image-width
190+
- border-image-outset
191+
- border-image-repeat
192+
- background
193+
- background-color
194+
- background-image
195+
- background-repeat
196+
- background-attachment
197+
- background-position
198+
- background-position-x
199+
- background-position-y
200+
- background-origin
201+
- background-size
202+
- background-clip
203+
- box-shadow
204+
- box-decoration-break
205+
- outline
206+
- outline-width
207+
- outline-style
208+
- outline-color
209+
- filter
210+
- null
211+
- color
212+
- font
213+
- font-family
214+
- font-style
215+
- font-weight
216+
- font-variant
217+
- font-size
218+
- font-size-adjust
219+
- line-height
220+
- letter-spacing
221+
- word-spacing
222+
- direction
223+
- word-wrap
224+
- overflow-wrap
225+
- word-break
226+
- hyphens
227+
- white-space
228+
- text-align
229+
- text-align-last
230+
- text-indent
231+
- text-overflow
232+
- text-transform
233+
- text-decoration
234+
- text-shadow
235+
- text-rendering
236+
- text-size-adjust
237+
- vertical-align
238+
- tab-size
239+
- list-style
240+
- list-style-position
241+
- list-style-type
242+
- list-style-image
243+
- null
244+
- transform
245+
- transform-function
246+
- transform-origin
247+
- transform-style
248+
- perspective
249+
- perspective-origin
250+
- backface-visibility
251+
- null
252+
- transition
253+
- transition-property
254+
- transition-duration
255+
- transition-timing-function
256+
- transition-delay
257+
- animation
258+
- animation-name
259+
- animation-duration
260+
- animation-timing-function
261+
- animation-delay
262+
- animation-iteration-count
263+
- animation-direction
264+
- animation-fill-mode
265+
- animation-play-state
266+
- null
267+
- cursor
268+
- user-select
269+
- resize
270+
- pointer-events
271+
- null
272+
- '-webkit-appearance'
273+
- '-moz-appearance'
274+
- '-webkit-overflow-scrolling'
275+
- '-webkit-tap-highlight-color'
276+
- '-webkit-text-stroke'
277+
property-units:
278+
- 0
279+
- global:
280+
- ch
281+
- em
282+
- ex
283+
- rem
284+
- cm
285+
- in
286+
- mm
287+
- pc
288+
- pt
289+
- px
290+
- q
291+
- vh
292+
- vw
293+
- vmin
294+
- vmax
295+
- deg
296+
- grad
297+
- rad
298+
- turn
299+
- ms
300+
- s
301+
- Hz
302+
- kHz
303+
- dpi
304+
- dpcm
305+
- dppx
306+
- '%'
307+
per-property: {}
308+
quotes:
309+
- 0
310+
- style: double
311+
shorthand-values:
312+
- 2
313+
- allowed-shorthands:
314+
- 1
315+
- 2
316+
- 3
317+
single-line-per-selector: 2
318+
space-after-bang:
319+
- 2
320+
- include: false
321+
space-after-colon:
322+
- 2
323+
- include: true
324+
space-after-comma:
325+
- 2
326+
- include: true
327+
space-before-bang:
328+
- 2
329+
- include: true
330+
space-before-brace:
331+
- 2
332+
- include: true
333+
space-before-colon: 2
334+
space-between-parens:
335+
- 2
336+
- include: false
337+
trailing-semicolon: 2
338+
url-quotes: 2
339+
variable-for-property:
340+
- 2
341+
- properties:
342+
- font
343+
variable-name-format:
344+
- 2
345+
- allow-leading-underscore: true
346+
convention: '[a-z]|-{3}|_{3}|[^_]_[^_]'
347+
zero-unit: 2

0 commit comments

Comments
 (0)