JamieMason / eslint-plugin-prefer-arrow-functions

Auto-fix plain Functions into Arrow Functions, in all cases where conversion would result in the same behaviour
https://www.npmjs.com/package/eslint-plugin-prefer-arrow-functions
MIT License
43 stars 11 forks source link

Ignore generator functions #16

Closed queengooborg closed 1 year ago

queengooborg commented 1 year ago

There is no arrow syntax for generator functions, however an error is thrown when a generator function is found. This rule should be ignored on generator functions.

queengooborg commented 1 year ago

Ah wait, my bad -- I thought this was the prefer-arrow plugin rather than a fork of it! This fork is awesome though, especially with the auto-fixes, and we'll be using this fork in our own project from now on!

JamieMason commented 1 year ago

Great, I think/hope I have every case covered but if you do find I've missed anything around generators, let me know 👍🏻