mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Create check_scripts.sh
This commit is contained in:
parent
5958c77c65
commit
d81b994161
1 changed files with 8 additions and 0 deletions
8
.husky/check_scripts.sh
Executable file
8
.husky/check_scripts.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
scripts_changed="$(git diff --staged --name-only --diff-filter=ACMR -- 'tests/**/*.ts' 'tests/**/*.js' 'scripts/**/*.ts' 'scripts/**/*.mts' 'scripts/**/*.js' 'sites/**/*.js' 'sites/**/*.ts' | sed 's| |\\ |g')"
|
||||
|
||||
if [ ! -z "$scripts_changed" ]; then
|
||||
echo "npx eslint $scripts_changed"
|
||||
npx eslint $scripts_changed
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue