mirror of
https://github.com/denoland/deno.git
synced 2024-11-02 09:34:19 -04: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" } } }
15 lines
278 B
Text
15 lines
278 B
Text
{
|
|
"fmt": {
|
|
"files": {
|
|
"include": ["fmt/fmt_with_config/"],
|
|
"exclude": ["fmt/fmt_with_config/b.ts"]
|
|
},
|
|
"options": {
|
|
"useTabs": true,
|
|
"lineWidth": 40,
|
|
"indentWidth": 8,
|
|
"singleQuote": true,
|
|
"proseWrap": "always"
|
|
}
|
|
}
|
|
}
|