-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstylelint.config.js
24 lines (24 loc) · 1006 Bytes
/
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
module.exports = {
root: true,
extends: ['stylelint-config-recommended', 'stylelint-config-sass-guidelines'],
plugins: ['stylelint-scss', 'stylelint-order', 'stylelint-a11y'],
rules: {
'max-nesting-depth': [
3,
{
ignoreAtRules: ['each', 'media', 'supports', 'include']
}
],
'function-parentheses-space-inside': 'never-single-line',
'a11y/no-outline-none': true,
'a11y/selector-pseudo-class-focus': true,
'a11y/content-property-no-static-value': [true, { severity: 'warning' }],
'a11y/font-size-is-readable': [true, { severity: 'warning' }],
'a11y/line-height-is-vertical-rhythmed': [true, { severity: 'warning' }],
'a11y/no-display-none': [true, { severity: 'warning' }],
'a11y/no-spread-text': [true, { severity: 'warning' }],
'a11y/no-obsolete-attribute': [true, { severity: 'warning' }],
'a11y/no-obsolete-element': [true, { severity: 'warning' }],
'a11y/no-text-align-justify': [true, { severity: 'warning' }]
}
}