File tree Expand file tree Collapse file tree 3 files changed +399
-339
lines changed Expand file tree Collapse file tree 3 files changed +399
-339
lines changed Original file line number Diff line number Diff line change
1
+ import typescriptEslint from "@typescript-eslint/eslint-plugin" ;
2
+ import globals from "globals" ;
3
+ import tsParser from "@typescript-eslint/parser" ;
4
+ import path from "node:path" ;
5
+ import { fileURLToPath } from "node:url" ;
6
+ import js from "@eslint/js" ;
7
+ import { FlatCompat } from "@eslint/eslintrc" ;
8
+
9
+ const __filename = fileURLToPath ( import . meta. url ) ;
10
+ const __dirname = path . dirname ( __filename ) ;
11
+ const compat = new FlatCompat ( {
12
+ baseDirectory : __dirname ,
13
+ recommendedConfig : js . configs . recommended ,
14
+ allConfig : js . configs . all ,
15
+ } ) ;
16
+
17
+ export default [
18
+ ...compat . extends (
19
+ "eslint:recommended" ,
20
+ "plugin:@typescript-eslint/recommended" ,
21
+ "prettier" ,
22
+ ) ,
23
+ {
24
+ plugins : {
25
+ "@typescript-eslint" : typescriptEslint ,
26
+ } ,
27
+
28
+ languageOptions : {
29
+ globals : {
30
+ ...globals . node ,
31
+ } ,
32
+
33
+ parser : tsParser ,
34
+ ecmaVersion : "latest" ,
35
+ sourceType : "module" ,
36
+ } ,
37
+ } ,
38
+ ] ;
You can’t perform that action at this time.
0 commit comments