Add eslint support.
Run with `yarn run lint` or `bin/webpack`.
This commit is contained in:
10
config/webpack/loaders/eslint.js
Normal file
10
config/webpack/loaders/eslint.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
enforce: 'pre',
|
||||
test: /\.(js)$/i,
|
||||
exclude: /node_modules|vendor/,
|
||||
loader: 'eslint-loader',
|
||||
options: {
|
||||
cache: true,
|
||||
emitWarning: true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user