@skarab/eslint-staged
v1.0.0
Published
My skaffolded project
Downloads
5
Readme
@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