--- ruleName: no-invalid-this description: Disallows using the `this` keyword outside of classes. rationale: 'See [the rule''s author''s rationale here.](https://github.com/palantir/tslint/pull/1105#issue-147549402)' optionsDescription: |- One argument may be optionally provided: * `check-function-in-method` disallows using the `this` keyword in functions within class methods. options: type: array items: type: string enum: - check-function-in-method minLength: 0 maxLength: 1 optionExamples: - 'true' - '[true, "check-function-in-method"]' type: functionality optionsJSON: |- { "type": "array", "items": { "type": "string", "enum": [ "check-function-in-method" ] }, "minLength": 0, "maxLength": 1 } layout: rule title: 'Rule: no-invalid-this' ---