@@ -9,39 +9,46 @@ import { FlatCompat } from "@eslint/eslintrc";
9
9
const __filename = fileURLToPath ( import . meta. url ) ;
10
10
const __dirname = path . dirname ( __filename ) ;
11
11
const compat = new FlatCompat ( {
12
- baseDirectory : __dirname ,
13
- recommendedConfig : js . configs . recommended ,
14
- allConfig : js . configs . all
12
+ baseDirectory : __dirname ,
13
+ recommendedConfig : js . configs . recommended ,
14
+ allConfig : js . configs . all ,
15
15
} ) ;
16
16
17
- export default [ {
18
- ignores : [
19
- "**/node_modules" ,
20
- "**/dist" ,
21
- "**/README.md" ,
22
- "**/COPYING" ,
23
- "src/webrtc" ,
24
- "**/scripts/" ,
25
- "**/assets" ,
26
- ] ,
27
- } , ...compat . extends ( "eslint:recommended" , "plugin:@typescript-eslint/recommended" ) , {
28
- plugins : {
29
- "@typescript-eslint" : typescriptEslint ,
30
- } ,
17
+ export default [
18
+ {
19
+ ignores : [
20
+ "**/node_modules" ,
21
+ "**/dist" ,
22
+ "**/README.md" ,
23
+ "**/COPYING" ,
24
+ "src/webrtc" ,
25
+ "**/scripts/" ,
26
+ "**/assets" ,
27
+ ] ,
28
+ } ,
29
+ ...compat . extends (
30
+ "eslint:recommended" ,
31
+ "plugin:@typescript-eslint/recommended" ,
32
+ ) ,
33
+ {
34
+ plugins : {
35
+ "@typescript-eslint" : typescriptEslint ,
36
+ } ,
31
37
32
- languageOptions : {
33
- globals : {
34
- ...globals . node ,
35
- } ,
38
+ languageOptions : {
39
+ globals : {
40
+ ...globals . node ,
41
+ } ,
36
42
37
- parser : tsParser ,
38
- } ,
43
+ parser : tsParser ,
44
+ } ,
39
45
40
- rules : {
41
- "no-mixed-spaces-and-tabs" : "off" ,
42
- "@typescript-eslint/no-inferrable-types" : "off" , // Required by typeorm
43
- "@typescript-eslint/no-var-requires" : "off" , // Sometimes requred by typeorm to resolve circular deps
44
- "@typescript-eslint/no-require-imports" : "off" ,
45
- "@typescript-eslint/no-unused-vars" : "off" ,
46
- } ,
47
- } ] ;
46
+ rules : {
47
+ "no-mixed-spaces-and-tabs" : "off" ,
48
+ "@typescript-eslint/no-inferrable-types" : "off" , // Required by typeorm
49
+ "@typescript-eslint/no-var-requires" : "off" , // Sometimes requred by typeorm to resolve circular deps
50
+ "@typescript-eslint/no-require-imports" : "off" ,
51
+ "@typescript-eslint/no-unused-vars" : "off" ,
52
+ } ,
53
+ } ,
54
+ ] ;
0 commit comments