-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
.stylelintrc.yml
40 lines (34 loc) · 1.35 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
# See https://stylelint.io/user-guide/rules/list
# Also https://github.com/kristerkari/stylelint-scss#list-of-rules
extends:
- stylelint-config-standard-scss
ignoreFiles:
- '**/*.js'
- 'test/**/*.*'
rules:
# Default rules:
# - https://github.com/stylelint-scss/stylelint-config-standard-scss/blob/main/index.js
# - https://github.com/stylelint-scss/stylelint-config-recommended-scss/blob/master/index.js
# - https://github.com/stylelint/stylelint-config-standard/blob/main/index.js
# - https://github.com/stylelint/stylelint-config-recommended/blob/main/index.js
# possible errors (these are all on by default)
no-descending-specificity: null
# limit language features
color-function-notation: null
color-named: always-where-possible
custom-property-pattern: null
declaration-no-important: true
function-url-no-scheme-relative: true
number-max-precision: null
selector-class-pattern: null
# Sass
scss/at-function-pattern:
- '^([_|-]*[a-z][a-z0-9]*)(-[a-z0-9]+)*-*$'
- message: 'Expected function to be kebab-case'
scss/at-mixin-pattern:
- '^([_|-]*[a-z][a-z0-9]*)(-[a-z0-9]+)*-*$'
- message: 'Expected mixin to be kebab-case'
scss/at-rule-conditional-no-parentheses: null
scss/dollar-variable-pattern:
- '^([_|-]*[a-z][a-z0-9]*)(-[a-z0-9]+)*-*$'
- message: 'Expected variable to be kebab-case'