-
Notifications
You must be signed in to change notification settings - Fork 12
/
.stylelintrc.cjs
36 lines (35 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
// https://stylelint.io/user-guide/get-started
// 执行npx stylelint **/*.{css,less,scss,vue} 进行校验
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-recommended-vue',
],
// rule覆盖(根据自己喜好来配置)
rules: {
'declaration-colon-newline-after': null,
'value-list-comma-newline-after': null,
'annotation-no-unknown': null,
'at-rule-no-unknown': null,
'keyframe-selector-notation': null,
'keyframe-block-no-duplicate-selectors': null,
'property-no-vendor-prefix': null,
'custom-property-pattern': null,
'color-hex-length': 'short',
'color-function-notation': null,
'alpha-value-notation': null,
'value-no-vendor-prefix': null,
'selector-class-pattern': null,
'function-url-quotes': null,
'no-descending-specificity': null,
'font-family-no-missing-generic-family-keyword': null,
'declaration-block-no-redundant-longhand-properties': null,
},
overrides: [
// 若项目中存在scss文件,添加以下配置
{
files: '**/*.scss',
customSyntax: 'postcss-scss',
},
],
};