From 584ecf336224c65e44e8b375919d676de5377f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 28 Sep 2021 10:49:19 +0800 Subject: disable `type-check` by default --- script/proto/define.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script/proto') diff --git a/script/proto/define.lua b/script/proto/define.lua index f0dece36..825e757c 100644 --- a/script/proto/define.lua +++ b/script/proto/define.lua @@ -17,7 +17,6 @@ m.DiagnosticSeverity = { --- 诊断类型与默认等级 ---@type table m.DiagnosticDefaultSeverity = { - ['type-check'] = "Warning", ['unused-local'] = 'Hint', ['unused-function'] = 'Hint', ['undefined-global'] = 'Warning', @@ -44,6 +43,7 @@ m.DiagnosticDefaultSeverity = { ['no-implicit-any'] = 'Information', ['deprecated'] = 'Warning', ['different-requires'] = 'Warning', + ['type-check'] = 'Warning', ['duplicate-doc-class'] = 'Warning', ['undefined-doc-class'] = 'Warning', @@ -96,6 +96,7 @@ m.DiagnosticDefaultNeededFileStatus = { ['no-implicit-any'] = 'None', ['deprecated'] = 'Opened', ['different-requires'] = 'Any', + ['type-check'] = 'None', ['duplicate-doc-class'] = 'Any', ['undefined-doc-class'] = 'Any', -- cgit v1.2.3