Skip to content

Commit 86d20b7

Browse files
committed
chore: Update ESLint and TypeScript configuration files; remove unused dependencies
1 parent d8bbc38 commit 86d20b7

File tree

6 files changed

+23
-48
lines changed

6 files changed

+23
-48
lines changed

backend/.eslintrc.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
module.exports = {
22
parser: '@typescript-eslint/parser',
33
parserOptions: {
4-
project: 'tsconfig.json',
4+
projectService: true, // Changed from project: 'tsconfig.json'
55
sourceType: 'module',
66
},
77
plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
8-
extends: [
9-
'plugin:@typescript-eslint/recommended',
10-
'plugin:prettier/recommended',
11-
],
8+
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
129
root: true,
1310
env: {
1411
node: true,
@@ -22,4 +19,4 @@ module.exports = {
2219
'@typescript-eslint/explicit-module-boundary-types': 'off',
2320
'@typescript-eslint/no-explicit-any': 'off',
2421
},
25-
};
22+
};

backend/tsconfig.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
"compilerOptions": {
33
"target": "ES2021",
44
"module": "commonjs",
5-
"lib": [
6-
"dom",
7-
"dom.iterable",
8-
"es2020",
9-
"esnext"
10-
],
5+
"lib": ["dom", "dom.iterable", "es2020", "esnext"],
116
"allowJs": true,
127
"skipLibCheck": true,
138
"esModuleInterop": true,
@@ -26,10 +21,7 @@
2621
"inlineSources": true,
2722
"experimentalDecorators": true,
2823
"strictPropertyInitialization": false,
29-
"typeRoots": [
30-
"./node_modules/@types",
31-
"./src/types"
32-
],
24+
"typeRoots": ["./node_modules/@types", "./src/types"],
3325
"moduleResolution": "node",
3426
"resolveJsonModule": true,
3527
"isolatedModules": true,
@@ -43,11 +35,6 @@
4335
"incremental": true,
4436
"strictBindCallApply": true
4537
},
46-
"include": [
47-
"src"
48-
],
49-
"exclude": [
50-
"node_modules",
51-
"cdk.out"
52-
]
38+
"include": ["src"],
39+
"exclude": ["node_modules", "cdk.out"]
5340
}

package-lock.json

Lines changed: 1 addition & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
"prepare": "husky",
88
"build": "cd backend && npm run build",
99
"build:backend": "cd backend && npm run build",
10-
"build:frontend": "cd frontend && npm run build",
11-
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md,scss,css}\" --ignore-path .gitignore"
10+
"build:frontend": "cd frontend && npm run build"
1211
},
1312
"devDependencies": {
14-
"husky": "^9.1.7",
15-
"prettier": "^3.0.0"
13+
"husky": "^9.1.7"
1614
}
17-
}
15+
}

tsconfig.eslint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
4+
"include": ["backend/src/**/*.ts"]
5+
}

tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"files": [],
3+
"references": [{ "path": "./backend" }, { "path": "./frontend" }],
4+
"compilerOptions": {
5+
"composite": true
6+
}
7+
}

0 commit comments

Comments
 (0)