0.1.1 • Published 4 years ago

@nick-mazuk/tsconfig v0.1.1

Weekly downloads
295
License
MIT
Repository
github
Last release
4 years ago

tsconfig

A strict tsconfig for TypeScript projects.

Getting started

Install from NPM, including peer dependencies, with --save-dev

npm i @nick-mazuk/tsconfig typescript --save-dev

Then, create a tsconfig.json file in the root of your project with

{
    "extends": "@nick-mazuk/tsconfig",
    "include": ["**/*.ts", "*.ts"], // add other files to include here
    "exclude": ["node_modules"]
}

Versions

This package has configs for different scenarios (more coming).

Versionextendsincludes
NextJS@nick-mazuk/tsconfig/next["next-env.d.ts", "**/*.ts", "**/*.tsx", "pages/_app.tsx", "error.tsx.config"]

When using a more specific config, the base config is not needed. For instance, with NextJS, this is all that's required:

{
    "extends": "@nick-mazuk/tsconfig",
    "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "pages/_app.tsx", "error.tsx.config"],
    "exclude": ["node_modules"]
}
0.1.1

4 years ago

0.1.0

4 years ago