ilyavolodin / eslint-plugin-backbone

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

Support event map syntax in the event-scope rule #54

Closed jbeezley closed 8 years ago

jbeezley commented 8 years ago

Backbone supports event binding using a map syntax. This change provides support for that syntax. The result of this rule should be identical when the first argument is not an object literal. For simplicity, I didn't consider ambiguous cases such as when the first argument is an identifier, which satisfies my current need. I can make the rule more sophisticated if desired.

ilyavolodin commented 8 years ago

Nice. Thanks. I forgot about passing object literals. Haven't used that syntax all that often.