Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 433 Bytes

no-this-in-dep-keys.md

File metadata and controls

32 lines (24 loc) · 433 Bytes

Check CP dependent keys for this.

Rule name: no-this-in-dep-keys

Dependent keys for CP must not contain this.

Usage

{
  "plugins": [
    "ember-cleanup"
  ],
  "rules": {
    "ember-cleanup/no-this-in-dep-keys": 2
  }
}

Valid

Any CP without this. in the any of its dependent keys.

Invalid

Component.extend({
  prop: computed('this.a', function () {
    // ...
  })
});