I was looking at the coffeelint configuration file in Hound and had some questions about best practices, as I’m unsure of what to do in certain situations:
Class declarations that go beyond 80 characters: is there a way to break the
class ThisIsMyClassWithALongName extends ThisisABaseClassThatAlsoHasALongNameclass declaration statement into two lines? Inserting a line break before or after the
extendsseems to produce problems.
Chaining methods: several Coffeescript style guides discourage the use of
@alone when it’s not attached to a method or property (such as like
@_format). When building a set of chainable methods, is the preferred alternative to return
thisinstead of ‘@’ at the end of the method?