Generate Setters: setVal() instead of set val

I want to follow AirBnB Style: https://airbnb.io/javascript/#accessors--no-getters-setters

 

How can I generate setVal accessors? I always get the set val methods.

 

// bad
class Dragon {
  get age() {
    // ...
  }

  set age(value) {
    // ...
  }
}

// good
class Dragon {
  getAge() {
    // ...
  }

  setAge(value) {
    // ...
  }
}

 

 

0
1 comment

This can't be configured, please vote for https://youtrack.jetbrains.com/issue/WEB-37673 to be notified on any progress with this feature request

1

Please sign in to leave a comment.