-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstylelint.config.js
More file actions
44 lines (43 loc) · 842 Bytes
/
stylelint.config.js
File metadata and controls
44 lines (43 loc) · 842 Bytes
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
/** @type {import('stylelint').Config} */
const config = {
extends: ['@zazen/stylelint-config'],
ignoreFiles: ['.nuxt/**/*.css', 'dist/**/*.css'],
rules: {
'at-rule-no-unknown': [true, { ignoreAtRules: ['include', 'mixin', 'screen', 'apply'] }],
'order/order': [
'dollar-variables',
'custom-properties',
{
type: 'at-rule',
name: 'extend',
},
{
type: 'at-rule',
name: 'include',
hasBlock: false,
},
'declarations',
'rules',
{
type: 'rule',
selector: /^&::[\w-]+$/,
},
{
type: 'rule',
selector: /^&:[\w-.()]+$/,
},
{
type: 'at-rule',
hasBlock: true,
},
],
},
overrides: [
{
files: ['**/*.vue'],
/** @todo [@zazen/stylelint-config@>5.1.0] Remove once included upstream. */
customSyntax: 'postcss-html',
},
],
}
export default config