A plugin for enabling EslintWebpackPlugin in Docusaurus.
- Run
yarn install docusaurus-plugin-eslint
. - Set the
eslintPath
option to the desired ESLint instance (not ESLint configuration).
docusaurus.config.js
module.exports = {
plugins: [
[require.resolve('docusaurus-plugin-eslint'), {
eslintPath: require.resolve('eslint'),
// EslintWebpackPlugin options
}]
],
};