Unmaintained: I'm no longer maintaining this repository because it doesn’t work very well with changes to dprint. See Issue #3 and Issue #4. If you’d like to take over, please email me.
Mirror of dprint for pre-commit.
Add to your pre-commit config:
- repo: https://github.com/adamchainz/pre-commit-dprint
rev: '' # Use the sha / tag you want to point at
hooks:
- id: dprintThen add a dprint.json (or .dprint.json) configuration file in the root of your repository.
By default all text files are passed to dprint, which then only acts on files for which it has a relevant plugin configured.