Skip to content

How to change prettier format? #1574

@zhaoyi0113

Description

@zhaoyi0113

I have below code need to prettier:

db.getSiblingDB("test").msg.find({$or: [
{ filename: "1046." }
,
{ "headers.From": "*com" }
]}).sort(
{"headers.To":1}
).limit(10)

the formatted result is shown as below:

db
  .getSiblingDB("test")
  .msg.find({
    $or: [{ filename: "1046." }, { "headers.From": "*com" }]
  })
  .sort({ "headers.To": 1 })
  .limit(10);

what I want is put the dot . at the end of each line as below:

db.
   getSiblingDB("test").
   msg.find({
     $or: [{ filename: "1046." }, { "headers.From": "*com" }]
   }).
   sort({ "headers.To": 1 }).
   limit(10);

I am not sure whether prettier support making such change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be taken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions