perf: 修改eslint的babelOptions配置,支持jsx

This commit is contained in:
rd
2025-07-16 13:56:12 +08:00
parent 50bd0cd44a
commit bd53413ae8

View File

@ -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',