-
Notifications
You must be signed in to change notification settings - Fork 1
/
.stylelintrc.js
55 lines (53 loc) · 1.36 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
module.exports = {
/**
* Extend an existing configuration.
* @type {String|Array.<String>}
* @see {@link https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#extends}
*/
extends: [
/**
* The standard shareable config for stylelint.
* @type {string}
* @see {@link https://github.com/stylelint/stylelint-config-standard}
*/
'stylelint-config-standard',
/**
* Turns off all rules that are unnecessary or might conflict with prettier.
* @type {string}
* @see {@link https://github.com/shannonmoeller/stylelint-config-prettier}
*/
'stylelint-config-prettier'
],
/**
* @type {array}
*/
plugins: [],
/**
* @type {!Object}
*/
rules: {
'no-empty-source': null,
'no-descending-specificity': null,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['@apply']
}
],
'named-grid-areas-no-invalid': null,
'font-family-no-missing-generic-family-keyword': null,
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['ng-deep']
}
],
'selector-type-no-unknown': [
true,
{
ignoreTypes: ['/^mat-/', '/^fa-/', '/^app-/', '/^ngx/', '/^lfx', '@apply']
}
],
'unit-allowed-list': ['px', 'em', 'rem', '%', 's', 'vh', 'deg', 'ms', 'dpi', 'vw', 'fr']
}
};