mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 00:20:08 -04:00
7 lines
No EOL
301 B
Bash
Executable file
7 lines
No EOL
301 B
Bash
Executable file
#!/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
|
|
npx eslint $scripts_changed
|
|
fi |