clutchski / coffeelint

Lint your CoffeeScript.
http://www.coffeelint.org
Other
1.18k stars 171 forks source link

Allow minimum spacing for colon_assignment_spacing #593

Open ghost opened 7 years ago

ghost commented 7 years ago

Aligning code can be very nice. So, it's a bummer that coffeelint doesn't allow to specify a minimum spacing (in contrast to exact specification) for the colon_assignment_spacing rule.

What do you think? How could this be implemented? What about something like this?:

    "colon_assignment_spacing ": {
        "name": "colon_assignment_spacing",
        "level": "ignore",
        "spacing": {
            "left": 0,
            "min_right": 1
        }
    },