Skip to content

Commit c3fb90e

Browse files
fix: only run in dev mode
1 parent 21767c5 commit c3fb90e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/module.ts

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ export interface ModuleOptions extends Partial<Options>{}
1313
const CONFIG_KEY = 'eslint'
1414

1515
const nuxtModule: Module<ModuleOptions> = function (moduleOptions) {
16+
if (!this.options.dev) {
17+
return
18+
}
19+
1620
const DEFAULTS: ModuleOptions = {
1721
context: this.options.srcDir,
1822
eslintPath: 'eslint',

0 commit comments

Comments
 (0)