-
Notifications
You must be signed in to change notification settings - Fork 1
/
stylelint.config.js
61 lines (61 loc) · 1.36 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
56
57
58
59
60
61
/** @type {import('stylelint').Config} */
export default {
extends: ['stylelint-config-standard', 'stylelint-config-recess-order', 'stylelint-config-html'],
plugins: ['stylelint-prettier'],
rules: {
'prettier/prettier': true,
'no-empty-source': null,
'import-notation': null,
'selector-class-pattern': null,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'tailwind',
'apply',
'variants',
'responsive',
'screen',
'use',
'mixin',
'include',
'extend',
'forward',
'if',
'else',
'each',
],
},
],
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global', 'deep'],
},
],
},
overrides: [
{
files: ['*.scss', '**/*.scss'],
customSyntax: 'postcss-scss',
extends: ['stylelint-config-standard-scss', 'stylelint-config-recommended-vue/scss'],
rules: {},
},
{
files: ['*.vue', '**/*.vue', '*.html', '**/*.html'],
customSyntax: 'postcss-html',
extends: ['stylelint-config-standard', 'stylelint-config-recommended-vue'],
},
],
ignoreFiles: [
'**/*.js',
'**/*.jsx',
'**/*.ts',
'**/*.tsx',
'**/*.json',
'**/*.md',
'**/*.yaml',
'**/*.yml',
'**/*.d.ts',
],
};