From c5dbb91635bb801682532ddc3b5b618b606e6750 Mon Sep 17 00:00:00 2001 From: * <8> Date: Thu, 24 Mar 2022 16:04:38 +0800 Subject: [PATCH] Match-id-a41469cf2ad241a94d6f75a6753fd7af282d1453 --- .eslintrc.js | 1 + libs/horizon/src/renderer/vnode/VNodeCreator.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index f25357b3..1a425fc3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -34,6 +34,7 @@ module.exports = { rules: { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-non-null-assertion': 'off', + 'semi': ["error", "always"], 'accessor-pairs': 'off', 'brace-style': ['error', '1tbs'], 'func-style': ['warn', 'declaration', { allowArrowFunctions: true }], diff --git a/libs/horizon/src/renderer/vnode/VNodeCreator.ts b/libs/horizon/src/renderer/vnode/VNodeCreator.ts index 5dc4ccac..457a1000 100644 --- a/libs/horizon/src/renderer/vnode/VNodeCreator.ts +++ b/libs/horizon/src/renderer/vnode/VNodeCreator.ts @@ -56,7 +56,7 @@ export function getLazyVNodeTag(lazyComp: any): string { } else if (lazyComp !== undefined && lazyComp !== null && typeLazyMap[lazyComp.vtype]) { return typeLazyMap[lazyComp.vtype]; } - throw Error("Horizon can't resolve the content of lazy ") + throw Error("Horizon can't resolve the content of lazy "); } // 创建processing