This repository has been archived by the owner on May 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
stylelint.config.js
60 lines (60 loc) · 1.58 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
module.exports = {
root: true,
customSyntax: 'postcss-less',
plugins: ['stylelint-order', 'stylelint-config-rational-order/plugin'],
extends: ['stylelint-config-standard', 'stylelint-config-rational-order'],
overrides: [
{
files: ['*.html', '**/*.html'],
extends: ['stylelint-config-html/html'],
customSyntax: 'postcss-html',
},
{
files: ['*.vue', '**/*.vue'],
extends: ['stylelint-config-recommended-vue'],
customSyntax: 'postcss-html',
},
],
rules: {
'no-empty-source': null,
'keyframes-name-pattern': null,
'color-no-invalid-hex': true,
'declaration-colon-space-after': 'always',
'declaration-colon-space-before': 'never',
'shorthand-property-no-redundant-values': true,
'color-hex-case': 'lower',
'no-descending-specificity': true,
'block-closing-brace-newline-before': 'always',
'declaration-empty-line-before': 'never',
'font-family-name-quotes': 'always-unless-keyword',
'no-eol-whitespace': true,
'no-duplicate-selectors': true,
'max-empty-lines': 1,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'variants', 'responsive', 'screen'],
},
],
'order/order': [
'dollar-variables',
'custom-properties',
{
type: 'at-rule',
name: 'include',
},
'declarations',
{
type: 'at-rule',
name: 'content',
},
],
'plugin/rational-order': [
true,
{
'border-in-box-model': false,
'empty-line-between-groups': false,
},
],
},
}