Bug: flat config incorrectly places sourceType
#8518
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: typescript-eslint
Issues related to the typescript-eslint package
Before You File a Bug Report Please Confirm You Have Done The Following...
Relevant Package
typescript-eslint
Playground Link
No response
Repro Code
Migrating from legacy to flat config started crashing ESLint on our large repository with OOM. Note that this is not related to upgrading to v7 of the package, which works fine.
I've compared final config from
typescript-eslint
with the regular config (converted to flat viaFlatCompat
) from@typescript-eslint/eslint-plugin
, and the only difference is in the placement ofsourceType
inside the config.ESLint Config
tsconfig
No response
Expected Result
Part of the final ESLint config:
Actual Result
Additional Info
sourceType
should be nested directly underlanguageOptions
unlesstypescript-eslint
has another option with the same name.Versions
@typescript-eslint/eslint-plugin
7.0.2
@typescript-eslint/parser
7.0.2
typescript-eslint
7.0.2
The text was updated successfully, but these errors were encountered: