Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored Dec 9, 2023
1 parent 6914066 commit 4ea4c85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Format SQL-in-JS tagged template literals by installing [`prettier-plugin-embed`
/** @type {import('prettier').Config} */
const prettierConfig = {
plugins: ['prettier-plugin-embed', 'prettier-plugin-sql'],
};
}

/** @type {import('prettier-plugin-embed').PrettierPluginEmbedOptions} */
const prettierPluginEmbedConfig = {
Expand All @@ -74,9 +74,9 @@ const config = {
...prettierConfig,
...prettierPluginEmbedConfig,
...prettierPluginSqlConfig,
};
}

export default config;
export default config
```

Before formatting:
Expand All @@ -87,7 +87,7 @@ const animals = await sql`
animals
WhERE
id = ${id}
`;
`
```

After formatting:
Expand All @@ -101,7 +101,7 @@ const animals = await sql`
animals
WHERE
id = ${id}
`;
`
```

## Parser Options
Expand Down

0 comments on commit 4ea4c85

Please sign in to comment.