@skarab/eslint-staged
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@skarab/eslint-staged

This package provides a CLI tool (eslint-staged) designed to run ESLint on specific files, considering the files in .eslintignore.

It resolves the common issue (1, 2) where lint-staged pass files ignored by ESLint.

Installation

pnpm add @skarab/eslint-staged --save-dev

Usage

In your package.json, configure lint-staged as follows:

"lint-staged": {
  "*": [
    "pnpm eslint-staged --fix --max-warnings=0",
    "pnpm prettier --write --ignore-unknown"
  ]
}

Scaffolded with @skarab/skaffold

Package Sidebar

Install

npm i @skarab/eslint-staged

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

8.33 kB

Total Files

7

Last publish

Collaborators

  • skarab