修改部分 eslint 规则

This commit is contained in:
ray_wuhao 2023-04-24 13:58:07 +08:00
parent 660311a7ec
commit dab763cf08
2 changed files with 2 additions and 0 deletions

View File

@ -12,3 +12,4 @@ vite-env.*
visualizer.*
visualizer.html
.env.*
src/locales/lang

View File

@ -103,6 +103,7 @@ module.exports = {
allowShortCircuit: true,
allowTernary: true,
allowTaggedTemplates: true,
enforceForJSX: true,
},
], // 禁止无用的表达式
'no-useless-call': 2, // 禁止不必要的 `call` 和 `apply`