You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on May 1, 2020. It is now read-only.
Tslint shows errors even for external typescript libraries inside the node_modules folder. I think it would be a good idea to exclude the node_modules folder from tslint or (even better) to create a configuration option for excluding file patterns
@danbucholtz How? e.g. exclude src/models does not work for the linter. He still scans this folder.
I expected a property in tslint.json exclude and / or include. I use ionic app scripts.
It's right that tsconfig.ts exclude should also work for the linter. But what's wrong in my case?
I also tried src/models/**
Background src/models are auto-generated files. I do not want to lint them.
Update (a second later 😄 )
Ok, nevermind: "**/src/models/**" works.
Update
This does not work for the build. Only for the linter.
Error: File specification cannot contain multiple recursive directory wildcards ('**'): **/src/models/**
Ok, I can try some other variations and read the specification of this syntax. 😄 Any suggestions?
Only **/src/models/** works. Same in settings.json of VS Code.
Btw. in include is src/**/*.ts
Activity
danbucholtz commentedon Jan 28, 2017
This should be resolved now. In our
tsconfig.jsonwe excludenode_modules.Thanks,
Dan
chrene commentedon Apr 26, 2017
I still see vendor code from node_modules being linted
In my case it is the
ng2-img-croppermodule that gets linted.tslint: node_modules/ng2-img-cropper/src/model/point.tsmy tsconfig.json is
Domvel commentedon Aug 14, 2018
@danbucholtz How? e.g. exclude
src/modelsdoes not work for the linter. He still scans this folder.I expected a property in tslint.json
excludeand / orinclude. I use ionic app scripts.It's right that tsconfig.ts exclude should also work for the linter. But what's wrong in my case?
I also tried
src/models/**Background
src/modelsare auto-generated files. I do not want to lint them.Update (a second later 😄 )
Ok, nevermind:
"**/src/models/**"works.Update
This does not work for the build. Only for the linter.
Error: File specification cannot contain multiple recursive directory wildcards ('**'):
**/src/models/**Ok, I can try some other variations and read the specification of this syntax. 😄 Any suggestions?
Only
**/src/models/**works. Same in settings.json of VS Code.Btw. in
includeissrc/**/*.ts