Is there any way to run ng lint
while watching for file changes during ng serve
? To encourage best practices according to the Angular 2 Style Guide our CI tool runs ng lint
during the build process and it isn't always a developers first thought to run lint before submitting a pull request.
Is it possible to customize what ng serve
does or has anyone figured out a way to include running lint as part of the recompilation process? If not, I'd also be interested in knowing whether others have any opinions on whether this is a good idea or not and why.
ng serve
andnpm run lint:watch
in different terminals. – Markus Ende