Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: throw error to prevent empty commits unless --allow-empty is used #762

Merged
merged 1 commit into from Jan 8, 2020

Commits on Jan 8, 2020

  1. feat: throw error to prevent empty commits unless --allow-empty is used

    BREAKING CHANGE: Previously, lint-staged would allow empty commits in the situation where a linter task like "prettier --write" reverts all staged changes automatically. Now the default behaviour is to throw an error with a helpful warning message. The --allow empty option can be used to allow empty commits, or `allowEmpty: true` for the Node.js API.
    iiroj committed Jan 8, 2020
    Copy the full SHA
    fa2cb8a View commit details
    Browse the repository at this point in the history