Skip to content

Consider new rules => no new properties outside of constructor #13

@Raynos

Description

@Raynos

Currently in TypeScript assinging new fields with this.foo = 'bar' outside of the constructor is a static error.

In JavaScript with // @check-ts that is not the case.

We would need to implement a rule that looks at all methods and checks their field usage compared to the constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions