Skip to content

Commit edb09e6

Browse files
committed
chore: move shfmt simplify to .editorconfig
Supported there as of 3.12.0.
1 parent 62db7d7 commit edb09e6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.config/lefthook.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pre-commit:
1212
group:
1313
jobs:
1414
- name: shfmt
15-
run: mise exec -- shfmt --write --simplify {staged_files}
15+
run: mise exec -- shfmt --write {staged_files}
1616
- name: shellcheck
1717
run: mise exec -- shellcheck --format=gcc {staged_files}
1818
- name: tool-made-changes

.dir-locals.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
;;; For more information see (info "(emacs) Directory Variables")
33

44
((sh-mode
5-
(mode . shfmt-on-save)
6-
(shfmt-arguments "-s")))
5+
(mode . shfmt-on-save)))

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ indent_size = 8
1010
indent_style = tab
1111
# shfmt
1212
shell_variant = posix
13+
simplify = true

0 commit comments

Comments
 (0)