vben
2022-03-18 b303f1bea3749c9fee51d401e3d394abe9209121
提交 | 用户 | age
2f6253 1 module.exports = {
2   root: true,
3   plugins: ['stylelint-order'],
3fcfac 4   customSyntax: 'postcss-html',
2f6253 5   extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
6   rules: {
acea18 7     'selector-class-pattern': null,
2f6253 8     'selector-pseudo-class-no-unknown': [
9       true,
10       {
11         ignorePseudoClasses: ['global'],
12       },
13     ],
4f0c6f 14     'selector-pseudo-element-no-unknown': [
V 15       true,
16       {
17         ignorePseudoElements: ['v-deep'],
18       },
19     ],
2f6253 20     'at-rule-no-unknown': [
21       true,
22       {
893f3c 23         ignoreAtRules: [
V 24           'tailwind',
25           'apply',
26           'variants',
27           'responsive',
28           'screen',
29           'function',
30           'if',
31           'each',
32           'include',
33           'mixin',
34         ],
2f6253 35       },
36     ],
37     'no-empty-source': null,
d5d4c4 38     'named-grid-areas-no-invalid': null,
2f6253 39     'unicode-bom': 'never',
40     'no-descending-specificity': null,
41     'font-family-no-missing-generic-family-keyword': null,
42     'declaration-colon-space-after': 'always-single-line',
43     'declaration-colon-space-before': 'never',
00fca0 44     // 'declaration-block-trailing-semicolon': 'always',
2f6253 45     'rule-empty-line-before': [
46       'always',
47       {
48         ignore: ['after-comment', 'first-nested'],
49       },
50     ],
8a9ca4 51     'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
e09068 52     'order/order': [
V 53       [
54         'dollar-variables',
55         'custom-properties',
56         'at-rules',
57         'declarations',
58         {
59           type: 'at-rule',
60           name: 'supports',
61         },
62         {
63           type: 'at-rule',
64           name: 'media',
65         },
66         'rules',
67       ],
68       { severity: 'warning' },
69     ],
2f6253 70   },
8a9ca4 71   ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts'],
0f4429 72   overrides: [
V 73     {
c2b207 74       files: ['*.vue', '**/*.vue', '*.html', '**/*.html'],
0f4429 75       extends: ['stylelint-config-recommended', 'stylelint-config-html'],
V 76       rules: {
c2b207 77         'keyframes-name-pattern': null,
0f4429 78         'selector-pseudo-class-no-unknown': [
V 79           true,
80           {
81             ignorePseudoClasses: ['deep', 'global'],
82           },
83         ],
84         'selector-pseudo-element-no-unknown': [
85           true,
86           {
87             ignorePseudoElements: ['v-deep', 'v-global', 'v-slotted'],
88           },
89         ],
90       },
91     },
92   ],
2f6253 93 };