diff --git a/.eslintrc.json b/.eslintrc.json index 0ee38f6..1dcd3c4 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -16,5 +16,6 @@ "plugin:prettier/recommended", "./.eslintrc-auto-import.json" ], - "parser": "@typescript-eslint/parser" + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint", "prettier", "eslint-plugin-vue"] } diff --git a/vite.main.config.ts b/vite.main.config.ts index c93ad03..0578797 100644 --- a/vite.main.config.ts +++ b/vite.main.config.ts @@ -4,6 +4,8 @@ import { defineConfig } from 'vite'; export default defineConfig({ resolve: { // Some libs that can run in both Web and Node.js, such as `axios`, we need to tell Vite to build them in Node.js. + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore browserField: false, mainFields: ['module', 'jsnext:main', 'jsnext'], },