-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use TypeScript 5 while keeping current tools and avoiding the new TS5…
… "tsconfig.extends array" feature. (#313) * `npm uninstall @tsconfig/node16-strictest-esm` * `npm install --save-dev @tsconfig/strictest @tsconfig/node16` * `npm uninstall typescript && npm install --save-dev typescript` * Apply newstyle of combined tsconfig * Apply type prefix to care verbatimModuleSyntax * `npm uninstall tsx` * Import derprecated combined tsconfig from tsconfig/bases tsconfig/bases@0ae4791 * Update importsNotUsedAsValues to verbatimModuleSyntax tsconfig/bases@00fa4ee * Remove unused tsconfig family now * Bump nixpkgs to latest * `npm uninstall typescript && npm install --save-dev typescript` * tsx again * Remove outdated task `npm run all` * Prefer module.exports since enabling verbatimModuleSyntax ref: https://zenn.dev/teppeis/articles/2023-04-typescript-5_0-verbatim-module-syntax * Add eslint rule for TS5 era
- Loading branch information
Showing
8 changed files
with
248 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
// Import from https://github.com/tsconfig/bases/commit/0ae4791797d8ba3dd2bca9aca880eb2d3e30e6fb | ||
// To avoid issues around tsconfig.extends array | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "Node 16 + Strictest", | ||
"compilerOptions": { | ||
"lib": [ | ||
"es2021" | ||
], | ||
"module": "commonjs", | ||
"target": "es2021", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"moduleResolution": "node", | ||
"allowUnusedLabels": false, | ||
"allowUnreachableCode": false, | ||
"exactOptionalPropertyTypes": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitOverride": true, | ||
"noImplicitReturns": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noUncheckedIndexedAccess": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"verbatimModuleSyntax": true, | ||
"checkJs": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters