How to run tslint continuously using webpack or vs code during development

When I used gulp in an Angular 1.x project, I can use gulp to view file changes and run eslint continuously. In my Angular 2 project, I use webpack and vs code, how can tslint work all the time?

I tried this, but it does not work:

"watch:lint": "npm run tslint \"src/**/*.ts\" -- --watch",

I have not tried integrating tslint with vs code. Can the code give me constant feedback on the files I'm working on with tslint? Any information appreciated.

0
source share
2 answers

This may not be exactly what you are looking for, but it tslint-loadermay be useful.

https://github.com/wbuchwalter/tslint-loader

preLoader .

,

0

  • gulp
  • gulp tslint

, vscode

VS Code tslint

0

Source: https://habr.com/ru/post/1671069/


All Articles