Skip to content

Commit

Permalink
feat: update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrpo committed Feb 28, 2024
1 parent 5221b7e commit 34fe908
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 100
}
2 changes: 1 addition & 1 deletion src/generators/javascript/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const javascript: Generator<
const formattedContents = prettier.format(contents, {
parser: client.options.client.language === Language.TYPESCRIPT ? 'typescript' : 'babel',
// Overwrite a few of the standard prettier settings to match with our RudderTyper configuration:
useTabs: true,
tabWidth: 2,
singleQuote: true,
semi: false,
trailingComma:
Expand Down

0 comments on commit 34fe908

Please sign in to comment.