Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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