December 2017
Beginner
372 pages
10h 32m
English
In an Angular CLI project, when the project is generated, the CLI adds a file with the name tslint.json. This file contains all the recommended rules for writing TypeScript code.
The following are some of the rules taken from the file; you can refer to the file for the comprehensive list of linting rules:
"arrow-return-shorthand": true, "callable-types": true,..."curly": true,"eofline": true,.... "quotemark": [ true, "single" ],
The preceding rules shown are just a small set defined in our file. Based on your team's preference, you can modify this file and have the rules defined. When Angular CLI runs the ng lint command, it will use this file as reference and flag any violations.
Read now
Unlock full access