chore: tweak zprint conf (#14645)
This commit is contained in:
parent
aca8c9250f
commit
9ded8bfe97
|
@ -26,9 +26,6 @@
|
||||||
"deftest-sub" :arg1-body
|
"deftest-sub" :arg1-body
|
||||||
"wait-for" :arg1-body
|
"wait-for" :arg1-body
|
||||||
"with-deps-check" :arg1-body
|
"with-deps-check" :arg1-body
|
||||||
"ns" [:arg1-body
|
|
||||||
{:list {:respect-nl? false}
|
|
||||||
:vector {:respect-nl? false}}]
|
|
||||||
"->" [:noarg1-body
|
"->" [:noarg1-body
|
||||||
{:list {:constant-pair? false :force-nl? false}
|
{:list {:constant-pair? false :force-nl? false}
|
||||||
:next-inner-restore [[:list :constant-pair?]]}]
|
:next-inner-restore [[:list :constant-pair?]]}]
|
||||||
|
@ -40,7 +37,6 @@
|
||||||
:remove {:fn-force-nl #{:noarg1-body}}
|
:remove {:fn-force-nl #{:noarg1-body}}
|
||||||
:style-map
|
:style-map
|
||||||
{:no-comma {:map {:comma? false}}
|
{:no-comma {:map {:comma? false}}
|
||||||
:rj-var {:pair {:justify {:max-variance 1000}}}
|
|
||||||
:custom-justify
|
:custom-justify
|
||||||
{:doc "Justify everything using pre-1.1.2 approach"
|
{:doc "Justify everything using pre-1.1.2 approach"
|
||||||
:binding {:justify? true :justify {:max-variance 1000}}
|
:binding {:justify? true :justify {:max-variance 1000}}
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -294,10 +294,9 @@ lint: ##@test Run code style checks
|
||||||
|
|
||||||
lint-fix: export TARGET := default
|
lint-fix: export TARGET := default
|
||||||
lint-fix: ##@test Run code style checks and fix issues
|
lint-fix: ##@test Run code style checks and fix issues
|
||||||
TARGETS=$$(git diff --diff-filter=d --cached --name-only | grep -e \.clj$$ -e \.cljs$$ -e \.cljc$$ -e \.edn$$ || echo shadow-cljs.edn) && \
|
ALL_CLOJURE_FILE=$$(git ls-files | grep -e \.clj$$ -e \.cljs$$ -e \.cljc$$ -e \.edn$$) && \
|
||||||
clojure-lsp clean-ns --filenames $$(echo $$TARGETS | xargs | sed -e 's/ /,/g') && \
|
zprint '{:search-config? true}' -sw $$ALL_CLOJURE_FILE && \
|
||||||
zprint '{:search-config? true}' -fw $$TARGETS && \
|
zprint '{:search-config? true}' -sw $$ALL_CLOJURE_FILE
|
||||||
zprint '{:search-config? true}' -fw $$TARGETS
|
|
||||||
|
|
||||||
|
|
||||||
shadow-server: export TARGET := clojure
|
shadow-server: export TARGET := clojure
|
||||||
|
|
|
@ -18,7 +18,7 @@ in mkShell {
|
||||||
# build specific utilities
|
# build specific utilities
|
||||||
clojure maven watchman
|
clojure maven watchman
|
||||||
# lint specific utilities
|
# lint specific utilities
|
||||||
clj-kondo zprint clojure-lsp
|
clj-kondo zprint
|
||||||
# other nice to have stuff
|
# other nice to have stuff
|
||||||
yarn nodejs python27
|
yarn nodejs python27
|
||||||
] # and some special cases
|
] # and some special cases
|
||||||
|
|
Loading…
Reference in New Issue