diff --git a/vite.config.js b/vite.config.js index ada91f2..e2b89d4 100644 --- a/vite.config.js +++ b/vite.config.js @@ -89,12 +89,15 @@ export default (configEnv) => { legacy({ targets: ['defaults', 'not IE 11'], }), - eslintPlugin({ - eslintOptions: { - cache: true, - }, - shouldLint: (path) => /\/src\/[^?]*\.(vue|m?[jt]sx?)$/.test(path), - }), + { + ...eslintPlugin({ + eslintOptions: { + cache: true, + }, + shouldLint: (path) => /\/src\/[^?]*\.(vue|m?[jt]sx?)$/.test(path), + }), + enforce: 'post', + }, ], css: { preprocessorOptions: {