feat: Add shell formatters
This commit is contained in:
parent
fed5136bc7
commit
dba8847475
2 changed files with 13 additions and 0 deletions
|
@ -135,6 +135,7 @@
|
|||
rubyPackages.erb-formatter
|
||||
ruff
|
||||
shellcheck
|
||||
shfmt
|
||||
sqlfluff
|
||||
stdenv.cc.cc
|
||||
stylelint
|
||||
|
|
|
@ -9,6 +9,18 @@ return {
|
|||
liquid = { 'prettier' },
|
||||
nix = { 'alejandra' },
|
||||
scss = { 'stylelint' },
|
||||
sh = { 'shellcheck', 'shfmt' },
|
||||
},
|
||||
|
||||
formatters = {
|
||||
shfmt = {
|
||||
prepend_args = {
|
||||
'--indent=2',
|
||||
'--case-indent',
|
||||
'--binary-next-line',
|
||||
'--func-next-line',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue