Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactoring for listing parameters from single line to column and back #30566

Open
zpdDG4gta8XKpMCd opened this issue Mar 24, 2019 · 1 comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@zpdDG4gta8XKpMCd
Copy link

zpdDG4gta8XKpMCd commented Mar 24, 2019

parameters

// before
function fn(a: A, b: B, c: C) { /*..*/ }

// after
function fn(
    a: A,
    b: B,
    c: C
) { /*..*/ }

// and back
function fn(a: A, b: B, c: C) { /*..*/ }

arguments

// before
return foldArray(toReversed(values), toListOf<T>(), (result, value) => add(result, value));

// after
return foldArray(
    toReversed(values),
    toListOf<T>(),
    (result, value) => add(result, value)
);
@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature labels Mar 25, 2019
@Kingwl
Copy link
Contributor

Kingwl commented Mar 27, 2019

Do it in lint tools is looks better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants