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.
pnpm add @skarab/eslint-staged --save-dev
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