Skip to content

Commit

Permalink
fix: only run in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Apr 8, 2022
1 parent 21767c5 commit c3fb90e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export interface ModuleOptions extends Partial<Options>{}
const CONFIG_KEY = 'eslint'

const nuxtModule: Module<ModuleOptions> = function (moduleOptions) {
if (!this.options.dev) {
return
}

const DEFAULTS: ModuleOptions = {
context: this.options.srcDir,
eslintPath: 'eslint',
Expand Down

1 comment on commit c3fb90e

@TerkaPrzemyslaw1897
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ricardogobbosouza When we are running it only in dev mode it can't fail on error or warning when building to production. Is this intentionally?

Please sign in to comment.