-
Notifications
You must be signed in to change notification settings - Fork 176
/
stylelint.config.js
47 lines (47 loc) · 1.34 KB
/
stylelint.config.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
module.exports = {
extends: ['stylelint-config-recommended-vue'],
customSyntax: 'postcss-less',
rules: {
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'layer', 'apply', 'variants', 'responsive', 'screen']
}
],
'block-no-empty': true,
'color-no-invalid-hex': true,
'comment-no-empty': true,
'declaration-block-trailing-semicolon': 'always',
'rule-empty-line-before': [
// 要求或禁止在规则声明之前有空行
'always-multi-line',
{
except: ['first-nested'],
ignore: ['after-comment']
}
],
'at-rule-name-case': 'lower',
'no-eol-whitespace': [
true,
{
ignore: ['empty-lines']
}
],
'no-missing-end-of-source-newline': null, // 文件最后不需要一个空行
'declaration-block-no-duplicate-properties': [
true,
{
ignore: ['consecutive-duplicates-with-different-values']
}
],
'declaration-block-no-shorthand-property-overrides': true,
'font-family-no-duplicate-names': true,
'font-family-no-missing-generic-family-keyword': true,
'function-calc-no-unspaced-operator': true,
'no-descending-specificity': true,
'no-duplicate-at-import-rules': true,
'no-duplicate-selectors': true,
'no-empty-source': true,
'no-extra-semicolons': true
}
}