dojo / dojo-package-template

Dojo 2 - template to clone for creating packages (internal use)
Other
6 stars 18 forks source link

Adding check for parenthesis around arrow function parameters #91

Closed rorticus closed 7 years ago

rorticus commented 7 years ago

Type: feature

Description:

After a recent comment on not having parenthesis around my single parameter arrow function, I thought maybe we could add this rule.

So instead of someArray.map(a => a * 2) you will need to use someArray.map((a) => a * 2)