@lcdev/tsconfig
v0.1.3
Published
Common typescript config for Launchcode
Downloads
1,002
Keywords
Readme
Shared TS Config
This package sets strict mode, some reasonable defaults for target and lib, and works in composite projects.
yarn add @lcdev/[email protected]
Add to your tsconfig.json:
"extends": "@lcdev/tsconfig"
You probably want to keep rootDir
and outDir
, and maybe target
if you want es2015
.
A normal tsconfig looks like this:
{
"extends": "@lcdev/tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
A normal web(pack) tsconfig looks like this:
{
"extends": "@lcdev/tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"lib": ["esnext", "dom"],
"target": "esnext",
"module": "esnext",
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}