- Learn React with TypeScript 3
- Carl Rippon
- 129字
- 2021-06-10 19:16:39
Installing TSLint
We'll install TSLint in this section, along with a Visual Studio Code extension that will highlight linting problems right in the code:
- Let's install TSLint globally via npm, as follows:
npm install -g tslint
- Now, we can open Visual Studio Code and go to the extensions area (Ctrl + Shift + X) and type tslint in the search box at the top-left. The extension is called TSLint and was published by egamma:
- We need to click the Install option to install the extension.
- After it has been installed, we'll need to reload Visual Studio Code for the extension to become enabled.
Now that this extension is installed, along with TSLint globally, linting errors will be highlighted right in our code, as we'll see in the following sections.
推薦閱讀
- 軟件項(xiàng)目估算
- Visual Basic程序設(shè)計(jì)教程
- Responsive Web Design with HTML5 and CSS3
- Magento 2 Development Cookbook
- ASP.NET動(dòng)態(tài)網(wǎng)頁(yè)設(shè)計(jì)教程(第三版)
- Java:Data Science Made Easy
- 基于差分進(jìn)化的優(yōu)化方法及應(yīng)用
- 劍指Java:核心原理與應(yīng)用實(shí)踐
- 51單片機(jī)C語(yǔ)言開發(fā)教程
- Node.js:來(lái)一打 C++ 擴(kuò)展
- 微信小程序開發(fā)與實(shí)戰(zhàn)(微課版)
- Web前端應(yīng)用開發(fā)技術(shù)
- OpenStack Networking Essentials
- After Effects CC技術(shù)大全
- SAP Web Dynpro for ABAP開發(fā)技術(shù)詳解:基礎(chǔ)應(yīng)用