gluestick-plugin-eslint
Adds eslint-loader
to lint files when compiling them with Webpack.
How to use
npm install --save eslint-loader gluestick-plugin-eslint
- Define (and configure) plugin in
src/gluestick.plugins.js
:
export default [
'gluestick-plugin-eslint'
]
export default [
{
plugin: 'gluestick-plugin-eslint',
options: {
enableInProduction: true,
loaderOptions: {
configFile: 'path/to/eslint-config-file'
}
},
},
]
Configuration
enableInProduction
: boolean
(default: false
) - enable linting in productionloaderOptions
: Object
(default: { configFile: path.join(process.cwd(), '.eslintrc') }
) - eslint-loader
options