javascript
Files under @repobuddy/typescript/tsconfig/javascript/ match the
JavaScript Support category of the TSConfig
reference.
javascript/buddy
Section titled “javascript/buddy”Includes .js files in the program and type checks them.
{ "compilerOptions": { "allowJs": true, "checkJs": true }}| Option | Value | Effect |
|---|---|---|
allowJs |
true |
.js files matched by include become part of the program. |
checkJs |
true |
Type errors in those .js files are reported. |
tsconfig/monorepo does not include this file. Add it to the extends
array when a package mixes JavaScript and TypeScript:
{ "extends": [ "@repobuddy/typescript/tsconfig/monorepo", "@repobuddy/typescript/tsconfig/javascript/buddy" ]}