-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.cjs
30 lines (30 loc) · 1.28 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
module.exports = {
cache: true,
extends: [
'stylelint-config-standard-scss',
'stylelint-config-recommended-vue',
],
ignoreFiles: ['public/**/*.css', 'assets/**/*.css'],
defaultSeverity: 'warning',
ignoreDisables: true,
rules: {
'selector-pseudo-element-no-unknown': null, // ::v-deep
'at-rule-no-unknown': null,
'at-rule-empty-line-before': null,
'no-descending-specificity': null,
'no-empty-source': null,
'value-keyword-case': ['lower', { ignoreProperties: ['/^\\$/'] }], // https://github.com/stylelint/stylelint/issues/4622
'selector-class-pattern': null, // Allow BEM pattern
'scss/dollar-variable-pattern': null, // Align with Design system naming
'value-no-vendor-prefix': null, // Allow -webkit-box for multiline clamps
'property-no-vendor-prefix': null, // Allow -webkit-appearance for range styling
'color-function-notation': null, // Allow SCSS short color methods
'function-no-unknown': [true, { ignoreFunctions: ['px2rem'] }],
'declaration-property-value-no-unknown': null,
'custom-property-pattern': null,
'custom-property-empty-line-before': null, // Allow usage in template
'selector-not-notation': 'simple',
'media-feature-range-notation': 'prefix',
'scss/operator-no-newline-after': null,
},
}