e63b4b9927
Prettier by default tries to preserve whitespace around inline tags, which can prevent problems such as a space before the period in '<a>text</a>.': https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting Unfortunately only standard HTML block elements are excluded from this behaviour, so all of our Svelte components are treated the same way, even if they are block-based, or used in a way where the extra whitespace doesn't matter. This makes the code somewhat harder to read. Changing this option does carry the risk that rogue spaces will creep into our UI in the future as code is formatted, but as there don't appear to be any such issues with this initial reformat, I think the improved readability may justify the relatively small risk.
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"typescript": {
|
|
"indentWidth": 4
|
|
},
|
|
"json": {
|
|
"indentWidth": 4
|
|
},
|
|
"markdown": {},
|
|
"toml": {},
|
|
"prettier": {
|
|
"trailingComma": "all",
|
|
"printWidth": 88,
|
|
"tabWidth": 4,
|
|
"semi": true,
|
|
"htmlWhitespaceSensitivity": "ignore"
|
|
},
|
|
"includes": ["**/*.{ts,tsx,js,jsx,cjs,mjs,json,md,toml,svelte}"],
|
|
"excludes": [
|
|
".vscode",
|
|
"**/node_modules",
|
|
"out/**",
|
|
"**/*-lock.json",
|
|
"qt/aqt/data/web/js/vendor/*.js",
|
|
"ftl/qt-repo",
|
|
"ftl/core-repo",
|
|
"ftl/usage",
|
|
"licenses.json",
|
|
".dmypy.json",
|
|
"qt/bundle/PyOxidizer",
|
|
"target"
|
|
],
|
|
"plugins": [
|
|
"https://plugins.dprint.dev/typescript-0.77.0.wasm",
|
|
"https://plugins.dprint.dev/json-0.16.0.wasm",
|
|
"https://plugins.dprint.dev/markdown-0.14.1.wasm",
|
|
"https://plugins.dprint.dev/toml-0.5.4.wasm",
|
|
"https://plugins.dprint.dev/prettier-0.13.0.json@dc5d12b7c1bf1a4683eff317c2c87350e75a5a3dfcc127f3d5628931bfb534b1"
|
|
]
|
|
}
|