@@ -5,6 +5,7 @@ import eslintPluginVitest from '@vitest/eslint-plugin';
5
5
import eslintPluginJsdoc from 'eslint-plugin-jsdoc' ;
6
6
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' ;
7
7
import eslintPluginUnicorn from 'eslint-plugin-unicorn' ;
8
+ import { defineConfig } from 'eslint/config' ;
8
9
import { dirname , resolve } from 'node:path' ;
9
10
import { fileURLToPath } from 'node:url' ;
10
11
import tseslint from 'typescript-eslint' ;
@@ -13,7 +14,7 @@ const __filename: string = fileURLToPath(import.meta.url);
13
14
const __dirname : string = dirname ( __filename ) ;
14
15
const gitignorePath : string = resolve ( __dirname , '.gitignore' ) ;
15
16
16
- const config : ReturnType < typeof tseslint . config > = tseslint . config (
17
+ export default defineConfig ( [
17
18
//#region global
18
19
includeIgnoreFile ( gitignorePath ) ,
19
20
{
@@ -129,7 +130,7 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
129
130
//#endregion
130
131
131
132
//#region unicorn
132
- eslintPluginUnicorn . configs [ 'flat/ recommended' ] ,
133
+ eslintPluginUnicorn . configs . recommended ,
133
134
{
134
135
rules : {
135
136
'unicorn/consistent-destructuring' : 'off' ,
@@ -234,6 +235,4 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
234
235
} ,
235
236
} ,
236
237
//#endregion
237
- ) ;
238
-
239
- export default config ;
238
+ ] ) ;
0 commit comments