mirror of
https://github.com/denoland/deno.git
synced 2024-11-15 16:43:44 -05:00
0dbeb774ba
This commit adds support for configuration file for "deno fmt" subcommand. It is also respected by LSP when formatting files. Example configuration: { "fmt": { "files": { "include": ["src/"], "exclude": ["src/testdata/"] }, "options": { "useTabs": true, "lineWidth": 80, "indentWidth": 4, "singleQuote": true, "textWrap": "preserve" } } }
17 lines
118 B
Markdown
17 lines
118 B
Markdown
# Hello
|
|
|
|
```js
|
|
function foo() {
|
|
return 42;
|
|
}
|
|
|
|
foo();
|
|
```
|
|
|
|
```ts
|
|
function bar(): number {
|
|
return 42;
|
|
}
|
|
|
|
bar();
|
|
```
|