poi-plugin-eslint
Run eslint as building app using Poi
Last updated 3 years ago by rem .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install poi-plugin-eslint 
SYNC missed versions from official npm registry.

poi-plugin-eslint

Install

yarn add eslint poi-plugin-eslint --dev

Usage

To use eslint during building:

module.exports = {
  plugins: [
    require('poi-plugin-eslint')(/* options */)
  ]
}

By default this plugin is only activated in poi build.

To configure eslint, you can set eslintConfig in package.json or use a standalone config file like .eslintrc.

API

Table of Contents

pluginESLint

Add ESLint to build pipeline

Parameters

  • options Object
    • options.loaderOptions any Options for eslint-loader. (optional, default undefined)
    • options.command (string | Array<string>) In which command to run ESLint. It could be a wildcard symbol * which means all commands, or an array of command like ['build', 'test'] (optional, default 'build')

Examples

require('poi-plugin-eslint')({
  loaderOptions: {
    configFile: '/path/to/.eslintrc',
    // Enforce our own ESLint config file
    useEslintrc: false
  }
})

License

MIT © EGOIST

Current Tags

  • 10.0.0-alpha.0                                ...           latest (3 years ago)
  • 11.0.0-alpha.3                                ...           next (2 years ago)

5 Versions

  • 11.0.0-alpha.3                                ...           2 years ago
  • 11.0.0-alpha.2                                ...           2 years ago
  • 11.0.0-alpha.1                                ...           2 years ago
  • 11.0.0-alpha.0                                ...           2 years ago
  • 10.0.0-alpha.0                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 3
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |