mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -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" } } }
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"incremental": true,
|
|
"typescript": {
|
|
"deno": true
|
|
},
|
|
"markdown": {
|
|
"deno": true
|
|
},
|
|
"json": {
|
|
"deno": true
|
|
},
|
|
"includes": ["**/*.{ts,tsx,js,jsx,json,md,toml}"],
|
|
"excludes": [
|
|
".cargo_home",
|
|
".git",
|
|
"cli/dts/lib.d.ts",
|
|
"cli/dts/lib.dom*",
|
|
"cli/dts/lib.es*",
|
|
"cli/dts/lib.scripthost.d.ts",
|
|
"cli/dts/lib.webworker*.d.ts",
|
|
"cli/dts/typescript.d.ts",
|
|
"cli/tests/testdata/encoding",
|
|
"cli/tests/testdata/inline_js_source_map*",
|
|
"cli/tests/testdata/badly_formatted.md",
|
|
"cli/tests/testdata/badly_formatted.json",
|
|
"cli/tests/testdata/byte_order_mark.ts",
|
|
"cli/tests/testdata/fmt/*",
|
|
"cli/tsc/*typescript.js",
|
|
"test_util/std",
|
|
"test_util/wpt",
|
|
"gh-pages",
|
|
"target",
|
|
"third_party",
|
|
"tools/wpt/expectation.json",
|
|
"tools/wpt/manifest.json"
|
|
],
|
|
"plugins": [
|
|
"https://plugins.dprint.dev/typescript-0.54.0.wasm",
|
|
"https://plugins.dprint.dev/json-0.13.0.wasm",
|
|
"https://plugins.dprint.dev/markdown-0.10.0.wasm",
|
|
"https://plugins.dprint.dev/toml-0.5.1.wasm"
|
|
]
|
|
}
|