Skip to content

Commit bd86912

Browse files
committed
eslint config migtated.
1 parent d57316c commit bd86912

File tree

2 files changed

+54
-52
lines changed

2 files changed

+54
-52
lines changed

.eslintrc.json

-52
This file was deleted.

eslint.config.js

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

Comments
 (0)