forked from unovue/shadcn-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
39 lines (38 loc) · 837 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
import antfu from '@antfu/eslint-config'
export default antfu(
{
vue: true,
typescript: true,
ignores: [
'**/__registry__/index.ts',
],
},
{
files: ['**/*.vue'],
rules: {
'vue/one-component-per-file': 0,
'vue/no-reserved-component-names': 0,
'vue/no-useless-v-bind': 0,
},
},
{
files: ['**/lib/registry/default/example/*.vue', '**/lib/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,
},
},
)