perf: 修改eslint的babelOptions配置,支持jsx
This commit is contained in:
@ -28,6 +28,14 @@ module.exports = {
|
|||||||
tsx: '@typescript-eslint/parser',
|
tsx: '@typescript-eslint/parser',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
babelOptions: {
|
||||||
|
presets: [
|
||||||
|
'@babel/preset-env'
|
||||||
|
],
|
||||||
|
plugins: [
|
||||||
|
'@vue/babel-plugin-jsx'
|
||||||
|
]
|
||||||
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/prefer-optional-chain': 'off',
|
'@typescript-eslint/prefer-optional-chain': 'off',
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
|||||||
Reference in New Issue
Block a user