File tree 2 files changed +41
-20
lines changed
2 files changed +41
-20
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/recommended" ,
20
+ "plugin:prettier/recommended" ,
21
+ ) , {
22
+ plugins : {
23
+ "@typescript-eslint" : typescriptEslint ,
24
+ } ,
25
+
26
+ languageOptions : {
27
+ globals : {
28
+ ...globals . node ,
29
+ ...globals . browser ,
30
+ } ,
31
+
32
+ parser : tsParser ,
33
+ } ,
34
+
35
+ rules : {
36
+ "no-prototype-builtins" : 0 ,
37
+ "@typescript-eslint/no-explicit-any" : 0 ,
38
+ "@typescript-eslint/no-non-null-assertion" : 0 ,
39
+ "@typescript-eslint/no-var-requires" : 0 ,
40
+ } ,
41
+ } ] ;
You can’t perform that action at this time.
0 commit comments