Skip to content

Commit

Permalink
docs: deno fmt list of files & how they are matched (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
jthegedus committed Sep 15, 2021
1 parent d716095 commit 7d11324
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tools/formatter.md
@@ -1,7 +1,19 @@
## Code formatter

Deno ships with a built in code formatter that auto-formats TypeScript,
JavaScript, Markdown, JSON, and JSONC code.
Deno ships with a built in code formatter that will auto-format the following
files:

| File Type | Extension |
| ---------- | ------------------ |
| JavaScript | `.js` |
| TypeScript | `.ts` |
| JSX | `.jsx` |
| TSX | `.tsx` |
| Markdown | `.md`, `.markdown` |
| JSON | `.json` |
| JSONC | `.jsonc` |

as well as code snippets within Markdown files.

```shell
# format all supported files in the current directory and subdirectories
Expand Down

0 comments on commit 7d11324

Please sign in to comment.