Create unified tsconfig preset #199
Unanswered
remcohaszing
asked this question in
Ideas
Replies: 1 comment 2 replies
-
Yeah, I’m in favor
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Across unified projects a similar
tsconfig.json
is used with very similar settings.It might be nice to have a preset to extend from. This preset can also define some options that are often forgotten.
Some options are deliberately omitted.
"moduleResolution": "node16"
is implied if"module": "node16"
"allowSyntheticDefaultImports": true
is implied if"module": "node16"
"allowJs": true
is implied if"checkJs": true
"skipLibCheck": true
although recommended by the TypeScript handbook, I think it’s a bad idea for libraries, because it hides type errors that cause type errors for dependants, meaning they are also forced to useskipLibCheck
.Now unified projects just have to use the following
tsconfig.json
:Options can still be overridden.
Beta Was this translation helpful? Give feedback.
All reactions