TypeScript configurations for @carnesen
projects
npm install --save-dev typescript @carnesen/tsconfig
These instructions assume that you're using TypeScript >=3.2 with support for "tsconfig.json inheritance via Node.js packages".
Create a file tsconfig.json
at the root of your project with contents:
{
"extends": "@carnesen/tsconfig"
}
Add your own compilerOptions
or any other properties described here in the TypeScript docs.
The @carnesen/tsconfig
base configuration sets some desirable non-default values such as "strict": true
. It also enumerates as comments most of the other available configuration options. The base configuration can be used directly as "extends": "@carnesen/tsconfig"
. The configuration sets "es2020" as the compiler target, suitable for use with Node.js >=14 or modern browsers.
If you encounter any bugs or have any questions or feature requests, please don't hesitate to file an issue or submit a pull request on this project's repository on GitHub.
- @carnesen/eslint-config: ESLint configurations for
@carnesen
projects
MIT © Chris Arnesen