diff --git a/eslint.config.js b/eslint.config.js index e88d3d91b..76e43e888 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -35,23 +35,25 @@ export default defineFlatConfig([ }, }, }, - ...plugins['typescript-eslint'].config({ - files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts', '*/**.vue'], - extends: [ - ...plugins['typescript-eslint'].configs.strictTypeChecked, - ...plugins['typescript-eslint'].configs.stylisticTypeChecked, - ], - languageOptions: { - parserOptions: { - projectService: true, - tsconfigRootDir: import.meta.dirname, + ...plugins['typescript-eslint'].config( + { + files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts', '*/**.vue'], + extends: [ + ...plugins['typescript-eslint'].configs.strictTypeChecked, + ...plugins['typescript-eslint'].configs.stylisticTypeChecked, + ], + languageOptions: { + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, }, }, - }), - { - files: ['**/*.js', '**/*.mjs', '**/*.cjs'], - ...plugins['typescript-eslint'].configs.disableTypeChecked, - }, + { + files: ['**/*.js', '**/*.mjs', '**/*.cjs'], + ...plugins['typescript-eslint'].configs.disableTypeChecked, + } + ), { plugins: { 'simple-import-sort': simpleImportSort,