Skip to content

Commit 7cb1fe5

Browse files
committed
test: update fixtures to use new API
1 parent f75cc8a commit 7cb1fe5

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import pluginVue from 'eslint-plugin-vue'
2-
import vueTsEslintConfig from '@vue/eslint-config-typescript'
2+
import {
3+
defineConfigWithVueTs,
4+
vueTsConfigs,
5+
} from '@vue/eslint-config-typescript'
36

4-
export default [
7+
export default defineConfigWithVueTs(
58
{
69
name: 'app/files-to-lint',
710
files: ['**/*.{ts,mts,tsx,vue}'],
@@ -12,14 +15,12 @@ export default [
1215
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
1316
},
1417

15-
...pluginVue.configs['flat/essential'],
16-
...vueTsEslintConfig({
17-
extends: ['recommendedTypeChecked'],
18-
}),
18+
pluginVue.configs['flat/essential'],
19+
vueTsConfigs.recommendedTypeChecked,
1920

2021
{
2122
rules: {
2223
'vue/multi-word-component-names': 'off',
23-
}
24-
}
25-
]
24+
},
25+
},
26+
)
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import pluginVue from 'eslint-plugin-vue'
2-
import vueTsEslintConfig from '@vue/eslint-config-typescript'
2+
import {
3+
defineConfigWithVueTs,
4+
vueTsConfigs,
5+
} from '@vue/eslint-config-typescript'
36

4-
export default [
7+
export default defineConfigWithVueTs(
58
{
69
name: 'app/files-to-lint',
710
files: ['**/*.ts', '**/*.mts', '**/*.vue'],
@@ -12,6 +15,6 @@ export default [
1215
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
1316
},
1417

15-
...pluginVue.configs['flat/essential'],
16-
...vueTsEslintConfig(),
17-
]
18+
pluginVue.configs['flat/essential'],
19+
vueTsConfigs.recommended,
20+
)

0 commit comments

Comments
 (0)