@@ -6,12 +6,13 @@ import eslintPluginFileProgress from 'eslint-plugin-file-progress';
66import eslintPluginJsdoc from 'eslint-plugin-jsdoc' ;
77import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' ;
88import eslintPluginUnicorn from 'eslint-plugin-unicorn' ;
9+ import { defineConfig } from 'eslint/config' ;
910import { resolve } from 'node:path' ;
1011import tseslint from 'typescript-eslint' ;
1112
1213const gitignorePath = resolve ( import . meta. dirname , '.gitignore' ) ;
1314
14- const config : ReturnType < typeof tseslint . config > = tseslint . config (
15+ export default defineConfig (
1516 //#region global
1617 includeIgnoreFile ( gitignorePath ) ,
1718 {
@@ -51,7 +52,7 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
5152 //#endregion
5253
5354 //#region typescript-eslint
54- ... tseslint . configs . strictTypeChecked ,
55+ tseslint . configs . strictTypeChecked ,
5556 {
5657 name : 'typescript-eslint overrides' ,
5758 languageOptions : {
@@ -255,6 +256,7 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
255256 name : 'test/**/*.ts overrides' ,
256257 files : [ 'test/**/*.spec.ts' , 'test/**/*.spec.cts' , 'test/**/*.spec.d.ts' ] ,
257258 plugins : {
259+ // @ts -expect-error: weird type error
258260 vitest : eslintPluginVitest ,
259261 } ,
260262 rules : {
@@ -292,5 +294,3 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
292294 }
293295 //#endregion
294296) ;
295-
296- export default config ;
0 commit comments