mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +00:00
8 lines
190 B
Bash
Executable File
8 lines
190 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
files_to_lint=$(git diff --cached --name-only --diff-filter=ACM | grep '\.js$')
|
|
|
|
if [ -n "$files_to_lint" ]; then
|
|
NODE_ENV=production eslint --quiet $files_to_lint
|
|
fi
|