Skip to content

Commit 4916219

Browse files
cq-boterezrokah
andauthored
chore(deps): Update dependency eslint to v9 (#626)
--------- Co-authored-by: erezrokah <[email protected]>
1 parent c8dacd8 commit 4916219

File tree

4 files changed

+399
-409
lines changed

4 files changed

+399
-409
lines changed

.eslintrc.cjs

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

eslint.config.mjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import tsParser from "@typescript-eslint/parser";
2+
import path from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
import js from "@eslint/js";
5+
import { FlatCompat } from "@eslint/eslintrc";
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all
13+
});
14+
15+
export default [...compat.extends("plugin:@typescript-eslint/recommended", "prettier"), {
16+
languageOptions: {
17+
parser: tsParser,
18+
ecmaVersion: 2018,
19+
sourceType: "module",
20+
},
21+
22+
rules: {
23+
"@typescript-eslint/explicit-function-return-type": 0,
24+
"@typescript-eslint/no-non-null-assertion": 0,
25+
},
26+
}];

0 commit comments

Comments
 (0)