-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.stylelintrc.js
61 lines (60 loc) · 1.49 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
const commonExtends = [
'stylelint-config-html/html',
'stylelint-config-html/vue',
'stylelint-config-property-sort-order-smacss',
]
module.exports = {
ignoreFiles: 'src/{.fes,.fes-production}/**/*',
extends: commonExtends,
rules: {
'color-named': 'always-where-possible',
'order/properties-alphabetical-order': null,
'property-no-unknown': [
true,
{
ignoreSelectors: [':export'],
},
],
'selector-max-id': 1,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: [
'export',
// For Vue deep selector: `:deep`
// See: https://vue-loader.vuejs.org/guide/scoped-css.html#deep-selectors
'deep',
],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['export'],
},
],
},
overrides: [
{
files: 'src/**/*.css',
extends: ['stylelint-config-recommended', ...commonExtends],
},
{
files: 'src/**/*.scss',
extends: ['stylelint-config-recommended-scss', ...commonExtends],
},
{
files: 'src/**/*.vue',
extends: ['stylelint-config-recommended-vue/scss', ...commonExtends],
rules: {
// For importing '.module.{css|scss}'
'scss/at-import-partial-extension': null,
},
},
{
files: 'src/**/*.tsx',
customSyntax: 'postcss-styled-syntax',
extends: ['stylelint-config-recommended-scss', ...commonExtends],
},
],
}