From fa4967efc3ce340198a7493d2a17929e9514e160 Mon Sep 17 00:00:00 2001 From: zclzone Date: Thu, 29 Feb 2024 17:01:43 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9eslint=E8=AE=BE?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 5 ++++- package.json | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index c699a1a..370851c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,5 +18,8 @@ "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" }, - "eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact", "vue"] + "eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact", "vue"], + "eslint.options": { + "overrideConfigFile": "package.json" + } } diff --git a/package.json b/package.json index beb49aa..17d5b51 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,11 @@ "@zclzone", "@unocss", ".eslint-global-variables.json" - ] + ], + "parserOptions": { + "ecmaFeatures": { + "jsx": true + } + } } }