-
Notifications
You must be signed in to change notification settings - Fork 3
/
stylelint.config.cjs
34 lines (31 loc) · 1.04 KB
/
stylelint.config.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
/**
* @type {import("stylelint").Config}
*/
module.exports = {
extends: [
'stylelint-config-standard-scss',
'stylelint-config-sass-guidelines',
'stylelint-config-idiomatic-order',
'stylelint-config-standard-vue',
'stylelint-config-prettier-scss',
],
plugins: ['stylelint-order'],
rules: {
'block-no-empty': null,
'max-nesting-depth': 3,
'selector-max-compound-selectors': 3,
'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]+)*)?(?:\\[.+\\])?$',
{ message: 'Class names must follow BEM convention' },
],
'declaration-block-no-duplicate-properties': true,
'string-quotes': 'single',
'selector-no-qualifying-type': [true, { ignore: ['attribute'] }],
'order/properties-alphabetical-order': null,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
'function-no-unknown': null,
'scss/function-no-unknown': true,
},
ignoreFiles: ['dist/**/*'],
}