Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel 7 upgrade #84

Open
pinturic opened this issue Jan 14, 2021 · 1 comment
Open

Babel 7 upgrade #84

pinturic opened this issue Jan 14, 2021 · 1 comment

Comments

@pinturic
Copy link

After upgrading to babel 7 (and other related packages as a consequence) I am experiencing problems with the extension;
when saving the code that automatically fixes the lint errors is not working and generating an error.

Screenshot 2021-01-14 at 17 43 20

Does anyone have any solution/workaround for it?

@damienfa
Copy link

I've tried both solutions proposed in the errormessage and it works :

  1. in my .eslint.yml file , I added :
parserOptions:
    requireConfigFile: false
  1. Or, I add a .babelrc file at the root of my files, with a default content :

{
  "presets": ["@babel/preset-env"]
}

It solves my eslint formatter and it "fixes" again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants