poi-plugin-eslint

10.0.0-alpha.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i poi-plugin-eslint

Weekly Downloads

1

Version

10.0.0-alpha.0

License

MIT

Unpacked Size

4.38 kB

Total Files

4

Last publish

Collaborators

  • egoist
  • rem