官术网_书友最值得收藏!

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:

  1. Let's install TSLint globally via npm, as follows:
npm install -g tslint
  1. 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:

  1. We need to click the Install option to install the extension.
  2. 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.

主站蜘蛛池模板: 固始县| 古丈县| 灵台县| 兖州市| 永年县| 汪清县| 滕州市| 万盛区| 蕉岭县| 大竹县| 昆明市| 临武县| 汶上县| 冀州市| 望都县| 广南县| 罗山县| 房产| 石屏县| 全州县| 革吉县| 大竹县| 梁平县| 牙克石市| 拉萨市| 介休市| 怀远县| 凤翔县| 绍兴市| 宜宾县| 视频| 海阳市| 剑河县| 安吉县| 金塔县| 阿城市| 陆丰市| 通州区| 葵青区| 海淀区| 冀州市|