-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy path.stylelintrc.yaml
More file actions
28 lines (28 loc) · 1.05 KB
/
.stylelintrc.yaml
File metadata and controls
28 lines (28 loc) · 1.05 KB
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
extends:
- 'stylelint-config-standard'
- 'stylelint-config-clean-order'
rules:
declaration-block-no-duplicate-properties:
- true
- ignore: ['consecutive-duplicates-with-different-syntaxes']
custom-property-pattern:
- '^_?([a-z][a-zA-Z0-9]*)(-[a-zA-Z0-9]+)*$'
- message: "Expected '%s' to be kebab-case or camelCase, optionally prefixed with _ for pseudo-private properties (custom-property-pattern)"
property-no-vendor-prefix:
- true
- ignoreProperties: ['/^(column[s-]?)([a-z]*)$/']
comment-empty-line-before:
- always
- except: [first-nested]
ignore: [after-comment, stylelint-commands]
import-notation: string
selector-class-pattern:
- '^eds-[a-z][a-z0-9]*(-[a-z0-9]+)*(__[a-z][a-z0-9]*(-[a-z0-9]+)*)?(--[a-z][a-z0-9]*(-[a-z0-9]+)*)?$'
- message: "Expected class '%s' to follow BEM syntax: eds-block__element--modifier (selector-class-pattern)"
number-max-precision: 5
declaration-property-value-no-unknown:
- true
- ignoreProperties:
'/.*/':
- '/round/'
- '/--[\w-]+\(\)/'