-
Notifications
You must be signed in to change notification settings - Fork 922
/
Copy patheslint.config.ts
44 lines (43 loc) · 945 Bytes
/
eslint.config.ts
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
import path from 'node:path'
import { vuepress } from 'eslint-config-vuepress'
import { PACKAGES, ROOT } from './scripts/constants.js'
export default vuepress(
{
imports: {
packageDir: [
ROOT,
path.resolve(ROOT, 'e2e'),
...PACKAGES.map((item) => path.resolve(ROOT, `packages/${item}`)),
],
},
javascript: {
overrides: {
'no-underscore-dangle': [
'warn',
{
allow: [
'__dirname',
'_context',
'_pageChunk',
'_pageData',
'_registeredComponents',
],
},
],
},
},
vue: {
overrides: {
'no-useless-assignment': 'off', // TODO: false positive in vue sfc
},
},
},
{
files: ['**/tests/**'],
rules: {
'import/no-unresolved': 'off',
'no-console': 'off',
'prefer-template': 'off',
},
},
)