TristonJ / eslint-plugin-prefer-arrow

ESLint plugin to prefer arrow functions
MIT License
55 stars 10 forks source link

Fix for class methods with reference to `this` #20

Closed rafaelgomesxyz closed 4 years ago

rafaelgomesxyz commented 4 years ago

Fixes #19

It appears that ever since #4 was merged, the plugin no longer shows errors for class methods with reference to this when "classPropertiesAllowed" is set to true, because it only checks if a function has reference to this, and not if the function is also a class method. This PR fixes that.

TristonJ commented 4 years ago

Awesome, thank you for the pull request!