Exclude *.spec.ts files when transpiling but still lint them properly
You'll need to use two tsconfig.json
files, one for the editor (which includes the *.spec.ts
files) and another for compilation (which excludes them). You can use extends
to share most of the options between the two files. See this discussion.