ilyavolodin / eslint-plugin-backbone

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

Support ES6 class syntax #68

Closed seantomburke closed 7 years ago

seantomburke commented 7 years ago

Support the new ES6 syntax for classes which would look like the following:

class BaseModel extends Backbone.Model {

  get defaults() {
    return {};
  }

  initialize() {
    ...
  }

}
seantomburke commented 7 years ago

Actually after looking at this thread: https://github.com/jashkenas/backbone/issues/3560 it's probably not worth it until a standard is created for ES6 Classes and Backbone