Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .githooks.gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[hook "prettier"]
event = pre-commit
command = .githooks/pre-commit
11 changes: 11 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

staged=$(git diff --cached --name-only --diff-filter=d)

if [ -z "$staged" ]; then
exit 0
fi

echo "$staged" | xargs prettier --write --ignore-unknown

echo "$staged" | xargs git add
7 changes: 0 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@ updates:
time: "02:00"
timezone: "America/New_York"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
day: "friday"
time: "02:00"
timezone: "America/New_York"
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ FakesAssemblies/

# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/

# Visual Studio 6 build log
*.plg
Expand Down
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

Loading