forked from starknet-io/starkgate-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
61 lines (61 loc) · 1.74 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
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
extends: [
'stylelint-config-css-modules',
'stylelint-config-standard',
'stylelint-config-standard-scss',
'stylelint-config-prettier'
],
plugins: ['stylelint-scss', 'stylelint-prettier'],
ignoreFiles: ['**/*.js', '**/*.jsx'],
rules: {
'property-no-unknown': [true, {ignoreProperties: ['/^color/', 'mainOffset', 'primaryFont']}],
'selector-pseudo-class-no-unknown': [true, {ignorePseudoClasses: ['export']}],
'selector-class-pattern': '^[a-z][a-zA-Z0-9]+$',
'selector-pseudo-element-no-unknown': [true, {ignorePseudoElements: ['input-placeholder']}],
'alpha-value-notation': 'number',
'color-function-notation': 'legacy',
'no-empty-source': null,
'shorthand-property-no-redundant-values': null,
'string-quotes': 'single',
'scss/dollar-variable-pattern': ['/^color/', {ignore: 'global'}],
'scss/at-import-partial-extension': null,
'scss/comment-no-empty': null,
'scss/double-slash-comment-empty-line-before': null,
'prettier/prettier': [true, {severity: 'warning'}],
'at-rule-empty-line-before': [
'always',
{
except: ['first-nested', 'blockless-after-same-name-blockless'],
ignore: ['after-comment'],
ignoreAtRules: ['else']
}
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'extend',
'at-root',
'debug',
'warn',
'error',
'if',
'else',
'for',
'each',
'while',
'mixin',
'include',
'content',
'return',
'function',
'tailwind',
'apply',
'responsive',
'variants',
'screen'
]
}
]
}
};