From dab763cf0866c7a40b9a08680bc3b386f84a5b40 Mon Sep 17 00:00:00 2001 From: ray_wuhao <443547225@qq.com> Date: Mon, 24 Apr 2023 13:58:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=20eslint?= =?UTF-8?q?=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 1 + .eslintrc.cjs | 1 + 2 files changed, 2 insertions(+) diff --git a/.eslintignore b/.eslintignore index 46f49ce7..19cbffed 100644 --- a/.eslintignore +++ b/.eslintignore @@ -12,3 +12,4 @@ vite-env.* visualizer.* visualizer.html .env.* +src/locales/lang \ No newline at end of file diff --git a/.eslintrc.cjs b/.eslintrc.cjs index de3966c9..3af6394f 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -103,6 +103,7 @@ module.exports = { allowShortCircuit: true, allowTernary: true, allowTaggedTemplates: true, + enforceForJSX: true, }, ], // 禁止无用的表达式 'no-useless-call': 2, // 禁止不必要的 `call` 和 `apply`