Open zepumph opened 1 month ago
It isn't clear that this ISN'T supported by typescript eslint 8.10 (which supports typescript 5.6). I think we should upgrade to 8.11 (current as of last week), and see if the behavior of muiltiple eslint.config.mjs files up the hierarchy resolves correctly.
Ok. We were confused. This is a feature of Typescript 5.7. Still on hold until typescript and typescript-eslint supports that.
Over in https://github.com/phetsims/chipper/issues/1451, we ended up hacking around a lack of support in typescript-eslint. We are using the
unstable_config_lookup_from_file
, but typescript-eslint doesn't support it well. Typescript 5.7 will support looking up tsconfig.json tSupport issue: https://github.com/typescript-eslint/typescript-eslint/issues/10115
Once we have good support, we are going to be able to use more than one eslint.config.mjs file per repo. This will greatly reduce the complexity of flag config files in repos that lint browser and node code.
...rootEslintConfig
).