@wpazderski/typescript-config
v1.0.4
Published
Common TypeScript configs with strict options enabled; designed for modern projects
Readme
@wpazderski/typescript-config
Common TypeScript configs with strict options enabled; designed for modern projects
Installation and usage
Start by installing this package, for example with pnpm:
pnpm i -D @wpazderski/typescript-configThen create tsconfig.json file:
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@wpazderski/typescript-config/<CONFIG_NAME>.tsconfig.json",
"compilerOptions": {
/* Custom options */
},
}Replace <CONFIG_NAME> with chosen config (see Available configs section), for example:
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@wpazderski/typescript-config/baseNodeJs.tsconfig.json",
"compilerOptions": {
/* Custom options */
},
}Available configs
base- used as base for other configs (it can be used directly, but in most cases one of the following configs is a better choice),baseNodeJs- for general Node.js environments,baseWeb- for general web environments,angular- for Angular projects,nextJs- for Next.js projects,react- for React projects,vue- for Vue projects.
Related projects
See https://pazderski.dev/projects/ for other projects that provide various configs, utils, tools and examples.
