Skip to content

javascript

Files under @repobuddy/typescript/tsconfig/javascript/ match the JavaScript Support category of the TSConfig reference.

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:

tsconfig.json
{
"extends": [
"@repobuddy/typescript/tsconfig/monorepo",
"@repobuddy/typescript/tsconfig/javascript/buddy"
]
}