Home javascript Prettier and switch functions js

Prettier and switch functions js




There is, for example, a function:

const fn = par = & gt; par;

After formatting Prettier`, it adds optional round brackets to the parameter how to fix it?

const fn = (par) = & gt; par;

Answer 1, Authority 100%


"prettier.arrowparens": "Avoid",

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions