feat(server): add eslint, typechecking

This commit is contained in:
Sergey Krylov 2025-08-10 17:26:36 +03:00
parent 9806d0b8fa
commit d02d42da83
4 changed files with 4322 additions and 288 deletions

18
server/eslint.config.ts Normal file
View File

@ -0,0 +1,18 @@
import config from 'eslint-config-ksv741';
export default [
...config,
{
rules: {
'import/no-extraneous-dependencies': ['error', {
devDependencies: ['eslint.config.ts', 'rsbuild.config.ts'],
}],
'import/no-anonymous-default-export': 'off',
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
'no-void': ['error', { allowAsStatement: true }],
'@typescript-eslint/no-extraneous-class': 'off',
'@typescript-eslint/parameter-properties': 'off',
'@typescript-eslint/class-methods-use-this': 'off',
},
},
];

4578
server/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,9 @@
"scripts": { "scripts": {
"build": "nest build", "build": "nest build",
"start": "nest start", "start": "nest start",
"start:dev": "nest start --watch" "start:dev": "nest start --watch",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"typecheck": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"@nestjs/common": "11.1.6", "@nestjs/common": "11.1.6",
@ -23,6 +25,10 @@
"@swc/core": "1.13.3", "@swc/core": "1.13.3",
"@types/express": "5.0.3", "@types/express": "5.0.3",
"@types/node": "22.17.1", "@types/node": "22.17.1",
"@typescript-eslint/parser": "8.39.0",
"eslint": "9.33.0",
"eslint-config-ksv741": "0.2.0",
"jiti": "^2.5.1",
"source-map-support": "0.5.21", "source-map-support": "0.5.21",
"ts-loader": "9.5.2", "ts-loader": "9.5.2",
"ts-node": "10.9.2", "ts-node": "10.9.2",

View File

@ -17,5 +17,9 @@
"noImplicitAny": false, "noImplicitAny": false,
"strictBindCallApply": false, "strictBindCallApply": false,
"noFallthroughCasesInSwitch": false "noFallthroughCasesInSwitch": false
} },
"include": [
"src",
"eslint.config.ts"
]
} }