Set up prettier
This commit is contained in:
parent
4f994f183f
commit
8e82248f5e
8 changed files with 39 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
/node_modules/
|
||||
/target/
|
||||
|
|
|
|||
5
.prettierignore
Normal file
5
.prettierignore
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/pnpm-lock.yaml
|
||||
/showbits-thermal-printer-ui/dist/
|
||||
/showbits-thermal-printer-ui/pnpm-lock.yaml
|
||||
/showbits-typst-plugin/target/
|
||||
/target/
|
||||
3
.prettierrc
Normal file
3
.prettierrc
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"proseWrap": "always"
|
||||
}
|
||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"[fish]": { "editor.defaultFormatter": "bmalehorn.vscode-fish" },
|
||||
"[rust]": { "editor.defaultFormatter": "rust-lang.rust-analyzer" },
|
||||
"[toml]": { "editor.defaultFormatter": "tamasfe.even-better-toml" },
|
||||
|
||||
"[typst]": { "editor.defaultFormatter": "myriad-dreamin.tinymist" },
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"tinymist.fontPaths": ["showbits-assets/data"]
|
||||
}
|
||||
|
|
|
|||
4
meta/fmt
4
meta/fmt
|
|
@ -1,5 +1,9 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
cargo fmt
|
||||
|
||||
pushd showbits-typst-plugin
|
||||
cargo fmt
|
||||
popd
|
||||
|
||||
pnpm fmt
|
||||
|
|
|
|||
8
package.json
Normal file
8
package.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"scripts": {
|
||||
"fmt": "prettier . --write"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.5.2"
|
||||
}
|
||||
}
|
||||
|
|
@ -7,6 +7,12 @@ settings:
|
|||
importers:
|
||||
|
||||
.:
|
||||
devDependencies:
|
||||
prettier:
|
||||
specifier: ^3.5.2
|
||||
version: 3.5.2
|
||||
|
||||
showbits-thermal-printer-ui:
|
||||
dependencies:
|
||||
vue:
|
||||
specifier: ^3.5.13
|
||||
|
|
@ -426,6 +432,11 @@ packages:
|
|||
resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==}
|
||||
engines: {node: ^10 || ^12 || >=14}
|
||||
|
||||
prettier@3.5.2:
|
||||
resolution: {integrity: sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg==}
|
||||
engines: {node: '>=14'}
|
||||
hasBin: true
|
||||
|
||||
rollup@4.34.9:
|
||||
resolution: {integrity: sha512-nF5XYqWWp9hx/LrpC8sZvvvmq0TeTjQgaZHYmAgwysT9nh8sWnZhBnM8ZyVbbJFIQBLwHDNoMqsBZBbUo4U8sQ==}
|
||||
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
|
||||
|
|
@ -813,6 +824,8 @@ snapshots:
|
|||
picocolors: 1.1.1
|
||||
source-map-js: 1.2.1
|
||||
|
||||
prettier@3.5.2: {}
|
||||
|
||||
rollup@4.34.9:
|
||||
dependencies:
|
||||
'@types/estree': 1.0.6
|
||||
2
pnpm-workspace.yaml
Normal file
2
pnpm-workspace.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
packages:
|
||||
- showbits-thermal-printer-ui
|
||||
Loading…
Add table
Add a link
Reference in a new issue