TristonJ / eslint-plugin-prefer-arrow

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

Allow functions with reference to 'this' #4

Closed mikeapr4 closed 6 years ago

mikeapr4 commented 6 years ago

Great plugin :+1: - the extra functionality I need is where the function in question uses this, they cannot be easily converted to arrows and should be ignored by this rule.

If you'd prefer I set it up as a config prop, just say so and I will, but I think there aren't cases where anyone would want to disable it I think.

I've included a test too.