@vibelint/vibelint-wizard
v0.1.20
Published
Interactive ESLint warning approval tool
Maintainers
Readme
@vibelint/vibelint-wizard
Interactive ESLint warning approval tool for when manually fixing warnings is too much work.
This tool walks you through all your ESLint warnings and lets you decide: approve them to pretend they don't exist, reject them to actually fix your code, or skip them to procrastinate like a champion.
Install
npm install -D @vibelint/vibelint-wizardOr use lintmyvibe if you're too lazy to do it manually.
Usage
{
"scripts": {
"commit-wizard": "vibelint-wizard"
}
}npm run commit-wizardThis will:
- Run ESLint on your entire project, which might take a while or might not, depending on how much code you've written
- Show you all the warnings you haven't approved yet
- Let you approve, reject, or skip each one
- Abort the commit if you reject any, because we're not letting you commit broken code
Config
VIBELINT_ESLINT_CMD- ESLint command, defaults to allowing infinite warnings like idiots
Git Hook
# .husky/pre-commit
npm run commit-wizard || exit 1Note: .eslint-warnings-cache.json must be committed to git. It's the graveyard of warnings you've given up on fixing.
