File tree Expand file tree Collapse file tree 2 files changed +42
-16
lines changed Expand file tree Collapse file tree 2 files changed +42
-16
lines changed Load Diff This file was deleted.
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 [ ...compat . extends (
18
+ "eslint:recommended" ,
19
+ "plugin:@typescript-eslint/eslint-recommended" ,
20
+ "plugin:@typescript-eslint/recommended" ,
21
+ "prettier" ,
22
+ ) , {
23
+ plugins : {
24
+ "@typescript-eslint" : typescriptEslint ,
25
+ } ,
26
+
27
+ languageOptions : {
28
+ globals : {
29
+ ...globals . node ,
30
+ } ,
31
+
32
+ parser : tsParser ,
33
+ ecmaVersion : 5 ,
34
+ sourceType : "module" ,
35
+
36
+ parserOptions : {
37
+ project : "./tsconfig.json" ,
38
+ } ,
39
+ } ,
40
+
41
+ rules : { } ,
42
+ } ] ;
You can’t perform that action at this time.
0 commit comments