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
48 stars 11 forks source link

ESLint 9 support #33

Closed loucyx closed 1 month ago

loucyx commented 5 months ago

Description

Suggested Solution

Follow the following documentation from ESLint: https://eslint.org/docs/latest/use/migrate-to-9.0.0

JamieMason commented 5 months ago

Thanks @loucyx that would be great

aeadedoyin commented 5 months ago

Hi @JamieMason does this mean you are working it now?

JamieMason commented 5 months ago

I think @loucyx has everything they need there – I don't have any projects which have been upgraded to v9 so I haven't experienced that or have a project I'm using to test against, plus they have all the documentation on hand.

loucyx commented 5 months ago

I can try to create a PR here giving your plugin compatibility with ESLint 9, but other than that the consumers of your plugin can't use it in the latest version of ESLint because it uses deprecated APIs.

JamieMason commented 5 months ago

Thanks @loucyx, that's great. So that way anyone on ESLint 9 can use the next version of this plugin with your changes, and anyone still on older versions of ESLint can just stay on the current version of this plugin until they're ready.

loucyx commented 5 months ago

PR open here ☺️

JamieMason commented 5 months ago

Thanks a lot @loucyx πŸŽ‰ I will try to pick this up but it could be a week from now due to my availability.

loucyx commented 5 months ago

@JamieMason of course! Take all the time you need! πŸ˜„

tiavina-mika commented 3 months ago

Is there any news on this?

JamieMason commented 3 months ago

No news just yet, my spare time at the moment is focused on syncpack, once that settles I should have some more time.

nabato commented 2 months ago

Any news?

JamieMason commented 1 month ago

Released in 3.4.0.