forked from t3-innovation-network/desm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylelint.config.mjs
More file actions
28 lines (28 loc) · 861 Bytes
/
stylelint.config.mjs
File metadata and controls
28 lines (28 loc) · 861 Bytes
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
/** @type {import('stylelint').Config} */
export default {
ignoreFiles: ['builds', 'coverage'],
extends: ['stylelint-config-standard', 'stylelint-config-standard-scss'],
plugins: ['stylelint-selector-bem-pattern', 'stylelint-order'],
rules: {
'block-no-empty': true,
'no-descending-specificity': null,
'selector-class-pattern': null,
'order/properties-alphabetical-order': true,
'plugin/selector-bem-pattern': {
componentName: '[A-Z]+',
componentSelectors: {
initial: '^\\.{componentName}(?:-[a-z]+)?$',
combined: '^\\.combined-{componentName}-[a-z]+$',
},
utilitySelectors: '^\\.util-[a-z]+$',
},
'declaration-property-value-no-unknown': [
true,
{
ignoreProperties: {
'/.+/': ['/[.(rfs)$]+/'], // Ignore SCSS variables
},
},
],
},
};