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,15 +122,23 @@ in
|
||||||
# echo "Hello, ${config.home.username}!"
|
# echo "Hello, ${config.home.username}!"
|
||||||
# '')
|
# '')
|
||||||
(pkgs.writeShellScriptBin "__eslint_default_config" ''
|
(pkgs.writeShellScriptBin "__eslint_default_config" ''
|
||||||
|
if [[ -e ./.eslintrc.json ]]; then
|
||||||
if [[ -e ./.eslintrc.json ]]; then
|
eslint_d $@
|
||||||
eslint_d $@
|
exit $?
|
||||||
exit $?
|
else
|
||||||
else
|
eslint_d --config /home/${config.home.username}/.config/.eslintrc.json $@
|
||||||
eslint_d --config /home/${config.home.username}/.config/.eslintrc.json $@
|
exit $?
|
||||||
exit $?
|
fi
|
||||||
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
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
|
@ -142,8 +150,8 @@ in
|
||||||
target = "./.config/kitty";
|
target = "./.config/kitty";
|
||||||
};
|
};
|
||||||
eslint_d_config = {
|
eslint_d_config = {
|
||||||
source = ../../dotfiles/eslintrc.json;
|
source = ../../dotfiles/eslintrc.json;
|
||||||
target = "./.config/.eslintrc.json";
|
target = "./.config/.eslintrc.json";
|
||||||
};
|
};
|
||||||
gh = {
|
gh = {
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
Loading…
Reference in a new issue