@pkb/plugin-eslint
webpack-box 插件,配置 eslint 及修复
Last updated 5 months ago by xuege2019 .
Original npm · Tarball · package.json
$ cnpm install @pkb/plugin-eslint 
SYNC missed versions from official npm registry.

@pkb/plugin-eslint 插件

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

安装

npm i -D @pkb/plugin-eslint

配置

在根目录下 box.config.js 开启 eslint

module.exports = function(config) {
  return {
    eslint: {
      lintOnSave: true, // 开启运行时检测
      extensions: ["js", "jsx", "vue"] // 默认 ['js', 'jsx']
    }
  };
};

使用

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

package.json

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

Current Tags

  • 1.2.10                                ...           latest (5 months ago)

6 Versions

  • 1.2.10                                ...           5 months ago
  • 1.2.8                                ...           5 months ago
  • 1.2.7                                ...           5 months ago
  • 1.2.5                                ...           5 months ago
  • 1.2.3                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Downloads
Today 0
This Week 3
This Month 10
Last Day 2
Last Week 1
Last Month 6
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |