From e0cd9d9d1952dbb199577ce7498b979427c443a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=99=93=E5=87=A1?= <154408238@qq.com> Date: Tue, 15 Aug 2023 11:57:30 +0800 Subject: [PATCH] =?UTF-8?q?eslint=20=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 5 +++++ package.json | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 36b2749..db1d9aa 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,9 @@ module.exports = { + 'global': { + 'Cesium': writable, + 'scene': writable, + 'viewer': writable + }, root: true, env: { browser: true, diff --git a/package.json b/package.json index dce1cb4..229e581 100644 --- a/package.json +++ b/package.json @@ -45,12 +45,5 @@ "vite-plugin-html": "^2.1.2", "vite-plugin-mock": "^2.9.6", "vite-plugin-vue-setup-extend": "^0.4.0" - }, - "eslintConfig": { - "globals": { - "Cesium": true, - "scene": true, - "viewer": true - } } } \ No newline at end of file