forked from vue-vine/vue-vine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
47 lines (44 loc) · 1.09 KB
/
eslint.config.mjs
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
import { createRequire } from 'node:module'
import antfu from '@antfu/eslint-config'
import * as VueVineESLintParser from '@vue-vine/eslint-parser'
const require = createRequire(import.meta.url)
const VueVineESLintParserPackageJSON = require('@vue-vine/eslint-parser/package.json')
export default antfu(
{
ignores: [
'node_modules',
'dist',
'pnpm-lock.yaml',
'scripts/*.sh',
'packages/docs/.vitepress/cache',
'packages/e2e-test/**/*.vine.ts',
'packages/playground/**/*.vine.ts',
'packages/create-vue-vine/template/**/*.vine.[j|t]s',
],
},
{
rules: {
'curly': 'off',
'prefer-const': 'off',
},
},
{
files: [
'packages/e2e-test/**/*.vine.ts',
'packages/playground/**/*.vine.ts',
'packages/nuxt-module/playground/**/*.vine.ts',
],
languageOptions: {
parser: {
meta: {
name: '@vue-vine/eslint-parser',
version: VueVineESLintParserPackageJSON.version,
},
...VueVineESLintParser,
},
},
rules: {
'no-console': 'off',
},
},
)