Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/fundamentals/linting_and_formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Define separator kind for type literals

#### `unstable-component`

Enable formatting Svelte, Vue, Astro and Angular files
Enable formatting Nunjucks, Vento, Svelte, Vue, Astro and Angular files

#### `unstable-sql`

Expand Down
2 changes: 1 addition & 1 deletion runtime/reference/cli/_commands_reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -3933,7 +3933,7 @@
},
{
"name": "fmt",
"about": "Auto-format various file types.\n \u001b[38;5;245mdeno fmt myfile1.ts myfile2.ts\u001b[39m\n\nSupported file types are:\n \u001b[38;5;245mJavaScript, TypeScript, Markdown, JSON(C) and Jupyter Notebooks\u001b[39m\n\nSupported file types which are behind corresponding unstable flags (see formatting options):\n \u001b[38;5;245mHTML, CSS, SCSS, SASS, LESS, YAML, Svelte, Vue, Astro and Angular\u001b[39m\n\nFormat stdin and write to stdout:\n \u001b[38;5;245mcat file.ts | deno fmt -\u001b[39m\n\nCheck if the files are formatted:\n \u001b[38;5;245mdeno fmt --check\u001b[39m\n\nIgnore formatting code by preceding it with an ignore comment:\n \u001b[38;5;245m// deno-fmt-ignore\u001b[39m\n\nIgnore formatting a file by adding an ignore comment at the top of the file:\n \u001b[38;5;245m// deno-fmt-ignore-file\u001b[39m\n\n\u001b[33mRead more:\u001b[39m \u001b[36mhttps://docs.deno.com/go/fmt\u001b[39m",
"about": "Auto-format various file types.\n \u001b[38;5;245mdeno fmt myfile1.ts myfile2.ts\u001b[39m\n\nSupported file types are:\n \u001b[38;5;245mJavaScript, TypeScript, JSX, TSX, Markdown, JSON(C), CSS, HTML, YAML, Sass, SCSS, LESS and Jupyter Notebooks\u001b[39m\n\nSupported file types which are behind corresponding unstable flags (see formatting options):\n \u001b[38;5;245mNunjucks, Vento, Svelte, Vue, Astro, Angular and SQL\u001b[39m\n\nFormat stdin and write to stdout:\n \u001b[38;5;245mcat file.ts | deno fmt -\u001b[39m\n\nCheck if the files are formatted:\n \u001b[38;5;245mdeno fmt --check\u001b[39m\n\nIgnore formatting code by preceding it with an ignore comment:\n \u001b[38;5;245m// deno-fmt-ignore\u001b[39m\n\nIgnore formatting a file by adding an ignore comment at the top of the file:\n \u001b[38;5;245m// deno-fmt-ignore-file\u001b[39m\n\n\u001b[33mRead more:\u001b[39m \u001b[36mhttps://docs.deno.com/go/fmt\u001b[39m",
"args": [
{
"name": "config",
Expand Down
4 changes: 2 additions & 2 deletions runtime/reference/cli/fmt.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ files:
| JSONC | `.jsonc` | |
| CSS | `.css` | |
| HTML | `.html` | |
| [Nunjucks][Nunjucks] | `.njk` | |
| [Vento][Vento] | `.vto` | |
| YAML | `.yml`, `.yaml` | |
| Sass | `.sass` | |
| SCSS | `.scss` | |
| LESS | `.less` | |
| Jupyter Notebook | `.ipynb` | |
| [Nunjucks][Nunjucks] | `.njk` | Requires `--unstable-component` flag or `"unstable": ["fmt-component"]` config option. |
| [Vento][Vento] | `.vto` | Requires `--unstable-component` flag or `"unstable": ["fmt-component"]` config option. |
| Astro | `.astro` | Requires `--unstable-component` flag or `"unstable": ["fmt-component"]` config option. |
| Svelte | `.svelte` | Requires `--unstable-component` flag or `"unstable": ["fmt-component"]` config option. |
| Vue | `.vue` | Requires `--unstable-component` flag or `"unstable": ["fmt-component"]` config option. |
Expand Down
Loading