--- ruleName: no-inferrable-types description: 'Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.' rationale: Explicit types where they can be easily infered by the compiler make code more verbose. optionsDescription: |- One argument may be optionally provided: * `ignore-params` allows specifying an inferrable type annotation for function params. This can be useful when combining with the `typedef` rule. options: type: array items: type: string enum: - ignore-params minLength: 0 maxLength: 1 optionExamples: - 'true' - '[true, "ignore-params"]' type: typescript optionsJSON: |- { "type": "array", "items": { "type": "string", "enum": [ "ignore-params" ] }, "minLength": 0, "maxLength": 1 } layout: rule title: 'Rule: no-inferrable-types' ---