mirror of
https://github.com/nvim-tree/nvim-tree.lua
synced 2024-09-16 14:34:03 +02:00
chore: add pre commit hook
This commit is contained in:
parent
d4d02cd4d1
commit
5675208d13
2 changed files with 7 additions and 0 deletions
4
.hooks/pre-commit.sh
Executable file
4
.hooks/pre-commit.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
luacheck . || exit 1
|
||||
stylua lua/**/*.lua --check || exit 1
|
3
scripts/setup-hooks.sh
Executable file
3
scripts/setup-hooks.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
ln -sf ../../.hooks/pre-commit.sh .git/hooks/pre-commit
|
Loading…
Reference in a new issue