Skip to content

Commit 3d17e6d

Browse files
authored
Merge pull request #1 from imqueue/chore/update/deps
Chore/update/deps
2 parents db74ebd + 7bcdb5d commit 3d17e6d

File tree

4 files changed

+2050
-469
lines changed

4 files changed

+2050
-469
lines changed

eslint.config.mjs

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
"no-multiple-empty-lines": "off",
41+
42+
quotes: ["error", "single", {
43+
avoidEscape: true,
44+
}],
45+
46+
"arrow-parens": "off",
47+
"no-bitwise": "off",
48+
"sort-keys": "off",
49+
"no-console": "off",
50+
"max-classes-per-file": "off",
51+
"no-unused-expressions": "off",
52+
"@typescript-eslint/interface-name-prefix": "off",
53+
"comma-dangle": ["error", "always-multiline"],
54+
"@typescript-eslint/no-namespace": "off",
55+
"@typescript-eslint/no-extraneous-class": "off",
56+
},
57+
},
58+
];

0 commit comments

Comments
 (0)