@pkb/plugin-tslint

1.4.30 • Public • Published

@pkb/plugin-tslint 插件

配合 webpack-box 使用,用来检查并修复 tslint

安装

npm i -D @pkb/plugin-tslint

配置

在根目录下 webpack-box.config.js 开启 tslint

module.exports = function(config) {
  return {
    tslint: {
      lintOnSave: true, // 开启运行时检测
      useThreads: true
    }
  };
};

使用

在 package.json 中配置 lint 脚本,执行 npm run lint

package.json

{
  "scripts": {
    "lint": "webpack-box tslint"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @pkb/plugin-tslint

Weekly Downloads

0

Version

1.4.30

License

none

Unpacked Size

5.46 kB

Total Files

6

Last publish

Collaborators

  • xuege2019
  • liuys
  • happyweb