-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.js
55 lines (51 loc) · 1.45 KB
/
stylelint.config.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
// Configuration for StyleLint
// See: https://stylelint.io/user-guide/configuration/
module.exports = {
extends: [
/*'@wemake-services/stylelint-config-scss',*/
'stylelint-config-css-modules',
/*'stylelint-a11y/recommended',*/
/*'stylelint-config-airbnb',*/
],
plugins: ['stylelint-no-unsupported-browser-features', 'stylelint-a11y'],
/*rules: {
'a11y/media-prefers-reduced-motion': 0,
'plugin/no-low-performance-animation-properties': 0,
// ignore special `var-` css variables for `:export`
'property-no-unknown': [
true,
{
ignoreProperties: ['/^var-/'],
},
],
// custom plugins to work with
'plugin/no-unsupported-browser-features': [
true,
{
severity: 'warning',
ignore: ['flexbox'],
},
],
// a11y
'a11y/content-property-no-static-value': true,
},*/
rules: {
'selector-max-id': 1,
'block-no-empty': true,
'color-no-invalid-hex': true,
'declaration-colon-space-after': 'always',
'declaration-colon-space-before': 'never',
'function-comma-space-after': 'always',
'media-feature-colon-space-after': 'always',
'media-feature-colon-space-before': 'never',
'media-feature-name-no-vendor-prefix': true,
'max-empty-lines': 5,
'number-leading-zero': 'always',
'number-no-trailing-zeros': true,
'property-no-vendor-prefix': true,
'selector-list-comma-space-before': 'never',
'selector-list-comma-newline-after': 'always',
'string-quotes': 'double',
'value-no-vendor-prefix': true,
},
};