generated from aifrak/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.yml
69 lines (65 loc) · 1.93 KB
/
.stylelintrc.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
# Order is important: top configs are overridden by bottom ones
extends:
- stylelint-config-standard
- stylelint-config-recommended
- stylelint-config-recommended-scss
- stylelint-config-sass-guidelines
- stylelint-config-idiomatic-order
- "@ronilaukkarinen/stylelint-a11y/recommended"
plugins:
- stylelint-at-rule-no-children
- "@ronilaukkarinen/stylelint-a11y"
- stylelint-csstree-validator
- stylelint-color-format
- stylelint-declaration-block-no-ignored-properties
- stylelint-declaration-strict-value
- stylelint-high-performance-animation
- stylelint-no-unsupported-browser-features
- stylelint-use-logical-spec
- stylelint-use-nesting
reportDescriptionlessDisables: true
reportInvalidScopeDisables: true
reportNeedlessDisables: true
rules:
# Rules from core
alpha-value-notation: number
color-function-notation: modern
color-no-hex: true
font-family-name-quotes: always-unless-keyword
font-weight-notation:
- numeric
- ignore:
- relative
function-url-no-scheme-relative: true
hue-degree-notation: number
selector-max-id: 0
# Rules from plugins
a11y/font-size-is-readable: true
a11y/media-prefers-color-scheme: true
a11y/no-obsolete-attribute: true
a11y/no-obsolete-element: true
a11y/no-text-align-justify: true
color-format/format:
format: hsl
csstools/use-nesting: always
csstree/validator:
syntaxExtensions:
- sass
liberty/use-logical-spec: true
order/properties-alphabetical-order: null
plugin/declaration-block-no-ignored-properties: true
plugin/no-low-performance-animation-properties: true
plugin/no-unsupported-browser-features: true
scale-unlimited/declaration-strict-value:
- - /color/
- fill
- stroke
- font-family
- font-size
- line-height
- z-index
- ignoreValues:
/color/: &keywords [currentColor, inherit, transparent]
fill: *keywords
stroke: *keywords
disableFix: true