From db82b0739c53de248e0815b4982aa0ca0b4c095b Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 27 May 2021 14:25:33 +0100 Subject: [PATCH] Fix lint script --- package.json | 4 ++-- vite.config.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9d35b66..d864600 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "serve": "vite", "preview": "vite preview --port 8082", "build": "vue-tsc --noEmit && vite build --out-dir dist", - "lint": "eslint src", - "lint:fix": "eslint src --fix", + "lint": "eslint --ext .ts,.vue src", + "lint:fix": "eslint -ext .ts,.vue src --fix", "postinstall": "patch-package" }, "dependencies": { diff --git a/vite.config.ts b/vite.config.ts index 3b18b2d..e3055d7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,3 +1,5 @@ +// noinspection JSUnusedGlobalSymbols + import { defineConfig } from 'vite'; import { resolve } from 'path'; import vue from '@vitejs/plugin-vue';