parinfer / parinfer.js

Let's simplify the way we write Lisp
https://shaunlebron.github.io/parinfer
MIT License
1.75k stars 40 forks source link

Publish a formatter to allow using Parinfer on teams #132

Closed shaunlebron closed 7 years ago

shaunlebron commented 7 years ago

Using Parinfer on a team is difficult because it can result in large formatting diffs.

We can solve this for teams by creating a formatting tool to standardize 1) close-paren positions and 2) indentation thresholds before each commit. This is what Paren Mode does, which I think is an easier sell rather than running a full formatter like cljfmt or zprint.

The tool could be integrated into CI like a linter, to ensure the formatting rules are followed on the project, allowing Parinfer-crafted commits to not result in large formatting diffs.

original discussion: https://github.com/oakmac/atom-parinfer/issues/77

oakmac commented 7 years ago

This does not need to be a large project IMO. Could just be a small node.js script that uses glob with some smart command-line option flags.

shaunlebron commented 7 years ago

Yeah, I'll by copying the cli options from prettier

shaunlebron commented 7 years ago

going to put it in the lib/bin folder, with a README that describes its usage.

oakmac commented 7 years ago

This should be it's own project.

shaunlebron commented 7 years ago

published: https://github.com/shaunlebron/parlinter