-
-
Notifications
You must be signed in to change notification settings - Fork 400
/
Copy patheslint.config.js
41 lines (40 loc) · 916 Bytes
/
eslint.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
import antfu from '@antfu/eslint-config'
export default antfu(
{
vue: true,
typescript: true,
ignores: [
'**/__registry__/index.ts',
'**/__registry__/block.ts',
],
},
{
files: ['**/*.vue'],
rules: {
'vue/one-component-per-file': 0,
'vue/no-reserved-component-names': 0,
'vue/no-useless-v-bind': 0,
},
},
{
files: ['**/registry/default/example/*.vue', '**/registry/new-york/example/*.vue'],
rules: {
'no-alert': 0,
'no-console': 0,
},
},
{
// Without `files`, they are general rules for all files
rules: {
'symbol-description': 0,
'no-console': 1,
'no-tabs': 0,
'import/first': 0,
'node/prefer-global/process': 0,
'style/no-tabs': 0,
'unused-imports/no-unused-vars': 0,
'unicorn/no-new-array': 0,
'import-x/consistent-type-specifier-style': 0,
},
},
)