-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Enhancement(utils): Update types ESLint v9 Linter class (flat config) #8968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm, looking at eslint/eslint#17851, I think we get this for free by virtue of our typescript-eslint/packages/utils/src/ts-eslint/Linter.ts Lines 308 to 310 in fa67955
cc @bradzacher - I think we can mark this as already done? |
Specifically it's the types we need to correct here. Make sure that the types accept a flat config. |
Right - and they do, I think? typescript-eslint/packages/utils/src/ts-eslint/Linter.ts Lines 80 to 84 in fa67955
|
https://eslint.org/docs/latest/use/migrate-to-9.0.0#-linter-now-expects-flat-config-format
We don't support that flag in the constructor options I think. We might want to generically parameterise it as well? Maybe? Or maybe we don't care and just the constructor option is fine. |
Yeah I would really like to not have to parameterize it. 😬 Quite a lot of work for very little gain. If someone files an issue I think we can always see if they have a use case that really benefits from it. |
#8999 was merged into |
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Proposal Please Confirm You Have Done The Following...
Relevant Package
utils
My proposal is suitable for this project
Description
Splitting out of #8211 / #8211 (comment):
In summary: we need to update the
TSESLint.Linter
class within@typescript-eslint/utils/ts-eslint
to have the same default behavior as the coreESLint.Linter
class.Additional Info
This isn't a
good first issue
. Someone who's already familiar with the classes & utilities in question should tackle this.💖
The text was updated successfully, but these errors were encountered: