From bd53413ae822aa5ae388d820783db4d7652ef1de Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Wed, 16 Jul 2025 13:56:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9eslint=E7=9A=84babelO?= =?UTF-8?q?ptions=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=94=AF=E6=8C=81jsx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index a98f933..a78dbb9 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -28,6 +28,14 @@ module.exports = { tsx: '@typescript-eslint/parser', }, }, + babelOptions: { + presets: [ + '@babel/preset-env' + ], + plugins: [ + '@vue/babel-plugin-jsx' + ] + }, rules: { '@typescript-eslint/prefer-optional-chain': 'off', 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',