forked from kriasoft/react-firebase-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
46 lines (37 loc) · 1.23 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
38
39
40
41
42
43
44
45
46
/**
* React Static Boilerplate
* Copyright (c) 2015-present Kriasoft. All rights reserved.
*/
const primerConfig = require('stylelint-config-primer');
// stylelint configuration
// https://stylelint.io/user-guide/configuration/
module.exports = {
// https://github.com/styled-components/stylelint-processor-styled-components
processors: ['stylelint-processor-styled-components'],
extends: [
'stylelint-config-standard',
'stylelint-config-styled-components-processor',
],
syntax: 'scss',
plugins: [
// stylelint plugin to sort CSS rules content with specified order
// https://github.com/hudochenkov/stylelint-order
'stylelint-order',
],
rules: {
'at-rule-empty-line-before': null,
'block-opening-brace-space-after': null,
'block-closing-brace-space-before': null,
// https://github.com/hudochenkov/stylelint-order/blob/master/rules/order/README.md
'order/order': [
'custom-properties',
'dollar-variables',
'declarations',
'at-rules',
'rules',
],
'string-quotes': 'single',
// https://github.com/hudochenkov/stylelint-order/blob/master/rules/properties-order/README.md
'order/properties-order': primerConfig.rules['order/properties-order'],
},
};