-
Notifications
You must be signed in to change notification settings - Fork 3
/
.stylelintrc.yml
47 lines (42 loc) · 1.78 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
# See https://stylelint.io/user-guide/rules/list
# Also https://github.com/kristerkari/stylelint-scss#list-of-rules
extends:
- stylelint-config-standard-scss
- stylelint-prettier/recommended
plugins:
- stylelint-prettier
ignoreFiles:
- "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
# - https://github.com/prettier/stylelint-config-prettier/blob/master/src/index.js
# 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"
# Disable for Prettier
scss/at-else-closing-brace-newline-after: null
scss/at-else-closing-brace-space-after: null
scss/at-else-empty-line-before: null
scss/at-else-if-parentheses-space-before: null
scss/at-function-parentheses-space-before: null
scss/at-if-closing-brace-newline-after: null
scss/at-if-closing-brace-space-after: null
scss/at-mixin-parentheses-space-before: null
scss/dollar-variable-colon-newline-after: null
scss/dollar-variable-colon-space-after: null
scss/dollar-variable-colon-space-before: null
scss/operator-no-newline-after: null
scss/operator-no-newline-before: null
scss/operator-no-unspaced: null