Instacart's shared TypeScript configuration
$ yarn add --dev @instacart/tsconfigBy default the package provides 2 configurations to extend from.
-
@instacart/tsconfig- The base configuration. -
@instacart/tsconfig/babelis used for our builds that use TypeScript in conjunction with Babel for the build process and defaults toesnextfor the ECMAScript target version and module generation. It also preservesjsxfor babel to take care of.
// tsconfig.json
{
"extends": "@instacart/tsconfig/babel",
"compilerOptions": {
"rootDir": "./",
...
}
}