-
Notifications
You must be signed in to change notification settings - Fork 1
/
.stylelintrc.js
48 lines (45 loc) · 1.37 KB
/
.stylelintrc.js
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
36
37
38
39
40
41
42
43
44
45
46
47
48
// @ts-check
const KEBAB_CASE_PATTERN = '^_?[a-z0-9]+(-[a-z0-9]+)*$';
/** @type {import('stylelint').Config} */
const config = {
defaultSeverity: 'error',
allowEmptyInput: true,
extends: [
'stylelint-config-recommended-scss',
// should be last
'stylelint-prettier/recommended'
],
rules: {
'rule-empty-line-before': [
'always-multi-line',
{
except: ['first-nested'],
ignore: ['after-comment']
}
],
// todo set to null, because errors appear when use css-variable (var(--kbq-size-s))
'no-unknown-custom-properties': null,
'no-descending-specificity': null,
'selector-type-no-unknown': [
true,
{
ignore: ['custom-elements'],
ignoreTypes: ['app']
}
],
'font-family-no-missing-generic-family-keyword': [
true,
{
ignoreFontFamilies: [
'Inter',
'Koobiq Icons',
'JetBrains Mono'
]
}
],
'scss/operator-no-newline-after': null,
'scss/selector-no-union-class-name': true,
'scss/at-mixin-pattern': [KEBAB_CASE_PATTERN, { message: 'Expected @mixin name to be kebab-case.' }]
}
};
module.exports = config;