From f9e4a0e77465e3e89e5058553383dec104fc096f Mon Sep 17 00:00:00 2001 From: viarotel Date: Tue, 5 Mar 2024 15:12:27 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=9E=96=20Remove=20redundant=20packag?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 3 +- .eslintrc.js | 15 ++++++++-- copilot/App.vue | 2 +- package.json | 15 +++++----- .../Device/components/MirrorAction/index.vue | 7 ++--- .../MoreDropdown/components/Camera/index.vue | 9 ++---- .../MoreDropdown/components/Otg/index.vue | 7 ++--- .../MoreDropdown/components/Record/index.vue | 14 ++++----- src/styles/css/index.js | 4 +-- unocss.config.js | 29 +++++++++++++++++-- vite.config.js | 2 -- 11 files changed, 63 insertions(+), 44 deletions(-) diff --git a/.eslintignore b/.eslintignore index fd3ae5b5..bbf3d4db 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,5 +1,6 @@ -node_modules +.github .gitignore +node_modules dist dist-electron dist-release \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index 0fe1fd9c..26d932b9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,16 +1,25 @@ module.exports = { - extends: ['@viarotel-org'], + extends: ['@antfu'], rules: { + 'antfu/top-level-function': 'off', 'no-unused-vars': 'off', 'eqeqeq': 'off', 'prefer-promise-reject-errors': 'off', 'no-new-func': 'off', - - 'antfu/top-level-function': 'off', + 'curly': 'off', + 'no-console': 'off', + 'unused-imports/no-unused-vars': 'off', 'import/default': 'off', 'vue/no-mutating-props': 'off', 'vue/no-use-v-if-with-v-for': 'off', + 'vue/html-self-closing': 'off', + 'vue/block-order': 'off', + 'vue/no-unused-refs': 'off', + + 'n/prefer-global/process': 'off', + + '@typescript-eslint/no-invalid-this': 'off', }, } diff --git a/copilot/App.vue b/copilot/App.vue index 9680f8fa..75737c68 100644 --- a/copilot/App.vue +++ b/copilot/App.vue @@ -1,5 +1,5 @@