kontent-ai / dprint-config

Dprint configuration shared for Kontent.ai repositories

Home Page:https://kontent.ai

Repository from Github https://github.comkontent-ai/dprint-configRepository from Github https://github.comkontent-ai/dprint-config

This repository provides a shared dprint configuration for Kontent.ai repositories.

How to use?

  1. Install dprint
  2. Create dprint.json file (usually in the root of your repository)
  3. 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"
  4. Add includes and/or excludes properties to your dprint.json as needed, because the shared config cannot provide that.
  5. Install dprint extension into your favourite IDE. https://dprint.dev/install/#editor-extensions

How to check the formatting on CI with dprint?

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.

About

Dprint configuration shared for Kontent.ai repositories

https://kontent.ai

License:MIT License