File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,19 @@ import path from 'node:path';
33import { fileURLToPath } from 'node:url' ;
44
55import eslint from '@eslint/js' ;
6+ import { defineConfig } from 'eslint/config' ;
67import eslintConfigPrettier from 'eslint-config-prettier/flat' ;
78import importPlugin from 'eslint-plugin-import' ;
89import nodePlugin from 'eslint-plugin-n' ;
910import simpleImportSortPlugin from 'eslint-plugin-simple-import-sort' ;
10- import tseslint from 'typescript-eslint' ;
11+ import { configs } from 'typescript-eslint' ;
12+
1113
1214const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
1315
14- export default tseslint . config (
16+ export default defineConfig (
1517 eslint . configs . recommended ,
16- ...tseslint . configs . recommended ,
18+ ...configs . recommended ,
1719 importPlugin . flatConfigs . recommended ,
1820 importPlugin . flatConfigs . typescript ,
1921 {
You can’t perform that action at this time.
0 commit comments