feat!: update to eslint v9, flat config only #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please describe the changes this PR makes and why it should be merged:
This updates this repo to ESLint v9 and drops support for the legacy config style, only including the
flat
config style which is now the only supported config style for ESLint. This PR should be considered a breaking change! (v1.0.0 or v0.2.0, whichever you prefer)Some of the plugins that this config requires are not yet updated for ESLint v9, the list can be tracked here: eslint/eslint#18093. I also marked some of them in the code with
TODO [V9 UPDATE]
. I aimed to ensure that at least the source code of this config itself can be linted with the current dependency versions.Regarding the swap from
eslint-plugin-i
toeslint-plugin-import-x
see: un-ts/eslint-plugin-import-x#29 (comment)I also dropped all the
js
files in the root in favour of Node export mapping because ESLint now has a minimum Node version of18.18.0
so we can safely use export mapping and declutter the repository a LOT.Lastly I also removed all the
husky
,is-ci
andpinst
dependencies because nohusky
scripts were set up, so it was just unnecessary bloat.Breaking change blurb for when doing a squash-and-merge: