diff --git a/.dir-locals.el b/.dir-locals.el index 19ffc125aaf..ec819decb60 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -5,6 +5,5 @@ (mode . ruff-format-on-save)) (sh-mode (mode . shfmt-on-save) - (shfmt-arguments "-s") (flycheck-sh-bash-args "-O" "extglob") (sh-indent-comment . t))) diff --git a/.editorconfig b/.editorconfig index 89fd9136286..dfd0a99d73d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,6 +9,7 @@ insert_final_newline = true max_line_length = 79 # for shfmt function_next_line = true +simplify = true switch_case_indent = true [Makefile.am] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2fb939c1911..7509536c57e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: gitlint - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.11.0-1 + rev: v3.12.0-2 hooks: - id: shfmt types: [text]