lint-diff-branch

0.1.11 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i lint-diff-branch

Weekly Downloads

0

Version

0.1.11

License

MIT

Unpacked Size

8.97 kB

Total Files

8

Last publish

Collaborators

  • yidingw