ESLint-Formatter icon indicating copy to clipboard operation
ESLint-Formatter copied to clipboard

Babel 7 upgrade

Open pinturic opened this issue 4 years ago • 1 comments

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?

pinturic avatar Jan 14 '21 16:01 pinturic

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

damienfa avatar Feb 15 '22 01:02 damienfa