Skip to content

Commit

Permalink
revert vscode config
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Nov 26, 2024
1 parent c0566af commit 3a46a8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "always"
"source.fixAll": "always",
"source.organizeImports": "explicit"
},
"files.associations": {
"*.css": "tailwindcss",
Expand All @@ -20,7 +21,7 @@
"typescript": "typescript",
"svelte": "html"
},
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"javascript.updateImportsOnFileMove.enabled": "prompt",
"typescript.updateImportsOnFileMove.enabled": "prompt",
"eslint.validate": ["javascript", "typescript", "svelte"]
}
4 changes: 2 additions & 2 deletions src/lib/shared/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function removeFormatting(string: string): string {

/**
* Returns a new array with unique elements based on the specified key.
*
*
* @template T - The type of elements in the array.
* @param {T[]} arr - The array to filter for unique elements.
* @param {string} key - The key to determine uniqueness.
Expand All @@ -184,4 +184,4 @@ export function uniqBy<T>(arr: T[], key: string) {
const k = (item as Record<string, unknown>)[key];
return seen.has(k) ? false : seen.add(k);
});
}
}

0 comments on commit 3a46a8c

Please sign in to comment.