deno fmt [files...]
Format source files
Arguments
Name | Description |
---|---|
files | filepaths |
Options
Name | Description |
---|---|
-c, --config [config] | Specify the configuration file |
--ext [ext] | Set standard input (stdin) content type |
--ignore [ignore] | Ignore formatting particular source files |
--options-line-width [options-line-width] | Define maximum line width. Defaults to 80 |
--options-indent-width [options-indent-width] | Define indentation width. Defaults to 2 |
--options-prose-wrap [options-prose-wrap] | Define how prose should be wrapped. Defaults to always |
-L, --log-level [log-level] | Set log level |
--no-config | Disable automatic loading of the configuration file |
--check | Check if the source files are formatted |
--watch | Watch for file changes and restart automatically |
--no-clear-screen | Do not clear terminal screen when under watch mode |
--options-use-tabs | Use tabs instead of spaces for indentation. Defaults to false |
--options-single-quote | Use single quotes. Defaults to false |
-h, --help | Print help information |
--unstable | Enable unstable features and APIs |
-q, --quiet | Suppress diagnostic output |