-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
30 lines (30 loc) · 836 Bytes
/
index.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
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-recommended-scss'
],
syntax: 'scss',
plugins: [
'stylelint-scss',
'stylelint-selector-bem-pattern'
],
rules: {
'import-notation': 'string',
'selector-not-notation': 'simple',
'media-query-no-invalid': null,
'selector-pseudo-element-colon-notation': null,
'alpha-value-notation': null,
'scss/at-import-partial-extension': null,
'color-hex-length': null,
'selector-class-pattern': null,
'scss/no-global-function-names': null,
'plugin/selector-bem-pattern': {
componentName: '[A-Z]+',
componentSelectors: {
initial: '^\\.{componentName}(?:-[a-z]+)?$',
combined: '^\\.combined-{componentName}-[a-z]+$'
},
utilitySelectors: '^\\.util-[a-z]+$'
}
}
};