Closed widoz closed 6 months ago
Update the tsconfig.json file with the following rules
tsconfig.json
{ "compilerOptions": { "target": "ES2022", "alwaysStrict": true, "exactOptionalPropertyTypes": true, "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitOverride": true, "noImplicitReturns": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, "strictPropertyInitialization": true, "noPropertyAccessFromIndexSignature": true, "noUncheckedIndexedAccess": true, "noUnusedLocals": true, "noUnusedParameters": true, "strict": true, "useUnknownInCatchVariables": true, "resolveJsonModule": true, "sourceMap": true, "skipLibCheck": true, "esModuleInterop": true, "baseUrl": "./", "module": "nodeNext", "moduleResolution": "NodeNext", "typeRoots": ["./node_modules/@types"], "paths": { "@/*": ["./src/*"], "@model/*": ["./src/model/*"], "*": ["node_modules/*", "types/*"] }, "rootDir": "./" }, "files": ["./index.ts"], "include": ["./src/**/*.ts"], "exclude": ["node_modules", "tests"] }
Done
Update the
tsconfig.json
file with the following rules