From d076ca1dfff0f5f63a00da878c3a8fa35706ee73 Mon Sep 17 00:00:00 2001 From: L&H Date: Tue, 19 Dec 2023 15:54:22 +0800 Subject: [PATCH] chore: update vue eslint --- .eslintrc.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index b1bc3ed..b5769f1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,5 +18,13 @@ module.exports = { '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unused-vars': 1, + + 'vue/block-lang': [ + 'error', + { + script: { lang: 'ts', allowNoLang: false }, + }, + ], + 'vue/component-api-style': ['error', ['script-setup']], }, };