-
Notifications
You must be signed in to change notification settings - Fork 1
/
.stylelintrc.js
35 lines (33 loc) · 1.27 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
const propertyOrder = require('stylelint-config-clean-order');
// Overwrite empty line threshold
propertyOrder.rules['order/properties-order'][1].unspecified = 'bottom';
propertyOrder.rules['order/properties-order'][1].emptyLineMinimumPropertyThreshold = 25;
module.exports = {
defaultSeverity: 'warning',
reportDescriptionlessDisables: true,
extends: ['stylelint-config-standard'],
plugins: ['stylelint-declaration-block-no-ignored-properties', 'stylelint-order'],
rules: {
...propertyOrder.rules,
'plugin/declaration-block-no-ignored-properties': true,
'comment-empty-line-before': [
'always',
{ except: ['first-nested'], ignore: ['after-comment', 'stylelint-commands'] },
],
'custom-property-empty-line-before': 'never',
'declaration-block-no-redundant-longhand-properties': [true, { ignoreShorthands: ['/grid/'] }],
'property-no-vendor-prefix': [true, { ignoreProperties: ['/transition/'] }],
// tailwind
'at-rule-no-unknown': [true, { ignoreAtRules: ['tailwind', 'apply', 'layer', 'config'] }],
'function-no-unknown': [true, { ignoreFunctions: ['theme'] }],
},
overrides: [
{
files: '**/*.astro',
customSyntax: 'postcss-html',
rules: {
'selector-pseudo-class-no-unknown': null,
},
},
],
};