-
Notifications
You must be signed in to change notification settings - Fork 2
/
stylelint.config.mjs
30 lines (30 loc) · 1.46 KB
/
stylelint.config.mjs
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
export default {
extends: [
// 'stylelint-config-standard',
'stylelint-config-standard-scss',
'stylelint-config-standard-vue/scss',
'stylelint-config-idiomatic-order',
'stylelint-config-css-modules',
// 'stylelint-config-prettier',
],
// plugins: ['stylelint-scss'],
// https://stylelint.io/user-guide/configuration
rules: {
'no-descending-specificity': null,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
// sass context: @use + @import
// https://github.com/stylelint/stylelint/issues/5133
'no-invalid-position-at-import-rule': null,
// BEM like selector
'selector-class-pattern': '^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)*(--[a-z0-9]([-]?[a-z0-9]+)*)?$',
'scss/no-global-function-names': null, // use global functions / variables / functions
'scss/comment-no-empty': null,
'function-no-unknown': null, // we use SCSS global imports for functions
'scss/function-no-unknown': null, // we use SCSS global imports for functions
'color-function-notation': null, // do not change rgba() to rgb()
'no-duplicate-selectors': null, // The & selector is considering as duplicate. See https://github.com/stylelint/stylelint/issues/7893
},
defaultSeverity: 'warning',
ignoreFiles: ['./assets/scss/vendors/_tarteaucitron.scss', './assets/scss/vendors/_orejime.scss', './dist/**/*.css'],
}