Skip to content

Commit f252a08

Browse files
committed
Updated dependencies and code cleanup
1 parent 8a86dfb commit f252a08

31 files changed

+3370
-2796
lines changed

.eslintrc.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

eslint.config.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const {
2+
defineConfig,
3+
} = require("eslint/config");
4+
5+
const tsParser = require("@typescript-eslint/parser");
6+
const typescriptEslint = require("@typescript-eslint/eslint-plugin");
7+
const js = require("@eslint/js");
8+
9+
const {
10+
FlatCompat,
11+
} = require("@eslint/eslintrc");
12+
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all
17+
});
18+
19+
module.exports = defineConfig([{
20+
languageOptions: {
21+
parser: tsParser,
22+
},
23+
24+
plugins: {
25+
"@typescript-eslint": typescriptEslint,
26+
},
27+
28+
extends: compat.extends("plugin:@typescript-eslint/recommended"),
29+
30+
rules: {
31+
'indent': ['error', 'tab', {
32+
SwitchCase: 1
33+
}],
34+
},
35+
}]);

0 commit comments

Comments
 (0)