jshint pre-commit to stop checking json files
This commit is contained in:
@@ -11,7 +11,7 @@ COLOR_NONE="\x1B[0m"
|
|||||||
repo=$( git rev-parse --show-toplevel )
|
repo=$( git rev-parse --show-toplevel )
|
||||||
|
|
||||||
for file in $( exec git diff-index --cached --name-only HEAD ); do
|
for file in $( exec git diff-index --cached --name-only HEAD ); do
|
||||||
if [[ $file == *".js"* ]]; then
|
if [[ $file == *".js$"* ]]; then
|
||||||
status=$( exec git status --porcelain $file )
|
status=$( exec git status --porcelain $file )
|
||||||
|
|
||||||
if [[ $status != D* ]]; then
|
if [[ $status != D* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user