Skip to content

Commit c656cc7

Browse files
authored
Merge pull request #19 from n-thumann/update_dependencies
Update dependencies
2 parents e0de683 + 28383e9 commit c656cc7

File tree

6 files changed

+1299
-3332
lines changed

6 files changed

+1299
-3332
lines changed

.eslintrc.json

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

eslint.config.mjs

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import { defineConfig } from "eslint/config";
2+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
3+
import globals from "globals";
4+
import tsParser from "@typescript-eslint/parser";
5+
import path from "node:path";
6+
import { fileURLToPath } from "node:url";
7+
import js from "@eslint/js";
8+
import { FlatCompat } from "@eslint/eslintrc";
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all,
16+
});
17+
18+
export default defineConfig([
19+
{
20+
extends: compat.extends(
21+
"eslint:recommended",
22+
"plugin:@typescript-eslint/recommended",
23+
"prettier",
24+
),
25+
26+
plugins: {
27+
"@typescript-eslint": typescriptEslint,
28+
},
29+
30+
languageOptions: {
31+
globals: {
32+
...globals.browser,
33+
},
34+
35+
parser: tsParser,
36+
ecmaVersion: "latest",
37+
sourceType: "module",
38+
},
39+
40+
rules: {
41+
"sort-imports": ["error", {}],
42+
43+
"@typescript-eslint/ban-ts-comment": [
44+
"error",
45+
{
46+
"ts-ignore": "allow-with-description",
47+
},
48+
],
49+
},
50+
},
51+
]);

0 commit comments

Comments
 (0)