-
Notifications
You must be signed in to change notification settings - Fork 2
/
.stylelintrc.cjs
56 lines (56 loc) · 1.11 KB
/
.stylelintrc.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* @Description:
* @Author: BG7ZAG [email protected]
* @Date: 2023-08-11
* @LastEditors: BG7ZAG [email protected]
* @LastEditTime: 2023-08-17
*/
/**
* @type {import('stylelint').Config}
*/
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-standard-scss',
'stylelint-config-recommended-vue/scss',
'stylelint-config-recess-order'
],
rules: {
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['deep', 'global', 'local']
}
],
'selector-class-pattern': [
'^([a-z0-9]|_|-)*$',
{
message: 'class 只能以 小写字母,数字, -, _ 进行命名'
}
],
'function-no-unknown': [
true,
{
ignoreFunctions: ['v-bind']
}
],
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'tailwind',
'apply',
'variants',
'responsive',
'screen',
'function',
'if',
'each',
'include',
'mixin'
]
}
],
'media-feature-range-notation': null
}
}