Skip to content

Commit 048ca8c

Browse files
authored
Merge pull request #45 from SolidOS/updateDep
Update dependencies
2 parents 99ef4bc + 90040c3 commit 048ca8c

File tree

4 files changed

+621
-3095
lines changed

4 files changed

+621
-3095
lines changed

.eslintrc

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

eslint.config.mjs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
20+
21+
plugins: {
22+
"@typescript-eslint": typescriptEslint,
23+
},
24+
25+
languageOptions: {
26+
globals: {
27+
...globals.browser,
28+
...globals.node,
29+
Atomics: "readonly",
30+
SharedArrayBuffer: "readonly",
31+
},
32+
33+
parser: tsParser,
34+
},
35+
36+
rules: {
37+
"no-unused-vars": ["warn", {
38+
argsIgnorePattern: "^_",
39+
varsIgnorePattern: "^_",
40+
}],
41+
},
42+
}]);

0 commit comments

Comments
 (0)