razzle-plugin-modify-eslint-loader-config
v1.0.0
Published
Razzle plugin to modifty eslint loader config
Downloads
21
Readme
razzle-plugin-modify-eslint-loader-config
This package contains a plugin which can be used to modify eslint loader config
Usage in Razzle Projects
yarn add razzle-plugin-modify-eslint-loader-config
Using the plugin with the default options
// razzle.config.js
module.exports = {
plugins: [
'eslint',
'modify-eslint-loader-config' // This plugin should always be after eslint plugin
],
};
With custom options:
// razzle.config.js
module.exports = {
plugins: [
'eslint',
{
// This plugin should always be after eslint plugin
name: 'modify-eslint-loader-config',
options: {
fix: true, // enable autofix
},
},
],
};
Options
NB: By default this plugin sets emitWarning
to true to force eslint errors to be shown as warnings (so compilation still succeeds).
see https://github.com/webpack-contrib/eslint-loader#options
License
MIT © Thorgate