/
.stylelintrc.yml
31 lines (31 loc) · 938 Bytes
/
.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
extends:
- '@wordpress/stylelint-config/scss'
- stylelint-config-prettier
plugins:
- stylelint-prettier
- './lib/stylelintLVHFA.js'
- stylelint-order
rules:
# Prettier automatically removes the empty line
at-rule-empty-line-before: null
# Stylelint doesn't understand gesso design tokens
font-weight-notation: null
color-named: null
rule-empty-line-before: null
# Allow BEM style classes
selector-class-pattern: null
# @wordpress/prettier-config uses single quotes,
# so prettier and stylelint are in conflict here
string-quotes: single
# Enforce alphabetical ordering of properties,
# which is an F1 convention but not required by WP
order/order:
- - type: at-rule
hasBlock: false
- custom-properties
- declarations
- unspecified: ignore
disableFix: true
order/properties-alphabetical-order: error
# Results in false positives
no-descending-specificity: null