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

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.

主站蜘蛛池模板: 康定县| 阿拉善盟| 马鞍山市| 济源市| 樟树市| 武平县| 正定县| 前郭尔| 汉阴县| 清新县| 胶州市| 耿马| 北流市| 铁岭市| 丁青县| 泰顺县| 吉木萨尔县| 尉犁县| 河北区| 汝州市| 富平县| 昌乐县| 富源县| 遂川县| 潮安县| 县级市| 团风县| 噶尔县| 日喀则市| 黄大仙区| 马边| 康保县| 嵊州市| 五台县| 海盐县| 新竹县| 西华县| 鄂州市| 太康县| 托里县| 哈巴河县|