mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-09-02 13:19:52 +08:00
修改部分 eslint 规则
This commit is contained in:
parent
660311a7ec
commit
dab763cf08
@ -12,3 +12,4 @@ vite-env.*
|
|||||||
visualizer.*
|
visualizer.*
|
||||||
visualizer.html
|
visualizer.html
|
||||||
.env.*
|
.env.*
|
||||||
|
src/locales/lang
|
@ -103,6 +103,7 @@ module.exports = {
|
|||||||
allowShortCircuit: true,
|
allowShortCircuit: true,
|
||||||
allowTernary: true,
|
allowTernary: true,
|
||||||
allowTaggedTemplates: true,
|
allowTaggedTemplates: true,
|
||||||
|
enforceForJSX: true,
|
||||||
},
|
},
|
||||||
], // 禁止无用的表达式
|
], // 禁止无用的表达式
|
||||||
'no-useless-call': 2, // 禁止不必要的 `call` 和 `apply`
|
'no-useless-call': 2, // 禁止不必要的 `call` 和 `apply`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user