TypeScript · JavaScript Support

maxNodeModuleJsDepth

Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'.

Syntax
"maxNodeModuleJsDepth": 1

Example

Example
{
  "compilerOptions": {
    "maxNodeModuleJsDepth": 1
  }
}

More in this group

allowJs checkJs

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course