feat(server): add eslint, typechecking
This commit is contained in:
parent
9806d0b8fa
commit
d02d42da83
18
server/eslint.config.ts
Normal file
18
server/eslint.config.ts
Normal 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
4578
server/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,9 @@
|
||||
"scripts": {
|
||||
"build": "nest build",
|
||||
"start": "nest start",
|
||||
"start:dev": "nest start --watch"
|
||||
"start:dev": "nest start --watch",
|
||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "11.1.6",
|
||||
@ -23,6 +25,10 @@
|
||||
"@swc/core": "1.13.3",
|
||||
"@types/express": "5.0.3",
|
||||
"@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",
|
||||
"ts-loader": "9.5.2",
|
||||
"ts-node": "10.9.2",
|
||||
|
||||
@ -17,5 +17,9 @@
|
||||
"noImplicitAny": false,
|
||||
"strictBindCallApply": false,
|
||||
"noFallthroughCasesInSwitch": false
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"src",
|
||||
"eslint.config.ts"
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user