Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.04 KB

File metadata and controls

35 lines (24 loc) · 1.04 KB

@skarab/eslint-staged

Refines lint-staged functionality, enforcing strict adherence to ESLint's ignored file configurations.

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

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