Created
March 25, 2022 07:34
-
-
Save Artawower/702271a627fa416867feffa553ffce9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
FILES_LIST=$(git diff --name-only ${CURRENT_BRANCH} $(git merge-base ${CURRENT_BRANCH} master) | awk '/\.ts$/ {print "--lint-file-patterns="$0}') | |
npm run lint -- <project_name> $FILES_LIST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment