solidjs-community / eslint-plugin-solid

Solid-specific linting rules for ESLint.
MIT License
206 stars 24 forks source link

ESLint v9 backwards-compatible support #140

Closed joshwilsonvu closed 2 months ago

joshwilsonvu commented 2 months ago

As far as I can tell from all of test tests, this PR brings eslint-plugin-solid up to speed with the breaking changes in ESLint v9, while retaining backwards compatibility with ESLint down to at least v6.

The backwards compatibility was for the most part, building helper functions in compat.ts to bridge the gaps between different versions of the context object. Setting up tests that covered both legacy and flat config and dealt with type issues was harder.

Major changes: