We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c902dc3 commit 21b7f0dCopy full SHA for 21b7f0d
src/module.ts
@@ -53,11 +53,16 @@ export default defineNuxtModule<ModuleOptions>({
53
54
addVitePlugin(vitePluginEslint(options), { server: false })
55
56
- addWebpackPlugin(new EslintWebpackPlugin({
+ const webpackOptions = {
57
...options,
58
context: nuxt.options.srcDir,
59
files: options.include,
60
lintDirtyModulesOnly: !options.lintOnStart
61
- }), { server: false })
+ }
62
+
63
+ delete webpackOptions.include
64
+ delete webpackOptions.lintOnStart
65
66
+ addWebpackPlugin(new EslintWebpackPlugin(webpackOptions), { server: false })
67
}
68
})
0 commit comments