-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.js
46 lines (46 loc) · 1.74 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
export default {
plugins: [
'./dist/stylelint-selector-bem-pattern',
'./dist/stylelint-vkui',
'./dist/stylelint-logical-shorthands',
'./dist/stylelint-css-property-memory',
],
rules: {
'max-nesting-depth': [0, { ignoreAtRules: ['supports'] }],
'selector-max-id': 0,
'selector-max-type': 0,
'selector-max-universal': 0,
'selector-pseudo-element-colon-notation': 'double',
'rule-empty-line-before': ['always', { ignore: ['after-comment', 'first-nested'] }],
'comment-empty-line-before': ['always', { ignore: ['stylelint-commands'], except: ['first-nested'] }],
'declaration-block-single-line-max-declarations': 1,
'declaration-property-value-disallowed-list': {
'/^border/': ['none'],
'/^(@|--).+/': ['/^#/', '/^rgb/'],
},
'declaration-block-no-shorthand-property-overrides': true,
'at-rule-empty-line-before': ['always', { ignore: ['after-comment'], except: ['first-nested', 'after-same-name'] }],
'declaration-no-important': true,
'no-duplicate-selectors': true,
'color-named': 'never',
'function-url-scheme-disallowed-list': ['/^data:/'],
'length-zero-no-unit': [
true,
{
ignore: ['custom-properties'],
},
],
'property-disallowed-list': [/^\./, 'letter-spacing'],
'selector-pseudo-class-disallowed-list': ['root'],
'function-linear-gradient-no-nonstandard-direction': true,
'plugin/selector-bem-pattern': {
componentName: '^[A-Z][a-zA-Z0-9]+$',
componentSelectors: '^\\.{componentName}(?:__[a-z][a-zA-Z0-9]*)?(?:--[a-z][a-zA-Z0-9]*)?$',
implicitComponents: true,
ignoreCustomProperties: /.*/,
},
'plugin/vkui': true,
'plugin/logical-shorthands': null,
'plugin/css-property-memory': true,
},
};