Skip to content

Commit 8230f9d

Browse files
authored
Updated dependencies (#175)
1 parent 1944487 commit 8230f9d

File tree

8 files changed

+3329
-2393
lines changed

8 files changed

+3329
-2393
lines changed

.eslintignore

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

.eslintrc.cjs

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

eslint.config.mjs

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import globals from "globals";
3+
import tsParser from "@typescript-eslint/parser";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
6+
import js from "@eslint/js";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all,
15+
});
16+
17+
export default [
18+
{
19+
ignores: [
20+
// Dependencies
21+
"node_modules",
22+
23+
// Production
24+
"build",
25+
26+
// Generated files
27+
"**/.docusaurus",
28+
"**/.cache-loader",
29+
30+
// Misc
31+
"**/.DS_Store",
32+
"**/.env.local",
33+
"**/.env.development.local",
34+
"**/.env.test.local",
35+
"**/.env.production.local",
36+
37+
// Logs
38+
"**/npm-debug.log*",
39+
"**/yarn-debug.log*",
40+
"**/yarn-error.log*",
41+
],
42+
},
43+
...compat.extends(
44+
"eslint:recommended",
45+
"plugin:@typescript-eslint/recommended",
46+
"plugin:@docusaurus/recommended",
47+
"prettier",
48+
),
49+
{
50+
plugins: {
51+
"@typescript-eslint": typescriptEslint,
52+
},
53+
54+
languageOptions: {
55+
globals: {
56+
...globals.browser,
57+
...globals.node,
58+
},
59+
60+
parser: tsParser,
61+
ecmaVersion: 2020,
62+
sourceType: "module",
63+
},
64+
},
65+
];

0 commit comments

Comments
 (0)