@@ -427,6 +427,7 @@ export interface DiagnosticRuleSet {
427427 reportIncompatibleUnannotatedOverride : DiagnosticLevel ;
428428 reportInvalidAbstractMethod : DiagnosticLevel ;
429429 reportSelfClsDefault : DiagnosticLevel ;
430+ reportUnsolvedTypeVar : DiagnosticLevel ;
430431 allowedUntypedLibraries : string [ ] ;
431432}
432433
@@ -560,6 +561,7 @@ export function getDiagLevelDiagnosticRules() {
560561 DiagnosticRule . reportIncompatibleUnannotatedOverride ,
561562 DiagnosticRule . reportInvalidAbstractMethod ,
562563 DiagnosticRule . reportSelfClsDefault ,
564+ DiagnosticRule . reportUnsolvedTypeVar ,
563565 ] ;
564566}
565567
@@ -698,6 +700,7 @@ export function getOffDiagnosticRuleSet(): DiagnosticRuleSet {
698700 reportIncompatibleUnannotatedOverride : 'none' ,
699701 reportInvalidAbstractMethod : 'none' ,
700702 reportSelfClsDefault : 'none' ,
703+ reportUnsolvedTypeVar : 'none' ,
701704 allowedUntypedLibraries : [ ] ,
702705 } ;
703706
@@ -818,6 +821,7 @@ export function getBasicDiagnosticRuleSet(): DiagnosticRuleSet {
818821 reportIncompatibleUnannotatedOverride : 'none' ,
819822 reportInvalidAbstractMethod : 'none' ,
820823 reportSelfClsDefault : 'none' ,
824+ reportUnsolvedTypeVar : 'none' ,
821825 allowedUntypedLibraries : [ ] ,
822826 } ;
823827
@@ -938,6 +942,7 @@ export function getStandardDiagnosticRuleSet(): DiagnosticRuleSet {
938942 reportIncompatibleUnannotatedOverride : 'none' ,
939943 reportInvalidAbstractMethod : 'none' ,
940944 reportSelfClsDefault : 'none' ,
945+ reportUnsolvedTypeVar : 'none' ,
941946 allowedUntypedLibraries : [ ] ,
942947 } ;
943948
@@ -1057,6 +1062,7 @@ export const getRecommendedDiagnosticRuleSet = (): DiagnosticRuleSet => ({
10571062 reportIncompatibleUnannotatedOverride : 'none' , // TODO: change to error when we're confident there's no performance issues with this rule
10581063 reportInvalidAbstractMethod : 'warning' ,
10591064 reportSelfClsDefault : 'warning' ,
1065+ reportUnsolvedTypeVar : 'error' ,
10601066 allowedUntypedLibraries : [ ] ,
10611067} ) ;
10621068
@@ -1173,6 +1179,7 @@ export const getAllDiagnosticRuleSet = (): DiagnosticRuleSet => ({
11731179 reportIncompatibleUnannotatedOverride : 'error' ,
11741180 reportInvalidAbstractMethod : 'error' ,
11751181 reportSelfClsDefault : 'error' ,
1182+ reportUnsolvedTypeVar : 'error' ,
11761183 allowedUntypedLibraries : [ ] ,
11771184} ) ;
11781185
@@ -1290,6 +1297,7 @@ export function getStrictDiagnosticRuleSet(): DiagnosticRuleSet {
12901297 reportIncompatibleUnannotatedOverride : 'none' ,
12911298 reportInvalidAbstractMethod : 'none' ,
12921299 reportSelfClsDefault : 'none' ,
1300+ reportUnsolvedTypeVar : 'none' ,
12931301 allowedUntypedLibraries : [ ] ,
12941302 } ;
12951303
0 commit comments