gxmari007 / vite-plugin-eslint

🚨 ESLint plugin for vite
MIT License
266 stars 44 forks source link

Why did I configure {cache: false} in vite-eslint-plugin and still fail to hot update successfully? #58

Open Pipapig123 opened 1 year ago

Pipapig123 commented 1 year ago

Why did I configure {cache: false} in vite-eslint-plugin and still fail to hot update successfully? import eslintPlugin from 'vite-plugin-eslint' eslintPlugin({ include: ['src/**/*.js', 'src/**/*.vue', 'src/*.js', 'src/*.vue'], cache: false }),

Pipapig123 commented 1 year ago

I'm glad to solve this problem quickly! In the vue3 project created based on vite, it is not necessary to install the vite-plugin-elint plug-in. If it is installed, it may cause an error after the hot update.....