Skip to content

v10.0.0-beta.15

Pre-release
Pre-release
Compare
Choose a tag to compare
@okonet okonet released this 08 Jan 19:56
· 371 commits to master since this release

10.0.0-beta.15 (2020-01-08)

Features

  • throw error to prevent empty commits unless --allow-empty is used (#762) (8bdeec0)

BREAKING CHANGES

  • 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.