-
Notifications
You must be signed in to change notification settings - Fork 25
/
.stylelintrc.js
51 lines (49 loc) · 1.23 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
const isDev = process.env.NODE_ENV === 'development'
const warnInDevelopment = isDev ? 'warning' : 'error'
module.exports = {
plugins: ['stylelint-order'],
extends: [
'stylelint-config-standard',
'stylelint-config-prettier',
'stylelint-config-styled-components',
'stylelint-config-rational-order',
],
defaultSeverity: warnInDevelopment,
overrides: [
{
files: ['**/*.jsx'],
customSyntax: '@stylelint/postcss-css-in-js',
},
],
rules: {
'at-rule-no-unknown': null,
'color-hex-case': 'lower',
'color-hex-length': 'long',
'declaration-block-single-line-max-declarations': 1,
'declaration-block-semicolon-newline-after': 'always-multi-line',
'function-name-case': null,
'max-nesting-depth': 3,
'no-eol-whitespace': true,
'no-invalid-position-at-import-rule': null,
'number-leading-zero': 'always',
'value-keyword-case': null,
'value-no-vendor-prefix': [
true,
{
ignoreValues: ['box'],
},
],
'property-no-vendor-prefix': [
true,
{
ignoreProperties: ['box-orient'],
},
],
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global', 'local'],
},
],
},
}