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.
- Host: GitHub
- URL: https://github.com/tommy-mitchell/dprint-config
- Owner: tommy-mitchell
- License: mit
- Created: 2024-02-17T22:00:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T00:36:16.000Z (3 months ago)
- Last Synced: 2025-04-01T12:49:51.491Z (about 2 months ago)
- Topics: dprint, dprint-config
- Language: JavaScript
- Homepage: https://npm.im/@tommy-mitchell/dprint-config
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
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.