• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


30 Nov, 2024

Updated at 02 Dec, 2024

Link Babel ESLint Parser to Meteor's Babel settings

I’m updating ESLint in my project, and I’m using @babel/eslint-parser. This parser requires access to Babel’s configuration files.

What I want to do is link the parser to the Babel settings that Meteor uses in the background to compile the code. However, I was unable to find anything to help me figure out how to do this.

It is possible to disable the requirement for a config file with requireConfigFile: false, but the linting of some files break with this. For example, I’m unable to lint .jsx files.

As of right now, my solution was to define babelOptions in the ESLint configs to mimic some Babel settings, but this requires manual setup and is prone to errors. If I could just link to Meteor’s Babel settings file things could work automatically.

Any help with this would be highly appreciated. Thanks!

4 posts - 4 participants

Read full topic