0.0.5 • Published 3 years ago
@levi2ki/tsconfig v0.0.5
Collection of TS configs.
Read more about shareable configuration at official documentation
Installation
npm i --save-dev @levi2ki/tsconfigUsing
Extend your config with extends keyword.
{
"extends": "@levi2ki/tsconfig/standard",
"compilerOptions": {
"baseUrl": "./",
"typeRoots": ["./src/@types", "node_modules/@types"]
},
"include": ["src"],
"exclude": ["node_modules"]
}❗ Do not forget to define specific options
include,exclude,baseUrl,typeRoots,rootDir,outDir,declarationDiretc and other path specific options as they will not be shared via extends
Available configs
react-standardmostly usual strict config with most important options.react-recommendedrecommended config with options, that cover you from most gotchas - use this if you like strict code.