Skip to content

Commit

Permalink
chore: update prettierrc
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <[email protected]>
  • Loading branch information
paralin committed Apr 27, 2024
1 parent 45eb96e commit 531b26c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
semi: false
singleQuote: true
experimentalTernaries: true
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"codegen": "npm run gen",
"ci": "npm run build && npm run lint:js && npm run lint:go",
"format": "npm run format:go && npm run format:js && npm run format:config",
"format:config": "prettier --write tsconfig.json package.json",
"format:config": "prettier --write package.json",
"format:go": "make format",
"format:js": "npm run format:js:changed",
"format:js:changed": "git diff --name-only --diff-filter=d HEAD | grep '\\(\\.ts\\|\\.tsx\\|\\.html\\|\\.css\\|\\.scss\\)$' | xargs -I {} prettier --write {}",
Expand All @@ -40,10 +40,6 @@
"prepare": "go mod vendor",
"precommit": "npm run format"
},
"prettier": {
"semi": false,
"singleQuote": true
},
"devDependencies": {
"@aptre/common": "^0.14.3",
"depcheck": "^1.4.7",
Expand Down

0 comments on commit 531b26c

Please sign in to comment.