Microsoft/TypeScript

Formatter should convert object literal to multiple lines / one line

Open

#25,771 创建于 2018年7月18日

在 GitHub 查看
 (4 评论) (1 反应) (0 负责人)TypeScript (6,726 fork)batch import
Domain: FormatterHelp WantedSuggestion

仓库指标

Star
 (48,455 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 9 个 PR)

描述

TypeScript Version: 3.1.0-dev.20180717

Code

const o = { a: 0, b: 1, c: 2 };

Expected behavior:

A refactor exists to convert to:

const o = {
    a: 0,
    b: 1,
    c: 2,
};

and back.

Actual behavior:

No such refactor. I have to do a lot of manual editing of whitespace.

贡献者指南