-
Notifications
You must be signed in to change notification settings - Fork 8
/
.stylelintrc.yaml
58 lines (48 loc) · 1.74 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
extends:
- stylelint-config-standard
- stylelint-config-css-modules
- stylelint-prettier/recommended
plugins:
- stylelint-color-format
- stylelint-no-unsupported-browser-features
- stylelint-order
reportNeedlessDisables: true
rules:
# Disallow naming conventions. This allows to mix bulma classes and camelCase classes for CSS modules.
keyframes-name-pattern: null
selector-class-pattern: null
# Enforce clean font family definitions.
font-family-no-duplicate-names: true
font-family-no-missing-generic-family-keyword: true
# Force consistant use of quotes.
font-family-name-quotes: always-unless-keyword
function-url-quotes: never
# Enforce the use of HSL colors.
color-named: never
color-format/format: { format: hsl }
# Disallow vendor prefixes.
at-rule-no-vendor-prefix: true
media-feature-name-no-vendor-prefix: true
property-no-vendor-prefix: true
selector-no-vendor-prefix: true
value-no-vendor-prefix: true
# Use relative URLs.
function-url-no-scheme-relative: true
# Check for undefined animations.
no-unknown-animations: true
value-keyword-case: lower
# Force consistent shorthand properties.
declaration-block-no-redundant-longhand-properties: true
shorthand-property-no-redundant-values: true
# Limit the maximum selector specificity.
selector-max-attribute: [0, { ignoreAttributes: [disabled, name, rows, type] }]
selector-max-class: 3
selector-max-compound-selectors: 3
selector-max-id: 0
selector-max-type: 1
selector-max-universal: 1
# Enforce consistent sorting.
order/order: [declarations, at-rules, rules]
order/properties-alphabetical-order: true
# Make sure our CSS works in older browsers.
plugin/no-unsupported-browser-features: [true, { ignore: css-nesting }]