Commit 292f004 1 parent 4f44928 commit 292f004 Copy full SHA for 292f004
File tree 1 file changed +1
-7
lines changed
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1
1
// @ts -check
2
2
3
- import path from "node:path" ;
4
- import url from "node:url" ;
5
-
6
3
import { FlatCompat } from "@eslint/eslintrc" ;
7
4
import eslint from "@eslint/js" ;
8
5
import commentsPlugin from "@eslint-community/eslint-plugin-eslint-comments/configs" ;
@@ -14,11 +11,8 @@ import reactCompilerPlugin from "eslint-plugin-react-compiler";
14
11
import unicornPlugin from "eslint-plugin-unicorn" ;
15
12
import tseslint from "typescript-eslint" ;
16
13
17
- const __filename = url . fileURLToPath ( import . meta. url ) ;
18
- const __dirname = path . dirname ( __filename ) ;
19
-
20
14
const compat = new FlatCompat ( {
21
- baseDirectory : __dirname ,
15
+ baseDirectory : import . meta . dirname ,
22
16
} ) ;
23
17
24
18
const config = tseslint . config (
You can’t perform that action at this time.
0 commit comments