-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.js
executable file
·40 lines (40 loc) · 1.15 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
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-recess-order',
'stylelint-config-css-modules',
'stylelint-config-prettier',
],
customSyntax: 'postcss-html',
ignoreFiles: ['./node_modules/**/*.css'],
rules: {
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
// --------
// Tailwind
// --------
'apply',
'layer',
'responsive',
'screen',
'tailwind',
'variants',
],
},
],
'no-duplicate-selectors': null,
'no-empty-source': null,
'selector-pseudo-element-no-unknown': null,
'declaration-block-trailing-semicolon': null,
'no-descending-specificity': null,
'string-no-newline': null,
// Use camelCase for classes and ids only. Works better with CSS modules
// 'selector-class-pattern': /^[a-z][a-zA-Z]*(-(enter|leave)(-(active|to))?)?$/,
// 'selector-id-pattern': /^[a-z][a-zA-Z]*$/,
// Limit the number of universal selectors in a selector,
// to avoid very slow selectors
'selector-max-universal': 1,
},
}