-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.cjs
40 lines (39 loc) · 909 Bytes
/
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
/** @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: {
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'theme'],
},
],
},
},
{
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;