r/typescript • u/techlover1010 • Sep 15 '26
need recommendation on guide on typescript that deals with server and linting
anyone can recommend me some great resource on server and linting with type script? i was following a guide and then did one of thier exercises (no solution) and was stumped like
especially when it comes to request response.
its more eslint nagging than tsc but cant tell since im still too early
"type": "module",
"devDependencies": {
"@eslint/js": "^10.0.1",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/express": "^5.0.6",
"@types/node": "^22.20.2",
"eslint": "^10.10.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.70.0"
},
{
"compilerOptions":{
"target":"esnext",
"noEmit":true,
"types":["node","express"],
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch":true,
"module":"nodenext",
"esModuleInterop":true,
"allowImportingTsExtensions":true
}
}
export default tseslint.config({
files:['**/*.ts'],
extends:[
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
],
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
"@stylistic": stylistic,
},
rules: {
'@stylistic/semi': 'error',
'@typescript-eslint/no-unsafe-assignment': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ 'argsIgnorePattern': '^_' }
],
},
})