Skip to content

Commit 18d90b4

Browse files
authored
Merge pull request #76 from SolidOS/updateDep
Update dependencies
2 parents a7d83db + 8781f64 commit 18d90b4

File tree

4 files changed

+1769
-3251
lines changed

4 files changed

+1769
-3251
lines changed

.eslintrc

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

eslint.config.mjs

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
1-
import { fixupConfigRules } from "@eslint/compat";
21
import globals from "globals";
3-
import path from "node:path";
4-
import { fileURLToPath } from "node:url";
52
import js from "@eslint/js";
6-
import { FlatCompat } from "@eslint/eslintrc";
7-
8-
const __filename = fileURLToPath(import.meta.url);
9-
const __dirname = path.dirname(__filename);
10-
const compat = new FlatCompat({
11-
baseDirectory: __dirname,
12-
recommendedConfig: js.configs.recommended,
13-
allConfig: js.configs.all
14-
});
3+
import importPlugin from "eslint-plugin-import";
154

165
export default [
17-
...fixupConfigRules(compat.extends("eslint:recommended", "plugin:import/recommended")),
18-
{
19-
languageOptions: {
20-
globals: {
21-
...globals.browser,
22-
...globals.node,
23-
Atomics: "readonly",
24-
SharedArrayBuffer: "readonly",
25-
},
26-
},
27-
28-
rules: {
29-
"no-unused-vars": ["warn", {
30-
argsIgnorePattern: "^_",
31-
varsIgnorePattern: "^_",
32-
}],
6+
{
7+
languageOptions: {
8+
globals: {
9+
...globals.browser,
10+
...globals.node,
11+
Atomics: "readonly",
12+
SharedArrayBuffer: "readonly",
13+
},
14+
ecmaVersion: 2022,
15+
sourceType: "module",
16+
},
17+
plugins: {
18+
import: importPlugin,
19+
},
20+
rules: {
21+
...js.configs.recommended.rules,
22+
...importPlugin.configs.recommended.rules,
23+
"no-unused-vars": [
24+
"warn",
25+
{
26+
argsIgnorePattern: "^_",
27+
varsIgnorePattern: "^_",
3328
},
29+
],
3430
},
31+
},
3532
];

0 commit comments

Comments
 (0)