roblox-ts / eslint-plugin-roblox-ts

7 stars 6 forks source link

Support ESLint flat config #43

Closed christopher-buss closed 9 months ago

christopher-buss commented 9 months ago

Adds support for the new ESLint flat configs that will become standard by ESLint 9.0.0.

This also upgrades some old dependencies @typescript-eslint/experimental-utils to @typescript-eslint/utils.

This plugin also includes a bundler (rollup) as dynamic imports are not allowed by ESM. If there is a better way to support this, I am open for suggestions!

christopher-buss commented 9 months ago

This is not actually needed to support flat config files as they can set sourceType to script - the default just assumes you are using a module. Something like this may be required in the future to bump the @typescript-eslint/experimental-utils package up to @typescript-eslint/utils as the old package will no longer be supported. I will close this for now as it is unrelated to the PR title.