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

arrow_spacing should allow you to force 0 spaces on each side #628

Open
joncodo opened this issue Dec 9, 2017 · 1 comment
Open

arrow_spacing should allow you to force 0 spaces on each side #628

joncodo opened this issue Dec 9, 2017 · 1 comment

Comments

@joncodo
Copy link

joncodo commented Dec 9, 2017

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
Copy link
Collaborator

swang commented Feb 16, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants