forked from wagtail/wagtail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.yaml
79 lines (79 loc) · 2.32 KB
/
.stylelintrc.yaml
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
ignoreFiles:
- node_modules
- build/**/*
plugins:
- stylelint-scss
# See https://github.com/stylelint/stylelint/blob/master/docs/user-guide/rules.md
rules:
block-closing-brace-newline-after:
- always
- ignoreAtRules:
# Ignore @if … @else in SCSS.
- if
- else
block-no-empty: true
block-opening-brace-space-before: always
color-hex-case: lower
color-hex-length: short
color-named: never
color-no-invalid-hex: true
comment-no-empty: true
declaration-bang-space-after: never
declaration-bang-space-before: always
declaration-block-no-duplicate-properties: true
declaration-block-no-redundant-longhand-properties: true
declaration-block-single-line-max-declarations: 1
declaration-block-trailing-semicolon: always
declaration-colon-space-after: always
declaration-colon-space-before: never
declaration-property-value-blacklist:
- /^border/: [none]
- severity: error
declaration-no-important: true
font-family-no-duplicate-names: true
function-calc-no-unspaced-operator: true
function-comma-space-after: always
function-linear-gradient-no-nonstandard-direction: true
function-parentheses-space-inside: never
function-url-quotes: always
indentation:
- 4
- severity: warning
length-zero-no-unit: true
max-nesting-depth: 3
media-feature-name-no-unknown: true
no-empty-source: true
no-eol-whitespace: true
no-extra-semicolons: true
no-missing-end-of-source-newline: true
number-no-trailing-zeros: true
number-leading-zero: always
property-case: lower
property-no-unknown: true
rule-empty-line-before:
- always
- except:
- after-single-line-comment
- first-nested
scss/at-import-no-partial-leading-underscore: true
scss/at-import-partial-extension-blacklist:
- scss
scss/at-else-empty-line-before: never
selector-no-qualifying-type:
- true
- ignore:
- attribute
- class
selector-list-comma-newline-after: always
selector-max-id: 0
selector-pseudo-element-no-unknown: true
selector-type-no-unknown: true
scss/at-rule-no-unknown: true
scss/media-feature-value-dollar-variable: always
scss/selector-no-redundant-nesting-selector: true
string-no-newline: true
string-quotes: single
unit-no-unknown: true
unit-case: lower
value-no-vendor-prefix: true
property-no-vendor-prefix: true