File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import eslintPluginVitest from '@vitest/eslint-plugin';
55import eslintPluginJsdoc from 'eslint-plugin-jsdoc' ;
66import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' ;
77import eslintPluginUnicorn from 'eslint-plugin-unicorn' ;
8+ import { defineConfig } from 'eslint/config' ;
89import { dirname , resolve } from 'node:path' ;
910import { fileURLToPath } from 'node:url' ;
1011import tseslint from 'typescript-eslint' ;
@@ -13,7 +14,7 @@ const __filename: string = fileURLToPath(import.meta.url);
1314const __dirname : string = dirname ( __filename ) ;
1415const gitignorePath : string = resolve ( __dirname , '.gitignore' ) ;
1516
16- const config : ReturnType < typeof tseslint . config > = tseslint . config (
17+ export default defineConfig ( [
1718 //#region global
1819 includeIgnoreFile ( gitignorePath ) ,
1920 {
@@ -234,6 +235,4 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
234235 } ,
235236 } ,
236237 //#endregion
237- ) ;
238-
239- export default config ;
238+ ] ) ;
You can’t perform that action at this time.
0 commit comments