-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.stylelintrc.js
More file actions
39 lines (34 loc) · 949 Bytes
/
.stylelintrc.js
File metadata and controls
39 lines (34 loc) · 949 Bytes
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
const { getStylelintVendorPrefixRules } = require('t-comm');
module.exports = {
root: true,
defaultSeverity: 'error',
extends: ['stylelint-config-common'],
plugins: [
'stylelint-scss',
'stylelint-plugin-light',
],
customSyntax: 'postcss-html',
overrides: [
{
files: ['**/*.{scss,css,sass,vue}'],
customSyntax: 'postcss-scss',
},
],
rules: {
'declaration-property-value-disallowed-list': { '/^border$/': ['none'] },
'declaration-no-important': null,
'selector-max-id': 10,
...getStylelintVendorPrefixRules(),
// 不处理 @include
'at-rule-empty-line-before': null,
// 不处理 at-rules,防止优先级被改动,导致异常
// https://github.com/hudochenkov/stylelint-order/blob/master/rules/order/README.md
'order/order': [
'declarations',
'rules',
],
'light/no-absolute-import': [true, {
paths: ['src/packages'],
}],
},
};