-
-
Notifications
You must be signed in to change notification settings - Fork 973
/
Copy path.stylelintrc.mjs
26 lines (26 loc) · 1.06 KB
/
.stylelintrc.mjs
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
/** @type {import('stylelint').Config} */
export default {
extends: 'stylelint-config-recommended-scss',
rules: {
'no-empty-source': null,
'block-no-empty': [true, { severity: 'warning' }],
'no-descending-specificity': null,
'font-family-no-missing-generic-family-keyword': [
true,
{ ignoreFontFamilies: ['Material Icons'] },
],
'selector-type-no-unknown': null, // stylelint doesn't recognize angular components
'scss/comment-no-empty': null, // allow for double slash multiline comments
'scss/load-no-partial-leading-underscore': null, // this project uses underscored files
'scss/operator-no-newline-after': null, // prettier conficts with this rule
'scss/operator-no-unspaced': null, // code style not error
'scss/load-partial-extension': null, // it's code style not an error
'scss/no-global-function-names': null, // to pass this a big migration is required, to be re-enabled later
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['ng-deep'],
},
],
},
};