9.1.1 • Published 6 years ago

poi-preset-eslint v9.1.1

Weekly downloads
36
License
MIT
Repository
github
Last release
6 years ago

poi-preset-eslint

Install

yarn add eslint poi-preset-eslint --dev

Usage

To use eslint during building:

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

By default this preset 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

presetESLint

Add ESLint to build pipeline

Parameters

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

Examples

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

License

MIT © EGOIST

9.1.1

6 years ago

9.1.0

6 years ago

9.0.1

7 years ago

9.0.0

7 years ago

9.0.0-rc.1

7 years ago

8.0.1

7 years ago

8.0.0

7 years ago

8.0.0-rc.4

7 years ago

8.0.0-rc.1

7 years ago

7.3.0

7 years ago