Meteor with rspack and eslint

I am installing the latest Meteor version with rspack for the first time. rspack requires TypeScript 7, but TypeScript ESLint is not ready for this yet. Is there a workaround for this?

I also tried to install typescript/native-preview instead, as recommended in the command line, but this caused the Meteor server to shutdown and restart constantly.

There is a hack proposed in the TypeScript ESLint issues and on Microsoft’s website, which basically runs TypeScript 6 and 7 side-by-side. But this does not work with the rspack setup, because both ESLint and rspack expect the “typescript” package to point to the correct version. If rspack detects that this is v7, it takes it instead of @typescript/native. But this breaks eslint and vice versa.

My Meteor 3.5.2 apps use typescript@5.9.3 with rspack@2.2.0. I’m not using eslint though…