-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.stylelintrc.js
32 lines (32 loc) · 1.25 KB
/
.stylelintrc.js
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
module.exports = {
extends: ['stylelint-config-prettier'],
rules: {
indentation: 2,
'at-rule-no-unknown': [true, { ignoreAtRules: ['tailwind', 'apply'] }],
'selector-nested-pattern': '.',
'no-missing-end-of-source-newline': true,
'no-empty-source': true,
'no-duplicate-selectors': true,
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['/^local|^global/'] }],
'max-nesting-depth': 5,
'selector-max-compound-selectors': 4,
'selector-combinator-space-after': 'always',
'selector-attribute-operator-space-before': 'never',
'color-no-invalid-hex': true,
'color-named': 'never',
'color-hex-length': 'long',
'string-quotes': 'single',
'max-empty-lines': 1,
'rule-empty-line-before': ['always', { except: ['after-single-line-comment', 'first-nested'] }],
'at-rule-empty-line-before': ['always', { except: ['after-same-name', 'inside-block'] }],
'declaration-empty-line-before': [
'always',
{ except: ['first-nested', 'after-comment', 'after-declaration'] }
],
'no-eol-whitespace': [true, { ignore: ['empty-lines'] }],
'custom-property-empty-line-before': [
'always',
{ except: ['first-nested', 'after-comment', 'after-custom-property'] }
]
}
}