-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
108 lines (107 loc) · 4.56 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
104
105
106
107
108
export default {
extends: [
'stylelint-config-standard',
],
plugins: [
'@stylistic/stylelint-plugin',
],
rules: {
'at-rule-no-unknown': [true, {
ignoreAtRules: [
'import-normalize', // postcss-normalize
'each', // postcss-each
'layer', // tailwindcss
'screen', // tailwindcss
],
}],
'at-rule-no-vendor-prefix': true,
'comment-empty-line-before': null,
'custom-property-empty-line-before': 'never',
'media-feature-name-no-vendor-prefix': true,
'media-feature-name-no-unknown': [true, {
ignoreMediaFeatureNames: [
'prefers-reduced-motion',
],
}],
'no-descending-specificity': null,
'property-no-vendor-prefix': true,
'selector-no-vendor-prefix': true,
'selector-pseudo-class-no-unknown': [true, {
ignorePseudoClasses: [
'increment',
'decrement',
'vertical',
'horizontal',
'start',
'end',
'deep',
],
}],
'value-no-vendor-prefix': true,
// stylistic rules
'@stylistic/at-rule-name-case': 'lower',
'@stylistic/at-rule-name-space-after': 'always-single-line',
'@stylistic/at-rule-semicolon-newline-after': 'always',
'@stylistic/block-closing-brace-empty-line-before': 'never',
'@stylistic/block-closing-brace-newline-after': 'always',
'@stylistic/block-closing-brace-newline-before': 'always-multi-line',
'@stylistic/block-closing-brace-space-before': 'always-single-line',
'@stylistic/block-opening-brace-newline-after': 'always-multi-line',
'@stylistic/block-opening-brace-space-after': 'always-single-line',
'@stylistic/block-opening-brace-space-before': 'always',
'@stylistic/color-hex-case': 'lower',
'@stylistic/declaration-bang-space-after': 'never',
'@stylistic/declaration-bang-space-before': 'always',
'@stylistic/declaration-block-semicolon-newline-after': 'always-multi-line',
'@stylistic/declaration-block-semicolon-space-after': 'always-single-line',
'@stylistic/declaration-block-semicolon-space-before': 'never',
'@stylistic/declaration-block-trailing-semicolon': 'always',
'@stylistic/declaration-colon-newline-after': 'always-multi-line',
'@stylistic/declaration-colon-space-after': 'always-single-line',
'@stylistic/declaration-colon-space-before': 'never',
'@stylistic/function-comma-newline-after': 'always-multi-line',
'@stylistic/function-comma-space-after': 'always-single-line',
'@stylistic/function-comma-space-before': 'never',
'@stylistic/function-max-empty-lines': 0,
'@stylistic/function-parentheses-newline-inside': 'always-multi-line',
'@stylistic/function-parentheses-space-inside': 'never-single-line',
'@stylistic/function-whitespace-after': 'always',
'@stylistic/indentation': 'tab',
'@stylistic/max-empty-lines': 1,
'@stylistic/max-line-length': 120,
'@stylistic/media-feature-colon-space-after': 'always',
'@stylistic/media-feature-colon-space-before': 'never',
'@stylistic/media-feature-name-case': 'lower',
'@stylistic/media-feature-parentheses-space-inside': 'never',
'@stylistic/media-feature-range-operator-space-after': 'always',
'@stylistic/media-feature-range-operator-space-before': 'always',
'@stylistic/media-query-list-comma-newline-after': 'always-multi-line',
'@stylistic/media-query-list-comma-space-after': 'always-single-line',
'@stylistic/media-query-list-comma-space-before': 'never',
'@stylistic/no-empty-first-line': true,
'@stylistic/no-eol-whitespace': true,
'@stylistic/no-extra-semicolons': true,
'@stylistic/no-missing-end-of-source-newline': true,
'@stylistic/number-leading-zero': 'always',
'@stylistic/number-no-trailing-zeros': true,
'@stylistic/property-case': 'lower',
'@stylistic/selector-attribute-brackets-space-inside': 'never',
'@stylistic/selector-attribute-operator-space-after': 'never',
'@stylistic/selector-attribute-operator-space-before': 'never',
'@stylistic/selector-combinator-space-after': 'always',
'@stylistic/selector-combinator-space-before': 'always',
'@stylistic/selector-descendant-combinator-no-non-space': true,
'@stylistic/selector-list-comma-newline-after': 'always',
'@stylistic/selector-list-comma-space-before': 'never',
'@stylistic/selector-max-empty-lines': 0,
'@stylistic/selector-pseudo-class-case': 'lower',
'@stylistic/selector-pseudo-class-parentheses-space-inside': 'never',
'@stylistic/selector-pseudo-element-case': 'lower',
'@stylistic/string-quotes': 'double',
'@stylistic/unit-case': 'lower',
'@stylistic/value-list-comma-newline-after': 'always-multi-line',
'@stylistic/value-list-comma-space-after': 'always-single-line',
'@stylistic/value-list-comma-space-before': 'never',
'@stylistic/value-list-max-empty-lines': 0,
},
};