mirror of
https://github.com/sadan4/dotfiles.git
synced 2024-11-16 23:04:39 -05:00
119 current 2024-05-10 23:44:23 24.05.20240419.5c24cf2 6.6.28 *
This commit is contained in:
parent
f531235399
commit
1fde33c6f6
1 changed files with 19 additions and 11 deletions
|
@ -122,7 +122,6 @@ in
|
|||
# echo "Hello, ${config.home.username}!"
|
||||
# '')
|
||||
(pkgs.writeShellScriptBin "__eslint_default_config" ''
|
||||
|
||||
if [[ -e ./.eslintrc.json ]]; then
|
||||
eslint_d $@
|
||||
exit $?
|
||||
|
@ -130,7 +129,16 @@ in
|
|||
eslint_d --config /home/${config.home.username}/.config/.eslintrc.json $@
|
||||
exit $?
|
||||
fi
|
||||
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "install_eslint" ''
|
||||
pkgs=("@stylistic/eslint-plugin" "@typescript-eslint/eslint-plugin")
|
||||
if [[ -z $1 ]]; then
|
||||
echo please specify npm, pnpm, or yarn
|
||||
exit 1
|
||||
fi
|
||||
for i in "''${pkgs[@]}"; do
|
||||
`$1 i $i`
|
||||
done
|
||||
'')
|
||||
];
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
|
|
Loading…
Reference in a new issue