forked from w3c/wcag-em-report-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.js
50 lines (45 loc) · 1.05 KB
/
stylelint.config.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
47
48
49
50
/**
* Stylelint configuration for WCAG-EM Reporting Tool
* ---
* Intended to adhere to a consistent style notation
* and to improve readabillity.
*
* @type {Object}
*/
module.exports = {
extends: 'stylelint-config-standard',
plugins: ['stylelint-scss'],
rules: {
/**
* Enable scss at-rule to add scss at-rules to whitelist
*/
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
/**
* Force multiline declarations
* @type {Array}
*/
'block-closing-brace-newline-before': 'always',
'block-opening-brace-newline-after': 'always',
/**
* Add empty line before comments.
* Comments belong to folowing ruleblocks.
*/
'comment-empty-line-before': 'always',
/**
* Add extra empty line between rule blocks
*/
'rule-empty-line-before': [
'always',
{
ignore: ['after-comment']
}
],
/**
* Attribute selector require quotes (consistency), like:
*
* [attribute="value"]
*/
'selector-attribute-quotes': 'always'
}
};