- 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.
推薦閱讀
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- scikit-learn Cookbook
- 大學計算機基礎(第二版)
- Kali Linux Web Penetration Testing Cookbook
- OpenDaylight Cookbook
- C語言程序設計(第3版)
- Visual FoxPro程序設計教程(第3版)
- Learning PostgreSQL
- Mastering Natural Language Processing with Python
- C/C++算法從菜鳥到達人
- Mastering Ubuntu Server
- 云計算通俗講義(第3版)
- Julia Cookbook
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- Building Dynamics CRM 2015 Dashboards with Power BI