Skip to content

Commit f5c6018

Browse files
committed
chore: update deps
1 parent 5553509 commit f5c6018

File tree

4 files changed

+5519
-2556
lines changed

4 files changed

+5519
-2556
lines changed

eslint.config.mjs

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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("eslint:recommended", "plugin:@typescript-eslint/recommended"),
19+
{
20+
plugins: {
21+
"@typescript-eslint": typescriptEslint,
22+
},
23+
24+
languageOptions: {
25+
globals: {
26+
...globals.node,
27+
},
28+
29+
parser: tsParser,
30+
},
31+
32+
rules: {
33+
"max-len": ["error", {
34+
code: 80,
35+
}],
36+
37+
"new-parens": "error",
38+
"no-caller": "error",
39+
"no-cond-assign": ["error", "always"],
40+
41+
"no-multiple-empty-lines": ["off", {
42+
max: 1,
43+
}],
44+
45+
quotes: ["error", "single", {
46+
avoidEscape: true,
47+
}],
48+
49+
"arrow-parens": "off",
50+
"no-bitwise": "off",
51+
"sort-keys": "off",
52+
"no-console": "off",
53+
"max-classes-per-file": "off",
54+
"no-unused-expressions": "off",
55+
"@typescript-eslint/interface-name-prefix": "off",
56+
"comma-dangle": ["error", "always-multiline"],
57+
"@typescript-eslint/no-namespace": "off",
58+
"@typescript-eslint/no-extraneous-class": "off",
59+
},
60+
},
61+
];

0 commit comments

Comments
 (0)