nuxt-modules / eslint

ESLint module for Nuxt.js
MIT License
159 stars 15 forks source link

console.log output is clobbered when there are eslint warnings #91

Closed ncphillips closed 1 year ago

ncphillips commented 1 year ago

Discord Context

If I have the following component:

<template>
  <h1>Whaterver</h1>
</template>
<script setup>
if (process.server) {
  console.log('Server');
} else {
  console.log('Client');
}
</script>

By default 'no-console' is a warning. Because of that, I get eslint warnings in my console.

Printing those warnings clobbers my console.log so that I do not see the "Server" log output.

This isn't specific to "no-console", it's true for any kind of eslint warning.

ricardogobbosouza commented 1 year ago

Hi @ncphillips Could you provide a minimal reproduction?

ncphillips commented 1 year ago

I don't have one, sorry.

It's probably still an issue but I'm not working with Nuxt anymore