Skip to content

yidingww/lint-diff-branch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lint-diff-branch

CLI tool to run eslint against target branch

Usage

lint-diff-branch TARGET_BRANCH_NAME # default to master or main

Options

--source # Source branch, when not provided, it will be current local branch (returned by `git rev-parse --abbrev-ref HEAD`)
--head # Compare HEAD (instead of the source branch) against the target branch to determine the changed files. When provided, --source will be ignored. Recommended to enable when in detached HEAD mode (e.g. in CI)
--fix # Auto-fix the issues, when provided, it will run eslint --fix under the hood
--quiet # Only lint "error" issues, when provided, it will run eslint --quiet under the hood
--disablePrompt # will not ask user's confirmation before running eslint
--debug # Turn on debug mode, print extra information for debug purpose