From f3dff521f7e3bf6f5567398340aca3a56681ce69 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 15 May 2023 19:25:13 +0300 Subject: [PATCH] Feat(npm): Removed prettier from global install prettier was being detected by nvim and run with default configuration in projects that it shouldn't have run in. Because of that the package should be installed only project by project basis. --- config/nvm/default-packages | 1 - scripts/install-npm-packages.sh | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/config/nvm/default-packages b/config/nvm/default-packages index 907e7a2..af49374 100644 --- a/config/nvm/default-packages +++ b/config/nvm/default-packages @@ -3,7 +3,6 @@ corepack editorconfig-checker github-release-notes neovim -prettier stylelint-lsp tldr diff --git a/scripts/install-npm-packages.sh b/scripts/install-npm-packages.sh index 7b54ddf..b16baa9 100755 --- a/scripts/install-npm-packages.sh +++ b/scripts/install-npm-packages.sh @@ -4,7 +4,7 @@ # shellcheck source=shared.sh source "$HOME/.dotfiles/scripts/shared.sh" -! have npm && msg_err "npm could not be found." && exit 0; +! have npm && msg_err "npm could not be found." && exit 0 packages=( # This is a tool to check if your files consider your .editorconfig rules. @@ -13,7 +13,6 @@ packages=( # a tag and uses issues or commits to creating the release notes. "github-release-notes" "neovim" - "prettier" "corepack" # CLI and local web plain text note‑taking, bookmarking, and archiving # with linking, tagging, filtering, search, Git versioning & syncing, @@ -40,4 +39,3 @@ done msg_run "Upgrading all global packages" npm -g --no-progress --no-timing --no-fund outdated npm -g --no-timing --no-fund upgrade -