The git pre-commit hook and the VS Code settings I use when developing Svelte apps.
Last active
June 2, 2023 13:23
-
-
Save travishorn/219c4b855af09812c9a269a1487f792f to your computer and use it in GitHub Desktop.
The git pre-commit hook and the VS Code settings I use when developing Svelte apps.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Lint files before committing | |
npm run lint | |
# Exit with the appropriate exit code based on the lint script's result | |
if [[ $? -ne 0 ]]; then | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.insertSpaces": false, | |
"editor.rulers": [100], | |
"explorer.sortOrder": "filesFirst", | |
"workbench.editor.labelFormat": "short", | |
"workbench.tree.indent": 18 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment