eslint-plugin-nuxt icon indicating copy to clipboard operation
eslint-plugin-nuxt copied to clipboard

Warn for fixable issues

Open MarcelloTheArcane opened this issue 5 years ago • 2 comments

Currently nuxt/recommended throws errors for fixable issues.

I think it should instead throw a warning, so development can continue. Errors should only be for problems that affect compilation.

MarcelloTheArcane avatar Jan 14 '20 08:01 MarcelloTheArcane

I think this behaviour may come from eslint-module and eslint-loader, you can try options failOnWarning or fix to skip or auto-fix the error.

clarkdo avatar Jan 17 '20 13:01 clarkdo

Was running into this too and did some digging.

I added this to my nuxt.config.js

 eslint: {
    fix: true,
  },

and it fixed a lot of the fix errors i was getting...

doylerules85 avatar Mar 03 '21 21:03 doylerules85