-
Notifications
You must be signed in to change notification settings - Fork 13
/
.stylelintrc.js
64 lines (58 loc) · 1.24 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
'use strict';
/* eslint-disable-next-line n/no-unpublished-require */
const { browsers } = require('./tests/dummy/config/targets');
module.exports = {
extends: ['stylelint-config-standard'],
plugins: ['stylelint-no-unsupported-browser-features', 'stylelint-order'],
rules: {
/*
Customize plugins
*/
'order/properties-order': [
[
// Defined by ember-css-modules
'composes',
],
{
unspecified: 'bottomAlphabetical',
},
],
'plugin/no-unsupported-browser-features': [
true,
{
browsers,
ignore: [
// grid-template-columns falsely identified as multicolumn
'multicolumn',
],
},
],
/*
Customize rules
*/
'declaration-block-no-redundant-longhand-properties': [
true,
{
ignoreShorthands: ['grid-gap', 'grid-template'],
},
],
'property-no-unknown': [
true,
{
ignoreProperties: [
// Defined by ember-css-modules
'composes',
],
},
],
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: [
// Defined by ember-css-modules
'global',
],
},
],
},
};