-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.js
67 lines (66 loc) · 1.99 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
'use strict';
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-recommended-scss'],
rules: {
'at-rule-empty-line-before': [
'always',
{
except: ['blockless-after-blockless', 'first-nested'],
ignore: ['after-comment'],
ignoreAtRules: ['else'],
},
],
'import-notation': 'string',
'scss/at-else-closing-brace-newline-after': 'always-last-in-chain',
'scss/at-else-closing-brace-space-after': 'always-intermediate',
'scss/at-else-empty-line-before': 'never',
'scss/at-else-if-parentheses-space-before': 'always',
'scss/at-function-parentheses-space-before': 'never',
'scss/at-function-pattern': [
'^(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$',
{
message: 'Expected function name to be kebab-case',
},
],
'scss/at-if-closing-brace-newline-after': 'always-last-in-chain',
'scss/at-if-closing-brace-space-after': 'always-intermediate',
'scss/at-mixin-argumentless-call-parentheses': 'never',
'scss/at-mixin-parentheses-space-before': 'never',
'scss/at-mixin-pattern': [
'^(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$',
{
message: 'Expected mixin name to be kebab-case',
},
],
'scss/at-rule-conditional-no-parentheses': true,
'scss/dollar-variable-colon-space-after': 'always-single-line',
'scss/dollar-variable-colon-space-before': 'never',
'scss/dollar-variable-empty-line-before': [
'always',
{
except: ['after-dollar-variable', 'first-nested'],
ignore: ['after-comment', 'inside-single-line-block'],
},
],
'scss/dollar-variable-pattern': [
'^(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$',
{
message: 'Expected variable to be kebab-case',
},
],
'scss/double-slash-comment-empty-line-before': [
'always',
{
except: ['first-nested'],
ignore: ['between-comments', 'stylelint-commands'],
},
],
'scss/double-slash-comment-whitespace-inside': 'always',
'scss/percent-placeholder-pattern': [
'^(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$',
{
message: 'Expected placeholder to be kebab-case',
},
],
},
};