July 2018
Intermediate to advanced
420 pages
8h 46m
English
As we mentioned previously, code consistency is a key point for a successful project. By default, the Angular CLI has already added tslint to our project, as we can see in the package.json file and in the scripts tag, with the ng-lint command.
However, while we were writing this chapter, the Angular CLI had a small bug and reported the error message twice when we used the ng-lint command. To avoid that, let's add the following lines to our package.json file, right after the sass-lint script:
"tslint": "./node_modules/.bin/tslint --project tsconfig.json || echo \"Ops: TSlint faild for some file(s).\"",
In the previous lines, we used the local tslint binary from the node_modules folder. This will ...
Read now
Unlock full access