Skip to content

Commit 1ecb9f5

Browse files
wip
1 parent a9a13b4 commit 1ecb9f5

5 files changed

Lines changed: 80 additions & 29 deletions

File tree

.eslintignore

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

.eslintrc.json

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

eslint.config.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import eslint from "@eslint/js";
2+
import tsPlugin from "@typescript-eslint/eslint-plugin";
3+
import tsParser from "@typescript-eslint/parser";
4+
import globals from "globals";
5+
6+
export default [
7+
{
8+
ignores: [
9+
"node_modules/**",
10+
"build/**",
11+
"dist/**",
12+
"coverage/**",
13+
"*.config.ts",
14+
"*.config.js",
15+
],
16+
},
17+
eslint.configs.recommended,
18+
...tsPlugin.configs["flat/recommended"],
19+
{
20+
files: ["**/*.ts"],
21+
languageOptions: {
22+
parser: tsParser,
23+
parserOptions: {
24+
ecmaVersion: 2022,
25+
sourceType: "module",
26+
project: "./tsconfig.json",
27+
},
28+
globals: {
29+
...globals.node,
30+
...globals.es2022,
31+
},
32+
},
33+
rules: {
34+
"@typescript-eslint/no-unused-vars": [
35+
"error",
36+
{ argsIgnorePattern: "^_" },
37+
],
38+
"@typescript-eslint/explicit-function-return-type": "off",
39+
"@typescript-eslint/no-explicit-any": "warn",
40+
},
41+
},
42+
];

package-lock.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
"express": "^4.18.2"
1717
},
1818
"devDependencies": {
19+
"@eslint/js": "^10.0.1",
1920
"@types/express": "^4.17.21",
2021
"@types/node": "^20.10.0",
2122
"@typescript-eslint/eslint-plugin": "^8.56.0",
2223
"@typescript-eslint/parser": "^8.56.0",
2324
"eslint": "^10.0.0",
25+
"globals": "^17.3.0",
2426
"tsx": "^4.7.0",
2527
"typescript": "^5.3.3",
2628
"vitest": "^4.0.18"

0 commit comments

Comments
 (0)