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

Added `allowNamedFunctions` option #19

Closed marekdedic closed 8 months ago

marekdedic commented 1 year ago

Description (What)

This PR adds the option to allow (i.e. ignore) all functions that are named and report just anonymous functions

Justification (Why)

This is an option that I would like to have and it is present in the ts-lint version.

How Can This Be Tested?

I've added tests.

Closes #18

marekdedic commented 1 year ago

Gentle reminder :)

JamieMason commented 1 year ago

thanks! I totally forgot 😄 I'm doing a lot of work on another project at the moment but will pick this up soon.

Ranguna commented 8 months ago

Hello hello!

Just another reminder @JamieMason :)

JamieMason commented 8 months ago

Sorry all, absolute nightmare. Thanks for being the absolute GOAT of patiently waiting @marekdedic 😂 Finally released this just now.

marekdedic commented 8 months ago

🎉🎉🎉

Thanks for the merge, looking forward to finally using this rule for a lot of repos :D

And don't worry about the delay, I also maintain a few opensource projects, so I know it's not always easy ;)