April 2018
Beginner
226 pages
4h 47m
English
Linting is the process of checking or debugging some syntactical, styling error of code. The process of linting is essential for code maintainability and readability. Linting can also eliminate some futuristic errors that may give rise to bugs. tslint.json provides the developer to write the project-specific rules using JSON specification structure. You may already have noticed that as the linting configuration is related to TypeScript, it is prefixed as ts.
The following example illustrates some self-explanatory linting rules of my-app from the tslint.json file. Please refer to the following comments to understand it better:
{ "rules": {//short hand arrow return: getData((someVariable)=>someVariable) "arrow-return-shorthand": ...Read now
Unlock full access