-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
37 lines (37 loc) · 984 Bytes
/
.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
module.exports = {
extends: 'stylelint-config-standard-scss',
rules: {
// Fix later
'no-descending-specificity': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['screen', 'tailwind']
}
],
'scss/dollar-variable-pattern': [
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*|([a-z][a-z0-9]*)(_[a-z0-9]+)*$',
{
message: 'Expected variable to be kebab-case or snake_case'
}
],
'scss/no-global-function-names': null,
'selector-class-pattern': [
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*|([a-z][a-z0-9]*)(_[a-z0-9]+)*$',
{
message: 'Expected class selector to be kebab-case or snake_case'
}
],
'selector-id-pattern': [
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*|([a-z][a-z0-9]*)(_[a-z0-9]+)*$',
{
message: 'Expected id selector to be kebab-case or snake_case'
}
],
'value-keyword-case': [
'lower',
{
camelCaseSvgKeywords: true
}]
}
};