Skip to content

Design Meeting Notes, 8/11/2023 #55377

Closed
Closed
@DanielRosenwasser

Description

@DanielRosenwasser

Formatting TypeScript

#54820

  • dprint - extremely fast, used by Deno itself.
  • Can easily support format-on-save in the checker instantaneously.
  • Looking at formatting DefinitelyTyped with a different config.
  • What's the workflow?
    • Recommend installing dprint formatting extension.
    • npm run format
    • CI checks ensure that.
  • Prettier is a lot more prescriptive. dprint is closer to gofmt or to some extent the TypeScript formatter, keeps general intent.
    • Our lines length is set to 1000 (!)
    • Some prescritive views on when to swap to multiline.
    • Still knobs if you need.
  • Some stuff that's not yet supported:
    • Single imports on the same line.
    • Space-aligned comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Design NotesNotes from our design meetings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions