From 7f7961449a9c0ff7fb310f98e3c085bbdea333bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 11 Oct 2024 18:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ESLint=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E6=94=AF=E6=8C=81=20TypeScript=20=E5=92=8C?= =?UTF-8?q?=20TSX=20=E8=84=9A=E6=9C=AC=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index d90081c..dde33c4 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -27,7 +27,12 @@ export default [ }, ...pluginVue.configs['flat/essential'], - ...vueTsEslintConfig(), + ...vueTsEslintConfig({ + supportedScriptLangs: { + ts: true, + tsx: true, + } + }), { ...pluginVitest.configs.recommended,