prettier / prettier

Prettier is an opinionated code formatter.
https://prettier.io
MIT License
49.42k stars 4.36k forks source link

Allow braces after new #12950

Closed kokhoor closed 2 years ago

kokhoor commented 2 years ago

What rule that I should overwrite if I would like to allow braces after a new constructor (as that is what embedded javascript in java uses to override methods of the constructed objects

var appFolders = folder.list(new java.io.FilenameFilter() {

Currently, the error is: SyntaxError: Unexpected token, expected "," (

Thanks.

fisker commented 2 years ago

There is no "rule" in Prettier.

kokhoor commented 2 years ago

In this case, for the unexpected error that appears, which module or project I should look at to fix this?

Thanks.

github-actions[bot] commented 2 years ago

:wave: @kokhoor, we use the issue tracker exclusively for development purposes. For questions, please use Stack Overflow.