简体   繁体   中英

Prettier: add space between function parenthesis and parameters

I would like to make code like this:

const someFunc = (param1, param2) => {}

look like this:

const someFunc = ( param1, param2 ) => {}

Where can I find the given setting for this?

there is an issue regarding this in the prettier repo: https://github.com/prettier/prettier/issues/1303 .

Prettier decided not to support this: https://github.com/prettier/prettier/issues/1303#issuecomment-302975431

However, there are some people explaining ways how to achieve it anyway: https://github.com/prettier/prettier/issues/1303#issuecomment-318203273

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM