gluestick-plugin-eslint
v4.6.6
Published
Adds `eslint-loader` to lint files when compiling them with Webpack.
Downloads
39
Readme
gluestick-plugin-eslint
Adds eslint-loader
to lint files when compiling them with Webpack.
How to use
- Install plugin
npm install --save eslint-loader gluestick-plugin-eslint
- Define (and configure) plugin in
src/gluestick.plugins.js
:
export default [
'gluestick-plugin-eslint'
]
// or
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