An open API service indexing awesome lists of open source software.

https://github.com/tommy-mitchell/dprint-config

Personal config for dprint.
https://github.com/tommy-mitchell/dprint-config

dprint dprint-config

Last synced: about 2 months ago
JSON representation

Personal config for dprint.

Awesome Lists containing this project

README

        

# dprint-config

Personal config for [`dprint`](https://github.com/dprint/dprint).

## Install

```sh
npm install --save-dev @tommy-mitchell/dprint-config dprint
```

Other Package Managers

```sh
yarn add --dev @tommy-mitchell/dprint-config dprint
```

After installing, add your desired `dprint` plugins:

```sh
dprint config add json
dprint config add markdown
dprint config add typescript
```

### Peer Dependencies

- [dprint](https://github.com/dprint/dprint) - Pluggable and configurable code formatting platform written in Rust.

## Usage

Add to the `extends` section of your `dprint` config:

```jsonc
"extends": ["node_modules/@tommy-mitchell/dprint-config/index.json"],
```

### VS Code

Add the following to your `settings.json`:

```jsonc
"[javascript][typescript][markdown][json][jsonc]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "dprint.dprint",
},
```

## Related

- [Dprint Code Formatter](https://marketplace.visualstudio.com/items?itemName=dprint.dprint) - Formats code in VSCode using dprint.