Skip to content

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

License

Notifications You must be signed in to change notification settings

skarab42/eslint-staged

Repository files navigation

@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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published