-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.ts
More file actions
33 lines (30 loc) · 1 KB
/
eslint.config.ts
File metadata and controls
33 lines (30 loc) · 1 KB
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
import { globalIgnores } from 'eslint/config'
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
import pluginVue from 'eslint-plugin-vue'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
export default defineConfigWithVueTs(
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
rules: {
'no-console': ['error', { allow: ['warn', 'error', 'info', 'group', 'groupEnd', 'groupCollapsed'] }],
'no-debugger': 'error',
'class-methods-use-this': 'off',
'max-len': [
'error',
{
ignorePattern: 'd="([\\s\\S]*?)"',
code: 120,
},
],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'vue/no-v-for-template-key': 'off',
'vue/no-multiple-template-root': 'off',
}
},
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**', '**/docs/**']),
pluginVue.configs['flat/essential'],
vueTsConfigs.recommended,
skipFormatting,
)