-
Notifications
You must be signed in to change notification settings - Fork 178
/
.stylelintrc.js
69 lines (61 loc) · 1.66 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
processors: [
[
'stylelint-processor-styled-components',
{
ignoreFiles: ['**/*.css'],
},
],
],
extends: ['stylelint-config-standard', 'stylelint-config-styled-components'],
ignoreFiles: ['api/**', '**/dist/**', '**/coverage/**', '**/venv/**'],
rules: {
'selector-class-pattern': /^[a-z0-9_]+$/,
// support css-modules
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['export', 'import', 'global', 'local'],
},
],
'property-no-unknown': [
true,
{
ignoreProperties: [
// css-modules
// TODO(mc, 2018-02-09): stop using composes
'composes',
'compose-with',
// lost grid (http://lostgrid.org/docs.html)
// TODO(mc, 2018-02-09): use stylelint-config-lost once stylelint-
// config-css-modules property-no-unknown no longer conflicts
'lost-align',
'lost-center',
'lost-column',
'lost-flex-container',
'lost-masonry-column',
'lost-masonry-wrap',
'lost-move',
'lost-offset',
'lost-row',
'lost-unit',
'lost-utility',
'lost-waffle',
],
},
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
// TODO(mc, 2018-02-09): stop using @value
'value',
// lost grid (http://lostgrid.org/docs.html)
// TODO(mc, 2018-02-09): use stylelint-config-lost once stylelint-
// config-css-modules at-rule-no-unknown no longer conflicts
'lost',
],
},
],
},
}