I just set-up a new Meteor project using meteor create using the typescript setup and wanted to add the current eslint to it. I’d also like to use it for auto-formatting in WebStorm.
However, the docs in the Meteor guide are a bit outdated, they only describe how to include the @meteorjs/eslint-config-meteor which hasn’t been updated for a while.
What is the best way to get a working eslint 9 configuration that supports Meteor, Mocha, TypeScript, and React?
I also tried to setup this old file using the old eslint to auto-format TypeScript files. But this also failed. I ran into a “missing module eslint/use-at-your-own-risk” error. Seems as something is not compatible.
But as stated above, I do not actually care about eslint 9 vs. 8. All I need is a working eslint setup that supports Meteor 3 and auto-format on save for TypeScript in WebStorm.
Also, keywords like as are flagged as an error. So there seems to be something wrong with the TypeScript setup (I’m just using the bare-bone Meteor scaffold right now).
Thanks. I now got it working with eslint 8. It’s really crazy how long these configs take to adapt
The only thing I did not get working is the resolver for module names like meteor/meteor. Seems as if the Meteor module resolver is not compatible with the TypeScript parser.