-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.stylelintrc.js
36 lines (36 loc) · 915 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
25
26
27
28
29
30
31
32
33
34
35
36
module.exports = {
plugins: ['stylelint-order', 'stylelint-use-logical'],
rules: {
'selector-class-pattern': null,
'no-descending-specificity': null,
'color-no-invalid-hex': true,
'declaration-no-important': true,
'max-nesting-depth': 4,
'length-zero-no-unit': true,
'declaration-block-no-duplicate-properties': true,
'declaration-block-no-redundant-longhand-properties': true,
'declaration-block-no-shorthand-property-overrides': true,
'block-no-empty': true,
'no-duplicate-selectors': true,
'csstools/use-logical': true,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['value', 'define-mixin', 'mixin'],
},
],
'property-no-unknown': [
true,
{
ignoreProperties: ['composes', 'composes-with'],
},
],
'function-no-unknown': [
true,
{
ignoreFunctions: ['strip'],
},
],
},
// ignoreFiles: ['app/styles/*.css', 'public/build/**/*.css'],
};