christhoval06 / eslint-changeset

Runs ESLint on changed files.

Home Page:https://npm.im/eslint-changeset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-changeset ·

Runs ESLint on changed files.

Why

Linting an entire project can be slow and some of the results may not be relevant. Oftentimes, we only care about linting the files that have changed.

This project contains a script that will run ESLint on a list of changed files.

Usage

npm

npx eslint-changeset

pnpm

pnpx libyear

yarn@1 (yarn classic)

yarn add --dev eslint-changeset
yarn eslint-changeset

yarn@2 (yarn berry)

yarn dlx eslint-changeset

CLI

--branch=<branch>

Accepts a git branch. Default master.

Compare changes with the specified branch.

--fix

Accepts a boolean.

Automatically fix problems.

--since=<ref>

Accepts a git ref.

Compare changes since the specified reference.

About

Runs ESLint on changed files.

https://npm.im/eslint-changeset

License:MIT License


Languages

Language:TypeScript 94.7%Language:Shell 3.5%Language:JavaScript 1.9%