Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Arrow function custom rules #20

Closed
cjihrig opened this issue Oct 30, 2015 · 2 comments
Closed

Arrow function custom rules #20

cjihrig opened this issue Oct 30, 2015 · 2 comments
Assignees
Labels
feature New functionality or improvement
Milestone

Comments

@cjihrig
Copy link
Contributor

cjihrig commented Oct 30, 2015

See outmoded/hapi-contrib#58 (comment)

  • enforce arguments parentheses (done)
  • parentheses around object creation allowed ((foo) => ({ bar: foo })) including line breaks in the {} (nothing needed, the language takes care of this)
  • no function creation with implicit return (() => () => 42) (need a rule for this)
  • allow single statements on single line to use implicit return without {} (update to hapi-scope-start@2.1.0)

UPDATE: Just need a new rule for no function creation with implicit return.
UPDATE: no-arrowception rule created to detect implicitly created arrow functions.

@cjihrig cjihrig added the feature New functionality or improvement label Oct 30, 2015
@cjihrig cjihrig added this to the 5.0.0 milestone Oct 30, 2015
@cjihrig cjihrig self-assigned this Oct 30, 2015
@cjihrig
Copy link
Contributor Author

cjihrig commented Oct 30, 2015

This has all been done. See #19 now.

@cjihrig cjihrig closed this as completed Oct 30, 2015
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

1 participant