Angular-cli: add watch option for ng lint command

Created on 24 Nov 2016  路  10Comments  路  Source: angular/angular-cli

OS

Windows 10

Versions.

angular-cli: 1.0.0-beta.19-3
node: 6.5.0
os: win32 x64

Currently ng lint runs only one time. add watch option for ng lint command

Most helpful comment

The response to this issue and the prior issue (https://github.com/angular/angular-cli/issues/3437) is remarkable. For each issue, contributors to this repo have essentially told people to get a better IDE or do it yourself. The whole point of the CLI is to provide a nice developer experience. If you are going to tell everyone to just a different IDE or script it yourself, why have the CLI? This is a very arrogant and dismissive attitude

All 10 comments

If you got a proper IDE you might have TSLint support built into the IDE itself. PhpStorm/WebStorm for example has this. It will run quietly in the background and highlight any errors for you.

closing this issue

@grizzm0 you have link? please

Watch option is cool, please consider reopening the issue.

Pointing that another tool offers the functionality is not really a suitable answer, in my opinion, as people that does not use these IDE won't benefit from this useful option.

I think it would be consistent if one can make compiler, tests runner and linter run in background while coding with the CLI, without the need of an IDE.

@coldiary - Totally agree. Saying that X IDE has this feature is good information, but, I am not sure if it is solution. For example, Visual Studio has a starter project for Angular 2, which is good to know for a .Net guy, and may not be useful for others who do not use Visual Studio.

I agree this is a relevant issue. Being able to run watch on ng lint allows the ng serve to choke and throw out errors when a developer saves on unclean code. This is a preventative measure for enterprise level code. Do IDEs have the linters built in, yes. Will they underline questionable code, yes. Do they prevent developers from pushing dirty code passed standards into the build, unfortunately no.

Angular-CLI does a wonderful job of abstracting many of the tedious aspects of the everyday dev environment. On the flip side, it hides and prevents developers from doing additional positives as mentioned in this issue. Please don't discount these requests so easily.

The response to this issue and the prior issue (https://github.com/angular/angular-cli/issues/3437) is remarkable. For each issue, contributors to this repo have essentially told people to get a better IDE or do it yourself. The whole point of the CLI is to provide a nice developer experience. If you are going to tell everyone to just a different IDE or script it yourself, why have the CLI? This is a very arrogant and dismissive attitude

I agree with everyone in this thread - we should be able to comfortably use only a simple editor (note, not IDE) with the angular cli, depending on IDE extensions doesn't sound like a good idea..

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hartjo picture hartjo  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments

donaldallen picture donaldallen  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments

jmurphzyo picture jmurphzyo  路  3Comments