Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eslint warning or error information not clear when save the file and trigger recompile #83

Closed
geekftz opened this issue Oct 29, 2021 · 2 comments

Comments

@geekftz
Copy link

geekftz commented Oct 29, 2021

hello, I got a minor question and I think it is not the problem from vite, so I wanna to talk about this.

I write some code that can cause several error message, if I fix part of it and save file, the project reload and the remain error message overlay the old thing. Up to now it seems ok, but when I fix all of it, I expected all eslint error message can get clear but it still show the previous error message in terminal screen. It looks a bit of weired.

phenomenon

image

image

vite config

import checker from 'vite-plugin-checker';

// ...

return defineConfig({
    plugins: [
      reactRefresh(),
      checker({
        typescript: true,
        eslint: {
          files: ['./src', './config'],
          extensions: ['.ts', '.tsx', '.js', '.jsx'],
        },
      }),
    ],
  });
@fi3ework
Copy link
Owner

fi3ework commented Jan 5, 2022

Sorry for the late response. I gave it a try but I can not reproduce this phenomenon. Could you provide a minimal repo or describe how to remain an unexpected error message in the terminal in more detail.

@fi3ework
Copy link
Owner

fi3ework commented Feb 8, 2022

the issue should be fixed in 0.4.0. There's a little modification of the config of eslint. See documentation and example.

@fi3ework fi3ework closed this as completed Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants