github lint-staged/lint-staged v10.0.0-beta.15

latest releases: v15.2.2, v15.2.1, v15.2.0...
pre-release4 years ago

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.

Don't miss a new lint-staged release

NewReleases is sending notifications on new releases.