-
Notifications
You must be signed in to change notification settings - Fork 2
/
stylelint.config.cjs
35 lines (34 loc) · 1.03 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
35
module.exports = {
extends: ['stylelint-config-html', '@tinkoff/stylelint-config', 'stylelint-config-standard-scss'],
plugins: ['stylelint-scss', 'stylelint-csstree-validator'],
overrides: [
{
files: ['**/*.{astro,html}'],
customSyntax: 'postcss-html'
},
{
files: ['src/**/*.{scss,css}'],
customSyntax: 'postcss-scss'
}
],
rules: {
'csstree/validator': {
syntaxExtensions: ['sass'],
ignoreAtrules: ['custom-at-rule', '-webkit-keyframes'],
ignoreProperties: ['composes', 'mask', '-webkit-mask', '-webkit'],
ignoreValue: '^oklch'
},
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
// 'scss/selector-no-redundant-nesting-selector': true,
'scss/at-rule-no-unknown': true,
'number-leading-zero': 'always',
'color-no-hex': true,
'max-empty-lines': 2,
'no-descending-specificity': true,
'no-duplicate-selectors': true,
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global', 'nth-last-col'] }]
},
ignoreFiles: ['node_modules/*'],
defaultSeverity: 'warning'
}