This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
103 lines (103 loc) · 3.25 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
module.exports = {
extends: [
'stylelint-config-prettier',
'stylelint-config-standard',
'stylelint-config-recommended',
'stylelint-config-recommended-scss',
'stylelint-config-css-modules',
],
plugins: [
'stylelint-scss',
'stylelint-selector-bem-pattern',
'stylelint-order',
'stylelint-declaration-block-no-ignored-properties',
],
rules: {
'declaration-colon-space-after': 'always',
'declaration-colon-space-before': 'never',
'block-opening-brace-space-before': 'always',
'block-closing-brace-empty-line-before': 'never',
'declaration-empty-line-before': [
'never',
{
ignore: ['after-declaration'],
},
],
'declaration-block-single-line-max-declarations': 1,
'comment-empty-line-before': [
'always',
{
ignore: ['stylelint-commands', 'after-comment'],
},
],
'at-rule-blacklist': ['extend', 'debug'],
'at-rule-no-vendor-prefix': true,
'max-nesting-depth': 3,
'declaration-no-important': true,
'no-duplicate-selectors': true,
'block-no-empty': true,
'at-rule-empty-line-before': [
'always',
{
except: ['first-nested'],
ignoreAtRules: ['import'],
},
],
'at-rule-name-case': 'lower',
'color-hex-case': 'lower',
'color-hex-length': 'short',
'color-no-invalid-hex': true,
'color-named': 'never',
'comment-no-empty': true,
'comment-whitespace-inside': 'always',
'declaration-bang-space-after': 'never',
'declaration-bang-space-before': 'always',
'declaration-block-semicolon-newline-after': 'always',
'declaration-block-semicolon-space-before': 'never',
'declaration-block-trailing-semicolon': 'always',
'declaration-block-no-duplicate-properties': true,
'declaration-property-value-blacklist': {
'/^border/': ['none'],
},
'font-family-no-missing-generic-family-keyword': true,
'function-comma-space-after': 'always-single-line',
'function-parentheses-space-inside': 'never-single-line',
'function-comma-space-before': 'never',
'function-url-quotes': 'always',
indentation: [2],
'length-zero-no-unit': true,
'max-empty-lines': 1,
'media-feature-name-no-vendor-prefix': true,
'media-feature-parentheses-space-inside': 'never',
'no-missing-end-of-source-newline': true,
'number-leading-zero': 'always',
'number-no-trailing-zeros': true,
'property-no-unknown': true,
'property-no-vendor-prefix': true,
'rule-empty-line-before': [
'always',
{
ignore: ['after-comment'],
except: ['first-nested'],
},
],
'selector-class-pattern': [
'^[a-z0-9\\-]+$',
{
message:
'Selector should be written in lowercase with hyphens (selector-class-pattern)',
},
],
'selector-list-comma-newline-after': 'always',
'selector-max-compound-selectors': 3,
'selector-max-id': 0,
'selector-no-qualifying-type': true,
'selector-no-vendor-prefix': true,
'selector-pseudo-element-colon-notation': 'double',
'selector-pseudo-element-no-unknown': true,
'shorthand-property-no-redundant-values': true,
'string-quotes': 'single',
'value-no-vendor-prefix': true,
'value-list-comma-space-after': 'always-single-line',
},
};