-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
50 lines (49 loc) · 1.2 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
48
49
50
// @ts-check
import typescriptParser from '@typescript-eslint/parser'
import vueESLintParser from 'vue-eslint-parser'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
{
languageOptions: {
parser: typescriptParser,
},
rules: {
'vue/multi-word-component-names': 'off',
'vue/no-multiple-template-roots': 'off',
'vue/component-api-style': ['error', ['script-setup', 'composition']],
'vue/block-lang': [
'error',
{
script: {
lang: 'ts',
},
},
],
'vue/component-tags-order': [
'error',
{
order: ['template', 'script', 'style'],
},
],
'no-unused-vars': 'off',
'no-undef': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@stylistic/operator-linebreak': 'off',
},
},
{
files: ['**/*.vue'],
languageOptions: {
parser: vueESLintParser,
},
},
{
files: ['**/api/**/*.{get,post,put,patch,delete}.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
ignores: ['.nuxt/', '.output/', 'node_modules/', 'dist/', '*.md*', '*.json', 'generated', 'pnpm-lock.yaml'],
},
)