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