forked from wowsims/cata
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathstylelint.config.mjs
More file actions
41 lines (40 loc) · 1.23 KB
/
stylelint.config.mjs
File metadata and controls
41 lines (40 loc) · 1.23 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
29
30
31
32
33
34
35
36
37
38
39
40
41
const kebabCasePattern = /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/;
export default {
plugins: ['stylelint-scss', 'stylelint-prettier', '@namics/stylelint-bem'],
customSyntax: 'postcss-scss',
ignoreFiles: ['node_modules'],
rules: {
'prettier/prettier': true,
'max-nesting-depth': [6, { ignore: ['pseudo-classes'] }],
'no-empty-source': null,
'no-descending-specificity': null,
'plugin/stylelint-bem-namics': {
patternPrefixes: [],
helperPrefixes: [],
},
'keyframes-name-pattern': kebabCasePattern,
'at-rule-empty-line-before': [
'always',
{
except: ['first-nested'],
ignore: ['after-comment', 'blockless-after-blockless', 'blockless-after-same-name-blockless'],
ignoreAtRules: ['else'],
},
],
'at-rule-no-unknown': null,
'at-rule-no-vendor-prefix': true,
'rule-empty-line-before': [
'always',
{
except: ['first-nested'],
ignore: ['after-comment'],
},
],
'property-no-vendor-prefix': true,
'scss/at-rule-no-unknown': true,
'scss/dollar-variable-first-in-block': [true, { ignore: ['comments', 'imports'] }],
'scss/dollar-variable-colon-space-after': 'always',
'scss/dollar-variable-pattern': kebabCasePattern,
'scss/at-if-closing-brace-newline-after': 'always-last-in-chain',
},
};