PPTist/.stylelintrc.js

35 lines
1.2 KiB
JavaScript
Raw Normal View History

2021-02-03 15:50:54 +08:00
// https://stylelint.io/user-guide/rules/list
2020-12-10 22:40:15 +08:00
module.exports = {
extends: 'stylelint-config-standard',
rules: {
2021-02-03 15:50:54 +08:00
'indentation': 2,
'max-nesting-depth': 4,
'max-empty-lines': null,
'no-eol-whitespace': true,
2020-12-10 22:40:15 +08:00
'no-missing-end-of-source-newline': null,
'no-descending-specificity': null,
2021-02-03 15:50:54 +08:00
'at-rule-empty-line-before': null,
2020-12-10 22:40:15 +08:00
'at-rule-no-unknown': null,
2021-02-03 15:50:54 +08:00
'rule-empty-line-before': null,
'number-leading-zero': null,
'string-no-newline': true,
'string-quotes': 'single',
2020-12-10 22:40:15 +08:00
'color-hex-case': 'lower',
'color-hex-length': 'short',
'color-no-invalid-hex': true,
'font-weight-notation': 'numeric',
2021-02-03 15:50:54 +08:00
'font-family-no-missing-generic-family-keyword': null,
2020-12-10 22:40:15 +08:00
'function-calc-no-unspaced-operator': true,
'function-url-quotes': 'never',
'block-no-empty': true,
'block-opening-brace-newline-after': 'always',
'block-opening-brace-space-before': 'always',
'declaration-block-no-duplicate-properties': true,
'declaration-block-semicolon-newline-after': 'always',
'declaration-block-trailing-semicolon': 'always',
'selector-pseudo-element-colon-notation': 'double',
2021-02-03 15:50:54 +08:00
'selector-pseudo-element-no-unknown': null,
'selector-list-comma-newline-after': null,
2020-12-11 10:47:53 +08:00
},
2020-12-10 22:40:15 +08:00
}