Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 779 Bytes

no-this-expressions.md

File metadata and controls

33 lines (21 loc) · 779 Bytes

Disallow this access (functional/no-this-expressions)

💼🚫 This rule is enabled in the following configs: noOtherParadigms, 🔒 strict. This rule is disabled in the following configs: ☑️ lite, ✅ recommended.

Rule Details

This rule is a companion rule to the no-classes rule. See the its docs for more info.

❌ Incorrect

/* eslint functional/no-this-expressions: "error" */

const foo = this.value + 17;

✅ Correct

/* eslint functional/no-this-expressions: "error" */

const foo = object.value + 17;