在开发过程中如何使用Webpack或vs代码连续运行tslint [英] How to run tslint continuously with webpack or vs code during development

查看:87
本文介绍了在开发过程中如何使用Webpack或vs代码连续运行tslint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在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.

推荐答案

单次执行

  1. 安装gulp
  2. 运行命令 gulp tslint

或者,此vscode扩展名将使您的工作更加轻松

Alternatively, This vscode extension would make your work much more easy

VS代码tslint

VS Code tslint

这篇关于在开发过程中如何使用Webpack或vs代码连续运行tslint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆