arrow_spacing should allow you to force 0 spaces on each side
Opened this issue · 1 comments
joncodo commented
Proposed coffeelint config setting
"arrow_spacing": {
"level": "error",
"spacing": {
"left": 0,
"right": 0
}
},
Good:
foo =()->
Bad
foo = () ->
foo = ()->
I will make a pull request for this. I will use it in my project but are you interested in having that in this? Should I make a pr?
swang commented
Sorry for the late reply. If you're still interested in doing this I would accept a PR for this, however the default would have to remain the same, which means maybe adding a parameter (that defaults to true) that ignores spacing if there is no parameters in the function call. Maybe called, ignoreIfNoParams
or ignoreifEmptyParams