yarn add eslint poi-plugin-eslint --dev
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
.
Add ESLint to build pipeline
Parameters
-
options
Object
Examples
require('poi-plugin-eslint')({
loaderOptions: {
configFile: '/path/to/.eslintrc',
// Enforce our own ESLint config file
useEslintrc: false
}
})
MIT © EGOIST