eslint-plugin-prefer-arrow-functions icon indicating copy to clipboard operation
eslint-plugin-prefer-arrow-functions copied to clipboard

Feature Request: `classPropertiesAllowed` should work for every method in a class

Open ylc395 opened this issue 1 year ago • 3 comments

Description

According to the document, classPropertiesAllowed is for methods that "when doing so would not alter or break their behaviour". So a method like:

class A {
  method() {
    this;
  }
}

won't be converted to arrow function, which is not so helpful.

Suggested Solution

Add a option to convert methods like this.

ylc395 avatar Jul 10 '24 13:07 ylc395