When I was using gulp in an Angular 1.x project, I can use gulp to watch files changes and run eslint continuously. In my Angular 2 project, I am using webpack and vs code, how do I make tslint continuously running?
I tried this but it doesn't work:
"watch:lint": "npm run tslint \"src/**/*.ts\" -- --watch",
I haven't tried integrating tslint with vs code. Can vs code give me constant feedback on the files that I am working on with tslint? Any info is appreciated.
That's probably not exactly what you're looking for, but tslint-loader
might be useful
https://github.com/wbuchwalter/tslint-loader
It poses a preLoader and check files before compilation.
Hope it helps
For single execution
gulp tslint
Alternatively, This vscode extension would make your work much more easy
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.