Use prettier for most formatting
This commit is contained in:
parent
3c86c4b337
commit
93663fff8c
4 changed files with 31 additions and 9 deletions
8
.prettierignore
Normal file
8
.prettierignore
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
/.sqlx/
|
||||||
|
/target/
|
||||||
|
/templates/
|
||||||
|
|
||||||
|
# Vendored uPlot files
|
||||||
|
/scripts/uPlot.d.ts
|
||||||
|
/scripts/uPlot.js
|
||||||
|
/static/uPlot.css
|
||||||
3
.prettierrc.json
Normal file
3
.prettierrc.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"trailingComma": "all"
|
||||||
|
}
|
||||||
21
.vscode/settings.json
vendored
21
.vscode/settings.json
vendored
|
|
@ -1,11 +1,18 @@
|
||||||
{
|
{
|
||||||
"json.format.keepLines": true,
|
"[css]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
|
||||||
|
"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
|
||||||
|
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
|
||||||
|
"[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
|
||||||
|
"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
|
||||||
|
|
||||||
"typescript.format.semicolons": "insert",
|
"typescript.format.semicolons": "insert",
|
||||||
"files.associations": {
|
|
||||||
"**/templates/**/*.html": "jinja-html",
|
|
||||||
},
|
|
||||||
"rust-analyzer.server.extraEnv": {
|
|
||||||
"SQLX_OFFLINE": "false",
|
|
||||||
},
|
|
||||||
"evenBetterToml.formatter.columnWidth": 120,
|
"evenBetterToml.formatter.columnWidth": 120,
|
||||||
|
|
||||||
|
"files.associations": {
|
||||||
|
"**/templates/**/*.html": "jinja-html"
|
||||||
|
},
|
||||||
|
|
||||||
|
"rust-analyzer.server.extraEnv": {
|
||||||
|
"SQLX_OFFLINE": "false"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
meta/format
Executable file
4
meta/format
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cargo fmt
|
||||||
|
prettier . -w
|
||||||
Loading…
Add table
Add a link
Reference in a new issue