},
},
},
- ...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,