Skip to content

Commit 0dd04f2

Browse files
committed
feat(@angular/cli): add markdown files to Prettier's formatting list
Improve README template spacing.
1 parent 39342af commit 0dd04f2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/angular/cli/src/command-builder/utilities/prettier.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ let prettierCliPath: string | null | undefined;
2020
* File types that can be formatted using Prettier.
2121
*/
2222
const fileTypes: ReadonlySet<string> = new Set([
23+
'.md',
2324
'.ts',
2425
'.html',
2526
'.js',

packages/schematics/angular/library/files/README.md.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This command will compile your project, and the build artifacts will be placed i
3131
Once the project is built, you can publish your library by following these steps:
3232

3333
1. Navigate to the `dist` directory:
34+
3435
```bash
3536
cd dist/<%= dasherize(name) %>
3637
```

0 commit comments

Comments
 (0)