-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstylelint.config.js
50 lines (49 loc) · 1.23 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
48
49
50
import PostCssSCSS from 'postcss-scss'
export default {
// add your custom config here
// https://stylelint.io/user-guide/configuration
extends: [
'stylelint-config-standard',
'stylelint-config-recess-order',
'stylelint-config-html/vue'
],
plugins: [
'stylelint-scss',
'stylelint-order',
'stylelint-declaration-block-no-ignored-properties'
],
ignoreFiles: [
'node_modules/**/*',
'dist/**/*',
'**/typings/**/*',
'public/css/**/*'
],
rules: {
'selector-pseudo-class-no-unknown': [
true,
{ ignorePseudoClasses: ['global', 'deep'] }
],
'font-family-name-quotes': null,
'font-family-no-missing-generic-family-keyword': null,
'max-nesting-depth': [
10,
{
ignore: ['blockless-at-rules', 'pseudo-classes']
}
],
'declaration-block-no-duplicate-properties': true,
'no-duplicate-selectors': true,
'no-descending-specificity': null,
'selector-class-pattern': null,
'value-no-vendor-prefix': [true, { ignoreValues: ['box'] }],
'at-rule-no-unknown': null,
'import-notation': null,
'custom-property-pattern': null
},
overrides: [
{
files: ['**/*.scss', '*.scss'],
customSyntax: PostCssSCSS
}
]
}