在开发过程中如何使用Webpack或vs代码连续运行tslint [英] How to run tslint continuously with webpack or vs code during development
问题描述
当我在Angular 1.x项目中使用gulp时,我可以使用gulp来监视文件更改并连续运行eslint.在我的Angular 2项目中,我正在使用webpack和vs代码,如何使tslint连续运行?
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",
我还没有尝试将tslint与vs代码集成在一起.vs代码可以为我使用tslint处理的文件提供持续的反馈吗?任何信息表示赞赏.
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.
推荐答案
单次执行
- 安装gulp
- 运行命令
gulp tslint
或者,此vscode扩展名将使您的工作更加轻松
Alternatively, This vscode extension would make your work much more easy
VS Code tslint
这篇关于在开发过程中如何使用Webpack或vs代码连续运行tslint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!