You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are some ways this TypeScript config could be improved:
Specify stricter type checking
Set "strict": true, and "noImplicitReturns": true,
Enable strict null checking
Add "strictNullChecks": true, to catch more errors
Remove unneeded options:
Like "allowJs" and "noEmit" since this is a Next.js project.
Enable type checking for test files
Add to "include": ["test/**/*.ts"]
Use TS compilation incrementally
Set "incremental": true, for faster rebuilds
Add folder aliases: "paths": { "@components/*": ["components/*"] }
Extend linting to TypeScript
Configure ESLint to run on .ts files
Specify a JS target
Like "target": "es2020",
Consider strict property initialization
"strictPropertyInitialization": false,
Scope libraries to usage "lib": ["es2020", "dom"]
Some key principles to follow are strictness, reducing cruft, isolation, and leveraging types
The text was updated successfully, but these errors were encountered:
https://github.com/jurisgpt/twg-criminal-law/blob/main/tsconfig.json
Here are some ways this TypeScript config could be improved:
Specify stricter type checking
Set "strict": true, and "noImplicitReturns": true,
Enable strict null checking
Add "strictNullChecks": true, to catch more errors
Remove unneeded options:
Like "allowJs" and "noEmit" since this is a Next.js project.
Enable type checking for test files
Add to "include": ["test/**/*.ts"]
Use TS compilation incrementally
Set "incremental": true, for faster rebuilds
Add folder aliases:
"paths": { "@components/*": ["components/*"] }
Extend linting to TypeScript
Configure ESLint to run on .ts files
Specify a JS target
Like "target": "es2020",
Consider strict property initialization
"strictPropertyInitialization": false,
Scope libraries to usage
"lib": ["es2020", "dom"]
Some key principles to follow are strictness, reducing cruft, isolation, and leveraging types
The text was updated successfully, but these errors were encountered: