-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
38 lines (36 loc) · 1.23 KB
/
.stylelintrc.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
module.exports = {
extends: 'stylelint-config-standard',
ignoreFiles: [
'node_modules',
'bower_components'
],
rules: {
'font-family-no-missing-generic-family-keyword': null,
'at-rule-no-unknown': null,
'at-rule-name-space-after': 'always',
'at-rule-semicolon-newline-after': 'always',
'block-closing-brace-newline-after': 'always',
'block-closing-brace-newline-before': 'always',
'block-no-empty': true,
'block-opening-brace-newline-after': 'always',
'color-hex-case': 'upper',
'color-hex-length': 'short',
'color-no-invalid-hex': true,
'declaration-bang-space-after': 'never',
'declaration-block-semicolon-newline-after': 'always',
'declaration-block-trailing-semicolon': 'always',
'declaration-colon-newline-after': 'always-multi-line',
'declaration-colon-space-before': 'never',
'declaration-empty-line-before': 'never',
'declaration-property-unit-whitelist': {
"font-size": ["rem", "em", "px"],
"/^animation/": ["ms"]
},
'comment-empty-line-before': ['always', {
except: ['first-nested'],
ignore: ['after-comment', 'stylelint-commands']
}],
'comment-whitespace-inside': 'always',
'no-descending-specificity': null
}
}