Skip to content

Commit

Permalink
Add prettierrc (#11)
Browse files Browse the repository at this point in the history
Specify this repositories style so when it is included in other repos the current style is maintained
  • Loading branch information
andrewiggins authored Feb 29, 2024
1 parent 56bcf12 commit c99bb70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": false,
"arrowParens": "always",
"trailingComma": "all"
}
2 changes: 1 addition & 1 deletion cli/src/plugins/dependencyPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export function dependencyPlugin() {

// Serialize import map and fix indentation so it looks nice when debugging
const importMapString = JSON.stringify(importMap, null, 2)
.replace(/ /g, "\t")
.replace(/ {2}/g, "\t")
.replace(/\n/g, "\n\t\t");

return {
Expand Down

0 comments on commit c99bb70

Please sign in to comment.