This repository provides a shared dprint configuration for Kontent.ai repositories.
- Install dprint
- Create
dprint.json
file (usually in the root of your repository) - Extend the
dprint.json
file 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
includes
and/orexcludes
properties to yourdprint.json
as 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.