- 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.
推薦閱讀
- Hyper-V 2016 Best Practices
- Oracle從新手到高手
- AIRAndroid應(yīng)用開發(fā)實(shí)戰(zhàn)
- SEO智慧
- Apache Kafka Quick Start Guide
- PySide 6/PyQt 6快速開發(fā)與實(shí)戰(zhàn)
- 區(qū)塊鏈技術(shù)與應(yīng)用
- 編程與類型系統(tǒng)
- Kivy Cookbook
- 機(jī)器學(xué)習(xí)微積分一本通(Python版)
- Deep Learning for Natural Language Processing
- Software-Defined Networking with OpenFlow(Second Edition)
- 網(wǎng)頁設(shè)計(jì)與制作
- Mastering JavaScript Promises
- Learning Swift