forked from mozilla/protocol-tokens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylelint.config.js
42 lines (41 loc) · 1.62 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
'use strict';
module.exports = {
'rules': {
'color-no-invalid-hex': true,
'font-family-no-duplicate-names': true,
'font-family-name-quotes': 'always-where-recommended',
'function-name-case': 'lower',
'function-url-no-scheme-relative': true,
'function-url-quotes': 'always',
'number-no-trailing-zeros': true,
'length-zero-no-unit': true,
'unit-case': 'lower',
'unit-no-unknown': true,
'property-case': 'lower',
'property-no-unknown': true,
'keyframe-declaration-no-important': true,
'declaration-no-important': true,
'declaration-block-no-shorthand-property-overrides': true,
'declaration-block-single-line-max-declarations': 1,
'declaration-block-trailing-semicolon': 'always',
'declaration-block-semicolon-newline-after': 'always-multi-line',
'block-no-empty': true,
'selector-pseudo-class-no-unknown': true,
'selector-pseudo-element-no-unknown': true,
'selector-pseudo-element-case': 'lower',
'selector-type-case': 'lower',
'selector-type-no-unknown': true,
'selector-max-empty-lines': 0,
'media-feature-name-case': 'lower',
'media-feature-name-no-unknown': [true, {
ignoreMediaFeatureNames: ['min--moz-device-pixel-ratio']
}],
'comment-no-empty': true,
'max-nesting-depth': 5,
'no-invalid-double-slash-comments': true,
'no-unknown-animations': true,
'no-extra-semicolons': true,
'no-missing-end-of-source-newline': true,
'no-eol-whitespace': true
}
};