Suggested by lcaprini
// nuxt.config.js
build: {
extend(config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce : 'pre',
test : /\.(js|vue)$/,
loader : 'eslint-loader',
exclude : /(node_modules)/,
options : {
fix : true
}
});
}
}
}
Since commit
// nuxt.config.js
buildModules: [
['@nuxtjs/eslint-module', {
fix: true
}]
]
Thanks!