Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 443 Bytes

super-args.md

File metadata and controls

38 lines (30 loc) · 443 Bytes

Check calls of _super

Rule name: super-args

Check potential invalid calls _super without ...

Usage

{
  "plugins": [
    "ember-cleanup"
  ],
  "rules": {
    "ember-cleanup/super-args": 2
  }
}

Valid

SomeClass.extend({
  method() {
    return this._super(...arguments);
  }
});

Invalid

SomeClass.extend({
  method() {
    return this._super(arguments);
  }
});