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
|
rubyPackages.erb-formatter
|
||||||
ruff
|
ruff
|
||||||
shellcheck
|
shellcheck
|
||||||
|
shfmt
|
||||||
sqlfluff
|
sqlfluff
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
stylelint
|
stylelint
|
||||||
|
|
|
@ -9,6 +9,18 @@ return {
|
||||||
liquid = { 'prettier' },
|
liquid = { 'prettier' },
|
||||||
nix = { 'alejandra' },
|
nix = { 'alejandra' },
|
||||||
scss = { 'stylelint' },
|
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