-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
37 lines (37 loc) · 1.06 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
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
plugins: ['stylelint-order'],
rules: {
'import-notation': 'string',
'selector-class-pattern': null,
'at-rule-empty-line-before': null,
'at-rule-no-unknown': null,
'length-zero-no-unit': true,
'shorthand-property-no-redundant-values': true,
'declaration-block-no-duplicate-properties': true,
'no-descending-specificity': true,
'selector-max-id': null,
'max-nesting-depth': 10,
'declaration-block-single-line-max-declarations': 1,
'selector-max-type': [0, { ignore: ['child', 'descendant', 'compounded'] }],
'order/order': [
'custom-properties',
'dollar-variables',
'declarations',
'rules',
'at-rules',
],
'order/properties-order': [],
},
overrides: [
{
files: ['*.scss', '**/*.scss'],
customSyntax: 'postcss-scss',
},
{
files: ['*.less', '**/*.less'],
customSyntax: 'postcss-less',
},
],
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts'],
};