-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
24 lines (22 loc) · 928 Bytes
/
.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
const propertyOrder = require('stylelint-config-clean-order');
// Overwrite empty line threshold since default value of 6 is very low
propertyOrder.rules['order/properties-order'][1].unspecified = 'bottom';
propertyOrder.rules['order/properties-order'][1].emptyLineMinimumPropertyThreshold = 25;
module.exports = {
defaultSeverity: 'warning', // treats all issues as 'warnings' so that we can use it in CI env
reportDescriptionlessDisables: true,
extends: ['stylelint-config-standard', 'stylelint-config-html'],
plugins: ['stylelint-declaration-block-no-ignored-properties', 'stylelint-order'],
rules: {
...propertyOrder.rules,
'plugin/declaration-block-no-ignored-properties': true,
'custom-property-empty-line-before': 'never',
'comment-empty-line-before': [
'always',
{
except: ['first-nested'],
ignore: ['after-comment', 'stylelint-commands'],
},
],
},
};