oakmac / oakmac/standard-clojure-style-js

format function should add a single newline to the end of a file

Open
#154 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

v1 blocker
Dominant language
JavaScript
Stars
137
Forks
8
PR merge metrics
No merged PRs in 30d

Description

This is currently being done in ./cli.mjs. We should do this in the format() function in the core library.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in ./cli.mjs to understand the current trailing-newline behavior, then locate the core library's format() function. Move the responsibility there and verify that formatted output ends with exactly one newline, including when the input already has trailing newlines.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.