roblox-ts / eslint-plugin-roblox-ts

7 stars 6 forks source link

Support ESLint 9.0.0 #45

Open christopher-buss opened 4 months ago

christopher-buss commented 4 months ago

Currently type rules cannot be used with the new eslint version as parserServices have changed, and parserServices no longer exist on the context, but instead in a new property context.sourceCode.

I have tested this with an old PR I made here (https://github.com/roblox-ts/eslint-plugin-roblox-ts/pull/43) and this seems to work locally, but I ended up including a bundler that at the time I believed I needed to get the patch working. I haven't revisited it to see if there was a better solution (the dependencies here will be outdated anyway).

christopher-buss commented 4 months ago

This is the relevant changes required: https://typescript-eslint.io/blog/announcing-typescript-eslint-v7/

This is supported in #46