|
| 1 | +import { globalIgnores } from 'eslint/config' |
1 | 2 | import pluginVue from 'eslint-plugin-vue'
|
2 |
| -import vueTsEslintConfig from '@vue/eslint-config-typescript' |
| 3 | +import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript' |
| 4 | +import standard from '@vue/eslint-config-standard-with-typescript' |
| 5 | + |
3 | 6 | import pluginVitest from '@vitest/eslint-plugin'
|
4 | 7 |
|
5 |
| -export default [ |
| 8 | +export default defineConfigWithVueTs( |
6 | 9 | {
|
7 | 10 | name: 'app/files-to-lint',
|
8 |
| - files: ['**/*.{ts,mts,tsx,vue}'], |
| 11 | + files: ['**/*.{ts,mts,tsx,vue}'] |
9 | 12 | },
|
10 | 13 |
|
11 |
| - { |
12 |
| - name: 'app/files-to-ignore', |
13 |
| - ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'], |
14 |
| - }, |
| 14 | + globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']), |
| 15 | + |
| 16 | + pluginVue.configs['flat/essential'], |
| 17 | + vueTsConfigs.recommended, |
| 18 | + standard, |
15 | 19 |
|
16 |
| - ...pluginVue.configs['flat/essential'], |
17 |
| - ...vueTsEslintConfig(), |
18 |
| - |
19 | 20 | {
|
20 | 21 | ...pluginVitest.configs.recommended,
|
21 |
| - files: ['src/**/__tests__/*'], |
22 |
| - }, |
23 |
| -] |
| 22 | + files: ['src/**/__tests__/*'] |
| 23 | + } |
| 24 | +) |
0 commit comments