vite-plugin-checker icon indicating copy to clipboard operation
vite-plugin-checker copied to clipboard

Hide eslint output in browser but show in terminal

Open timsofteng opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Hello. I often use console.log. It is forbidden in my eslint config. I dot't know how to work with it properly. I don't want to see warning messages about my console.log in browser.

Describe the solution you'd like

I guess an option to hide output of some checkers in browser would be enough.

Describe alternatives you've considered

If you have better solution please describe it. Thanks.

Additional context

No response

Validations

  • [X] Read the docs.
  • [X] Read the Contributing Guidelines.
  • [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.

timsofteng avatar Apr 25 '23 17:04 timsofteng

To disable your eslint rule temporarily, just add // eslint-disable-line. If you want, you can add a TODO comment as a reminder.

so1ve avatar Apr 27 '23 08:04 so1ve

To disable your eslint rule temporarily, just add // eslint-disable-line. If you want, you can add a TODO comment as a reminder.

This is what I do now and what I would like to change.

timsofteng avatar Apr 27 '23 11:04 timsofteng

@timsofteng you can do

plugins: [
   ...
   checker({
      typescript: true,
      overlay: false,
   }),
   ...
]

kanenathan213 avatar Aug 15 '24 18:08 kanenathan213