Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Rules constructor-super and no-this-before-super are applying for non derived class #39

Closed
@unlight

Description

@unlight
  14:5  error  Expected to call 'super()'              constructor-super
  15:9  error  'this' is not allowed before 'super()'  no-this-before-super
export class MockRouteSegment implements RouteSegment {
    urlSegments: any;
    parameters: any;
    outlet: string;
    _type: any;
    _componentFactory: any;
    type: any;
    stringifiedUrlSegments: string;

    constructor(parameters?: { [key: string]: any; }) { // L:14
        this.parameters = parameters; // L:15
    }

    getParam(param: string) {
        return this.parameters[param];
    }
}

MockRouteSegment is not derived class.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions