This repository provides a shared dprint configuration for Kontent.ai repositories.
- Install dprint
- Create
dprint.jsonfile (usually in the root of your repository) - Extend the
dprint.jsonfile from this repository. Add this property to your json to do that."extends": "https://raw.githubusercontent.com/kontent-ai/dprint-config/main/dprint.json" - Add
includesand/orexcludesproperties to yourdprint.jsonas needed, because the shared config cannot provide that. - Install dprint extension into your favourite IDE. https://dprint.dev/install/#editor-extensions
There is a CLI command to do just that dprint check, but your can leverage prepared scripts for GitHub Action or GitLab to do that for you.