enable tslint in vscode

Published: 25 December 2020
on channel: Programming with Karthik
7,026
32

enable tslint in vscode
PreRequiste:
Have typescript installed.
npm install typescript

Install tslint globally and as dev dependency
npm install –g tslint ( to enable to generate ts Config)
npm install –only=dev tslint

Generate the tslint config
tslint –init

Add the linting in the scripts in package.json
"lint": "tslint ‘src/**/*.ts’”

To enable automatically linting on your files in VS Code
Open the command Palette :
Ctrl+Shift+P
Execute the command:
TSLint: Manage workspace library execution"


Watch video enable tslint in vscode online without registration, duration hours minute second in high quality. This video was added by user Programming with Karthik 25 December 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,026 once and liked it 32 people.