-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.stylelintrc.cjs
36 lines (36 loc) · 1.29 KB
/
.stylelintrc.cjs
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
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-standard-scss',
'stylelint-config-prettier',
],
plugins: ['stylelint-order', 'stylelint-selector-bem-pattern'],
ignoreFiles: ['node_modules/**', 'src/assets/fonts/**', 'src/assets/style/reset.css', 'public/**'],
overrides: [
{
files: ['*.vue', '**/*.vue'],
customSyntax: 'postcss-html',
},
],
rules: {
"plugin/selector-bem-pattern": {
"componentName": "[A-Z]+",
"componentSelectors": {
"initial": "^\\.{componentName}(?:-[a-z]+)?$",
"combined": "^\\.combined-{componentName}-[a-z]+$"
},
"utilitySelectors": "^\\.util-[a-z]+$"
},
"selector-class-pattern": "^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$",
'scss/at-rule-no-unknown': [
true,
{ ignoreAtRules: ['extends', 'ignores', 'include', 'mixin', 'if', 'else', 'media', 'for', 'tailwind'] },
],
'at-rule-no-unknown': [
true,
{ ignoreAtRules: ['extends', 'ignores', 'include', 'mixin', 'if', 'else', 'media', 'for', 'tailwind'] },
],
'order/order': ['custom-properties', 'declarations'],
'order/properties-order': ['width', 'height'],
},
}