ilyavolodin / eslint-plugin-backbone

Backbone specific linting rules for ESLint
MIT License
95 stars 11 forks source link

Rule suggestion : events hash on top #36

Closed ptitgraig closed 9 years ago

ptitgraig commented 9 years ago

Hello. This issue should be tagged as question. What do you think a a rule that would check if the events hash is on top a a view ?

Events hash on top a a view improve code readability since the reader quickly know what are the possible interactions.

Thanks.

ilyavolodin commented 9 years ago

Do you mean this rule?: https://github.com/ilyavolodin/eslint-plugin-backbone/blob/master/docs/rules/events-on-top.md

ptitgraig commented 9 years ago

Yes, that's exactly that. Sorry for missing it.

ilyavolodin commented 9 years ago

No problem.