-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathstylelint.config.js
47 lines (46 loc) · 1.04 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 = {
defaultSeverity: 'error',
extends: ['stylelint-config-standard-scss', 'stylelint-config-recommended-vue', 'stylelint-config-prettier'],
plugins: ['stylelint-order'],
rules: {
'max-empty-lines': 1,
'color-no-invalid-hex': true,
'color-hex-case': 'lower',
'block-no-empty': null,
'no-empty-source': null,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'forward', 'function', 'if', 'each', 'include', 'mixin', 'for'],
},
],
'scss/at-rule-no-unknown': null,
},
ignoreFiles: [
'**/*.js',
'**/*.jsx',
'**/*.ts',
'**/*.tsx',
'**/*.png',
'**/*.jpg',
'**/*.jpeg',
'**/*.gif',
'**/*.svg',
'**/*.mp3',
'**/*.mp4',
'**/*.webm',
'**/*.woff',
'**/*.woff2',
'**/*.ttf',
'**/*.woff',
'**/*.json',
'**/*.md',
'**/*.html',
],
}
// 以忽略整個檔案
/* stylelint-disable */
// 忽略下一行
/* stylelint-disable-next-line */
// 指定需要忽略的文件
// ignoreFiles: ["src/assets/scss/abc.scss"];