NOTE: the latest version is 1.2.3
Reports let in declarations that do not have a type annotation.
let in
Type annotations help you understand what happens in the code, and it will help the compiler give better error messages.
config = [ NoMissingTypeAnnotationInLetIn.rule ]
This rule does not report top-level declarations without a type annotation inside a let in. For that, enable NoMissingTypeAnnotation.
NoMissingTypeAnnotation
a : number a = let -- Missing annotation b = 2 in b
-- Top-level annotation is not necessary, but good to have! a : number a = let b : number b = 2 in b
Reports
let indeclarations that do not have a type annotation.Type annotations help you understand what happens in the code, and it will help the compiler give better error messages.
This rule does not report top-level declarations without a type annotation inside a
let in. For that, enableNoMissingTypeAnnotation.Fail
Success