Set up TSLint for VS2017

后端 未结 4 1087
别那么骄傲
别那么骄傲 2020-12-30 10:55

I have tried to install this plugin: Web Analyzer, but unfortunately it can not be installed in VS 2017. It showed:

VSIXInstaller.NoApplicableSKUsExce

4条回答
  •  北海茫月
    2020-12-30 11:26

    Since this is the top google result, I wanted to add a more recent answer. Microsoft has a tslint plugin now that works with Typescript 3+ and across Visual Studio, VSCode and other editors:

    https://github.com/Microsoft/typescript-tslint-plugin

    Setup

    Install Dependencies

    npm install --save-dev typescript tslint typescript-tslint-plugin
    

    Add to tsconfig.json:

    {
      "compilerOptions": {
        "plugins": [
          {
            "name": "typescript-tslint-plugin"
          }
        ]
      }
    }
    

    Develop with lint!

提交回复
热议问题