[英]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
的回购中有一个关于此的问题: https://github.com/prettier/prettier/issues/1303 。
Prettier decided not to support this: https://github.com/prettier/prettier/issues/1303#issuecomment-302975431 Prettier 决定不支持这个: 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但是,有些人解释了如何实现它的方法: https://github.com/prettier/prettier/issues/1303#issuecomment-318203273
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.