Please see the screenshot below. Since this workspace has a package.json I would have expected that this is recognized as commonJS project:

When adding a jsconfig.json with module: commonJs then require is no longer marked as an error.
{
"compilerOptions": {
"module": "commonjs",
"checkJs": true
}
}
// CC @mjbvz
Please see the screenshot below. Since this workspace has a package.json I would have expected that this is recognized as commonJS project:
When adding a jsconfig.json with
module: commonJsthenrequireis no longer marked as an error.{ "compilerOptions": { "module": "commonjs", "checkJs": true } }// CC @mjbvz