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