Skip to content

Commit

Permalink
add prettier for json, yaml, and markdown files
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-aye-see-kay committed Dec 21, 2023
1 parent 4336944 commit cec849e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.devbox/
7 changes: 5 additions & 2 deletions devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"nixpkgs-fmt",
"statix",
"shellcheck",
"shfmt"
"shfmt",
"nodePackages.prettier"
],
"shell": {
"scripts": {
Expand All @@ -19,12 +20,14 @@
"statix check --ignore .devbox &",
"shellcheck **/*.{sh,bats} &",
"shfmt --diff **/*.{sh,bats} &",
"prettier . --check &",
"wait"
],
"lint:fix": [
"nixpkgs-fmt .",
"statix fix --ignore .devbox",
"shfmt --write **/*.{sh,bats}"
"shfmt --write **/*.{sh,bats}",
"prettier . --write"
],
"test": [
"devbox run test-bash",
Expand Down
4 changes: 4 additions & 0 deletions devbox.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"resolved": "github:NixOS/nixpkgs/75a52265bda7fd25e06e3a67dee3f0354e73243c#nixpkgs-fmt",
"source": "nixpkg"
},
"nodePackages.prettier": {
"resolved": "github:NixOS/nixpkgs/75a52265bda7fd25e06e3a67dee3f0354e73243c#nodePackages.prettier",
"source": "nixpkg"
},
"shellcheck": {
"resolved": "github:NixOS/nixpkgs/75a52265bda7fd25e06e3a67dee3f0354e73243c#shellcheck",
"source": "nixpkg"
Expand Down
3 changes: 2 additions & 1 deletion plugins/dynamodb_local/process-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ version: "0.5"

processes:
dynamodb_local:
# working_dir set so command is run from a git ignored directory.
# working_dir set so command is run from a git ignored directory.
# dynamodb_local creates a metadata file in the directory it starts in, and we
# want that to be hidden.
# prettier-ignore
working_dir: {{ .Virtenv }}
command: dynamodb_local
availability:
Expand Down

0 comments on commit cec849e

Please sign in to comment.