Introducing Standard Clojure Style: no fuss code formatting
summary
A single-file zero-dependency JavaScript formatter implements a fixed-indentation algorithm with a special rule three alignment exception, pretty-prints and sorts namespace requires, and preserves vertical alignment and trailing parens unless explicitly pinned. The tool formats large codebases — ran on Metabase ~700 files ~100k lines — in under two seconds, builds to a cross-platform binary via Bun, and is designed to be portable to other languages and editors.
AI-written summary · about
chapters (7)
- 0:00Standard Clojure Style origin
- 1:47Style vs linters
- 2:49Formatting whitespace and indentation
- 4:11Fixed indentation and Rule Three
- 7:25Consistent namespace formatting
- 9:08Portability and future plans
- 10:13Demo and closing
related talks
56mBuilding My Own Clojure Tools
41mFormat Your Elixir Code Now
40mProgramming Clojure, Smalltalk-Style
31mMake your own code formatter in Swift
27mBuilding functional Front-ends with ClojureScript
25mWrite Perfect Code with Standard and ESLint
31mCode Style and Violence
17mAir - A blazingly fast R code formatter
