safeContextKeyword

Option to check var that = this expressions

Types: String, Array

Values:

  • String: represents the keyword that can assigned to this context
  • Array: represents the list of keywords that can assigned to this context

Example

"safeContextKeyword": ["that"]
Valid for mode ["that"]
var that = this;
Invalid for mode ["that"]
var _this = this;
Rule source
Test source