How to stop checking node_modules
1 answer
If you are using TypeScript, you can create a file tsconfig.json
and choose from three options:
- Provide an explicit list of files to compile, thereby preventing errors from being shown
node_modules/*
. - Don't explicitly list the files (by default, all files
./**/*.ts
will be compiled), but place themtsconfig.json
inside your source folder, whichnode_modules
will automatically be excluded from compilation. - Use the new feature
exclude
intsconfig.json
(available soon).
+2
source to share