Skip to content

Commit 658c8ab

Browse files
renovate[bot]jdno
authored andcommitted
Update dependency eslint to v9
1 parent d20fd58 commit 658c8ab

File tree

3 files changed

+399
-339
lines changed

3 files changed

+399
-339
lines changed

eslint.config.mjs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
...compat.extends(
19+
"eslint:recommended",
20+
"plugin:@typescript-eslint/recommended",
21+
"prettier",
22+
),
23+
{
24+
plugins: {
25+
"@typescript-eslint": typescriptEslint,
26+
},
27+
28+
languageOptions: {
29+
globals: {
30+
...globals.node,
31+
},
32+
33+
parser: tsParser,
34+
ecmaVersion: "latest",
35+
sourceType: "module",
36+
},
37+
},
38+
];

0 commit comments

Comments
 (0)