forked from neherlab/covid19_scenarios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
stylelint.config.js
38 lines (33 loc) · 1.1 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
require('./config/dotenv')
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-css-modules',
'stylelint-config-primer',
// stylelint-scss goes after everything else
'stylelint-config-recommended-scss',
// prettier goes last
'stylelint-config-prettier',
],
plugins: [
'stylelint-declaration-block-no-ignored-properties',
'stylelint-group-selectors',
'stylelint-high-performance-animation',
'stylelint-no-indistinguishable-colors',
'stylelint-use-nesting',
// stylelint-scss goes after everything else
'stylelint-scss',
// prettier goes last
'stylelint-prettier',
],
rules: {
'csstools/use-nesting': 'always',
'plugin/declaration-block-no-ignored-properties': true,
'plugin/no-low-performance-animation-properties': true,
'plugin/no-unsupported-browser-features': null, // disable feature checks: we use postcss-preset-env and autoprefixer
'plugin/stylelint-group-selectors': true,
'plugin/stylelint-no-indistinguishable-colors': true,
'prettier/prettier': true,
'selector-max-type': null,
},
}