vitejs / vite

Next generation frontend tooling. It's fast!
http://vitejs.dev
MIT License
66.24k stars 5.92k forks source link

vite能否在项目启动的时候就可以在终端显示eslint的error和warn #15729

Closed shinyruo-nmsl closed 5 months ago

shinyruo-nmsl commented 5 months ago

Description

当我使用vite去启动项目,并使用eslintPlugin来监听项目中的语法错误时,我希望启动后终端就能提示eslint的error和warn,但是目前我必须点击链接去浏览器打开页面后,终端才会显现eslint的error和warn,我觉得这样有点不太方便:

Snipaste_2024-01-27_19-51-42

还是我没有配置什么导致的?

Suggested solution

希望在项目启动的时候就可以在终端显示eslint的error和warn,而不用点击打开浏览器

Alternative

No response

Additional context

No response

Validations

sapphi-red commented 5 months ago

Vite doesn't have any builtin eslint support. I guess this is a feature request for that plugin.