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

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.

主站蜘蛛池模板: 武邑县| 政和县| 贵南县| 中阳县| 铁岭县| 铜梁县| 当涂县| 彝良县| 四平市| 平昌县| 盘山县| 麻城市| 岳普湖县| 紫金县| 鸡泽县| 山东省| 吴堡县| 新平| 长岭县| 越西县| 汉中市| 武乡县| 青浦区| 达孜县| 永寿县| 象山县| 黎川县| 武冈市| 贵定县| 贵州省| 临颍县| 东海县| 彭泽县| 长兴县| 五寨县| 新龙县| 凤阳县| 彰武县| 徐闻县| 建阳市| 山西省|