This repository has been archived by the owner on Oct 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
62 lines (62 loc) · 2.29 KB
/
.stylelintrc.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
module.exports = {
plugins: [
'stylelint-no-unsupported-browser-features',
'stylelint-declaration-block-no-ignored-properties',
'stylelint-declaration-use-variable',
'stylelint-a11y',
'stylelint-high-performance-animation',
'stylelint-scss'
],
ignoreFiles: ['**/*.svg', 'public/**/*.css'],
extends: 'stylelint-config-standard',
rules: {
'at-rule-no-unknown': null,
'at-rule-empty-line-before': [
'always',
{ 'ignoreAtRules': ['else', 'import', 'include'] }
],
'block-opening-brace-space-before': 'always',
'block-closing-brace-newline-after': [
'always',
{ 'ignoreAtRules': ['if', 'else'] }
],
'at-rule-name-space-after': 'always',
'rule-empty-line-before': 'always',
'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-if-closing-brace-newline-after': 'always-last-in-chain',
'scss/at-if-closing-brace-space-after': 'always-intermediate',
'font-family-name-quotes': 'always-where-recommended',
'function-url-quotes': 'always',
'selector-attribute-quotes': 'always',
'string-quotes': 'single',
'at-rule-no-vendor-prefix': true,
'media-feature-name-no-vendor-prefix': true,
'property-no-vendor-prefix': true,
'selector-no-vendor-prefix': true,
'value-no-vendor-prefix': true,
'max-nesting-depth': 5,
'selector-max-compound-selectors': 3,
'color-named': 'never',
'color-no-hex': true,
'declaration-no-important': true,
'selector-max-class': 3,
'selector-max-attribute': 1,
'selector-max-combinators': 1,
'selector-max-id': 0,
'selector-max-pseudo-class': 2,
'selector-no-qualifying-type': true,
'selector-max-type': 1,
'selector-max-universal': 1,
'font-weight-notation': 'numeric',
'function-url-no-scheme-relative': true,
'plugin/no-unsupported-browser-features': [true, { severity: 'warning' }],
'plugin/declaration-block-no-ignored-properties': true,
'sh-waqar/declaration-use-variable': [['/color/', 'font-size']],
'a11y/no-outline-none': true,
'a11y/no-display-none': true,
'a11y/selector-pseudo-class-focus': true,
'plugin/no-low-performance-animation-properties': true
}
}