Skip to content

Commit

Permalink
feat: removed settings from vscode; moved to project specific setting…
Browse files Browse the repository at this point in the history
…s file
  • Loading branch information
squirmy committed Nov 1, 2023
1 parent 2d53bb2 commit 6e86e6f
Showing 1 changed file with 3 additions and 41 deletions.
44 changes: 3 additions & 41 deletions home/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ in {
svelte.svelte-vscode
bradlc.vscode-tailwindcss
github.vscode-github-actions
eamodio.gitlens
];

programs.vscode.userSettings = {
Expand All @@ -96,35 +97,8 @@ in {
"terminal.integrated.defaultProfile.osx" = "zsh";

# js/ts
"javascript.updateImportsOnFileMove.enabled" = "always";
"typescript.updateImportsOnFileMove.enabled" = "always";

# eslint configuration
"prettier.enable" = false;
"editor.formatOnSave" = false;
"editor.codeActionsOnSave" = {
"source.fixAll" = false;
"source.fixAll.eslint" = true;
"source.organizeImports" = false;
};
"eslint.validate" = [
"javascript"
"javascriptreact"
"typescript"
"typescriptreact"
"vue"
"html"
"markdown"
"json"
"jsonc"
"json5"
"yaml"
"svelte"
];
"eslint.codeActionsOnSave.rules" = [
"!unused-imports/no-unused-imports"
"*"
];
"javascript.updateImportsOnFileMove.enabled" = "never";
"typescript.updateImportsOnFileMove.enabled" = "never";

# rust linting and formatting
"rust-analyzer.check.command" = "clippy";
Expand Down Expand Up @@ -161,18 +135,6 @@ in {

"shellcheck.executablePath" = "${pkgs.shellcheck.bin}/bin/shellcheck";

# exclude these directories from cmd + shift + f
"search.exclude" = {
"**/.git" = true;
"**/.pnpm" = true;
"**/node_modules" = true;
"**/pnpm-lock.yaml" = true;
};

"svelte.ask-to-enable-ts-plugin" = false;
# "svelte.enable-ts-plugin" = true;
# "[svelte]" = {
# "editor.defaultFormatter" = "svelte.svelte-vscode";
# };
};
}

0 comments on commit 6e86e6f

Please sign in to comment.