-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.cjs
57 lines (56 loc) · 1.31 KB
/
index.cjs
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
/** @type { import('stylelint').Config } */
const config = {
extends: ['stylelint-config-recommended'],
rules: {
'no-descending-specificity': null,
// Allow files without any styles
'no-empty-source': null,
},
overrides: [
{
files: ['**/*.css', '**/*.scss', '**/*.sass', '**/*.less'],
extends: ['stylelint-config-recommended-scss'],
rules: {
'at-rule-no-deprecated': [
true,
{
ignoreAtRules: ['apply'],
},
],
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: [
// Tailwind CSS Directives
// - https://tailwindcss.com/docs/functions-and-directives
'config',
'plugin',
'source',
'tailwind',
'theme',
'utility',
'variant',
'custom-variant',
],
},
],
},
},
{
files: ['**/*.module.css', '**/*.module.scss', '**/*.module.sass'],
extends: ['stylelint-config-css-modules'],
},
{
files: [
'**/*.js',
'**/*.cjs',
'**/*.mjs',
'**/*.jsx',
'**/*.ts',
'**/*.tsx',
],
customSyntax: 'postcss-styled-syntax',
},
],
};
module.exports = config;