Skip to content

Commit

Permalink
Use dprint instead of Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskrycho committed Sep 10, 2023
1 parent 095e8cf commit 1589fd8
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 16 deletions.
8 changes: 5 additions & 3 deletions .nova/Configuration.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"workspace.art_style" : 1,
"workspace.color" : 6,
"workspace.name" : "Unison Nova"
"prettier.format-on-save": "Disable",
"prettier.format-on-save.ignore-without-config": "Global Default",
"workspace.art_style": 1,
"workspace.color": 6,
"workspace.name": "Unison Nova"
}
19 changes: 19 additions & 0 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"typescript": {
"lineWidth": 90,
"quoteStyle": "preferSingle"
},
"json": {
},
"toml": {
},
"excludes": [
"**/node_modules",
"**/*-lock.json"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.87.1.wasm",
"https://plugins.dprint.dev/json-0.17.4.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm"
]
}
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "Chris Krycho <[email protected]>",
"devDependencies": {
"@types/nova-editor": "^1.0.1",
"prettier": "^3.0.2",
"dprint": "^0.40.2",
"tree-sitter-unison": "kylegoetz/tree-sitter-unison#1df9e35477b4261abb7cd9d3ab5b2f565fc3fd8a",
"typescript": "5.2"
},
Expand All @@ -14,8 +14,5 @@
"volta": {
"node": "18.17.1",
"pnpm": "8.6.12"
},
"prettier": {
"singleQuote": true
}
}
73 changes: 64 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1589fd8

Please sign in to comment.