oakmac / standard-clojure-style-js

Standard Clojure Style in JavaScript
ISC License
84 stars 1 forks source link

Anonymous functions using #() are indented one space too little #108

Closed axelarge closed 1 month ago

axelarge commented 1 month ago

Maybe this intended behavior and part of a rule that I've missed, but I would expect the body of anon functions using reader syntax to be indented relative to the opening parenthesis, not the #.

That is, I would expect these to be formatted like

(when :foo
  :bar)

#(when :foo
   :bar)

but instead the result is:

(when :foo
  :bar)

#(when :foo
  :bar)

CleanShot 2024-10-09 at 12 26 48@2x

oakmac commented 1 month ago

Fixed with PR-116