diff --git a/.editorconfig b/.editorconfig index 87e50155..4d52b509 100755 --- a/.editorconfig +++ b/.editorconfig @@ -1,12 +1,32 @@ # EditorConfig is awesome: http://EditorConfig.org [*] -indent_style = space -indent_size = 2 -end_of_line = lf -charset = utf-8 +indent_style = tab +indent_size = 1 + +shell_variant = bash +binary_next_line = true # like -bn +switch_case_indent = true # like -ci +space_redirects = true # like -sr +keep_padding = true # like -kp +end_of_line = lf +charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.md] trim_trailing_whitespace = false + +[*.*sh] +indent_style = tab +indent_size = 1 + +shell_variant = bash +binary_next_line = true # like -bn +switch_case_indent = true # like -ci +space_redirects = true # like -sr +keep_padding = true # like -kp +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e6302b9e..51e4318d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,10 +18,6 @@ repos: - id: git-check # Configure in .gitattributes - id: shellcheck - id: shfmt - - repo: git://github.com/detailyang/pre-commit-shell - rev: 1.0.5 - hooks: - - id: shell-lint - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.1.7 hooks: