This is the eslint
block providing JavaScript linting support for webpack. Uses eslint
via
eslint-loader
.
const { createConfig } = require('@webpack-blocks/webpack')
const eslint = require('@webpack-blocks/eslint')
module.exports = createConfig([
eslint(/* eslint options */)
])
Use match()
to explicitly specify the files to lint.
You can pass any eslint-loader
options as an object to the eslint
block. See
eslint-loader options.
Check out the
Released under the terms of the MIT license.