1
+ import globals from "globals" ;
2
+ import pluginJs from "@eslint/js" ;
3
+ import tseslint from "typescript-eslint" ;
4
+
5
+
6
+ export default [
7
+ {
8
+ plugins : {
9
+ } ,
10
+ languageOptions : {
11
+ globals : {
12
+ ...globals . browser ,
13
+ ...globals . node ,
14
+ micro : "readonly" ,
15
+ MicroControl : "readonly" ,
16
+ toBool : "readonly" ,
17
+ toSeconds : "readonly" ,
18
+ createHTMLElement : "readonly" ,
19
+ GenericWidgetClass : "readonly" ,
20
+ hub : "readonly" ,
21
+ jsonFind : "readonly" ,
22
+ updateState : "readonly" ,
23
+ jsonLocate : "readonly" ,
24
+ getHashParams : "readonly" ,
25
+ DialogClass : "readonly"
26
+ }
27
+
28
+ } ,
29
+
30
+ rules : {
31
+ semi : [ 2 , "always" ] ,
32
+
33
+ "no-multiple-empty-lines" : [ "error" , {
34
+ max : 2 ,
35
+ maxBOF : 1 ,
36
+ } ] ,
37
+
38
+ "space-before-function-paren" : 0 ,
39
+ "padded-blocks" : 0 ,
40
+ "no-empty" : 0 ,
41
+ "no-unused-expressions" : 0 ,
42
+ "@typescript-eslint/triple-slash-reference" : 0 ,
43
+ "@typescript-eslint/no-unused-vars" : [ "error" , { "argsIgnorePattern" : "^_" } ] ,
44
+ "@typescript-eslint/no-explicit-any" : [ "error" , { "fixToUnknown" : true } ] ,
45
+ "@typescript-eslint/ban-ts-comment" : 0 ,
46
+ "@typescript-eslint/no-unsafe-declaration-merging" : 0 ,
47
+ } ,
48
+
49
+ } ,
50
+
51
+ pluginJs . configs . recommended ,
52
+ ...tseslint . configs . recommended ,
53
+
54
+ ] ;
0 commit comments