Skip to content

Core should bundle a code formatter for contributors. #39794

@bmeck

Description

@bmeck

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

When writing PRs to Node core I spend too much time dealing with code formatting. There should be some command that I can run that automatically formats code so I can get features done rather than spending sometimes an hour or more fiddling with whitespace rules and line lengths to make the linter happy.

Describe the solution you'd like
Please describe the desired behavior.

I should be able to run some command such as make fmt that automatically deals w/ line lengths, whitespace, etc. so I don't hear about it from these stylistic choices from the linter when I run make lint.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

Continuing to just bear this linter anger in my PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lib / srcIssues and PRs related to general changes in the lib or src directory.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions