I am working in a team and none are using Vim. Most are use VS Code, and things are working fine for them.

However, I have this problem:

ticket.additionalNocs.forEach((additionalNoc) => nocs.push(additionalNoc));

If I remove the parens around (additionalNoc) , then run :Prettier, the parens get added back!

Our project has a .prettierrc.js and a .eslintrc.js. For everyone else in the team, the parens do not get added back. There should be no parens, yet for me, Prettier re-adds them.

I did CocInstall coc-prettier coc-eslint.

What am I missing? I do not want to mess with the config files, or add anything in the package.json file for the project, since like I said, I'm the only one facing this issue.

  • Sorry @D.BenKnoble, image removed.
    – J86
    Jun 30 '21 at 14:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.