Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESLint Rule: Separate readonly constructor parameters on lines #2

Open
paul-go opened this issue Apr 9, 2019 · 0 comments
Open

ESLint Rule: Separate readonly constructor parameters on lines #2

paul-go opened this issue Apr 9, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@paul-go
Copy link
Collaborator

paul-go commented Apr 9, 2019

If a constructor has at least one readonly parameter, all of the constructors parameters should be separated between lines. For example:

class MyClass
{
  constructor(
    readonly x: number,
    readonly y: number)
  { }
}
@paul-go paul-go added the enhancement New feature or request label Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant