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

Rule: Enforce placement of input/output decorators #14

Open
3 tasks
benjamincharity opened this issue May 13, 2019 · 0 comments
Open
3 tasks

Rule: Enforce placement of input/output decorators #14

benjamincharity opened this issue May 13, 2019 · 0 comments
Labels
Focus: rule An item concerning existing or new rules Type: feature

Comments

@benjamincharity
Copy link
Contributor

We should enforce consistent placement for the @Input & @Output decorators.


Example:

// When configuration dictates 'above'
// bad:
@Input public foo: string;

// good:
@Input
public foo: string;

///////////////////////////////

// When configuration dictates 'inline'
// bad:
@Input
public foo: string;

// good:
@Input public foo: string;


  • Create rule
    • Should allow configuration to set the decorator above the line or at the front of the line.
  • Make the rule fixable
  • Add rule to our ruleset for spec files
@benjamincharity benjamincharity added Type: feature Focus: rule An item concerning existing or new rules labels May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus: rule An item concerning existing or new rules Type: feature
Projects
None yet
Development

No branches or pull requests

1 participant