From 7d11324dd0d0836bbe55bfc80638db7c7f0d3ba7 Mon Sep 17 00:00:00 2001 From: James Hegedus Date: Thu, 16 Sep 2021 07:56:15 +1000 Subject: [PATCH] docs: deno fmt list of files & how they are matched (#78) --- tools/formatter.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tools/formatter.md b/tools/formatter.md index a8ef6a4f..28ad1193 100644 --- a/tools/formatter.md +++ b/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