anki/ts/image-occlusion
Damien Elmes e63b4b9927 Experiment with disabling prettier whitespace sensitivity
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.
2023-06-01 11:11:26 +10:00
..
notes-toolbar Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
shapes Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
tools Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
add-or-update-note.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
canvas-scale.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
icons.ts Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
image-occlusion-base.scss fix image height issues in iOS safari (#2480) 2023-04-26 16:01:04 +10:00
ImageOcclusionPage.svelte Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
index.ts Various tweaks to I/O code (#2478) 2023-04-19 15:30:18 +10:00
lib.ts Various tweaks to I/O code (#2478) 2023-04-19 15:30:18 +10:00
mask-editor.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
MaskEditor.svelte Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
Notes.svelte fix image height issues in iOS safari (#2480) 2023-04-26 16:01:04 +10:00
review.scss Fix misaligned image occlusions (#2512) 2023-05-23 11:59:50 +10:00
review.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
SideToolbar.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
StickyFooter.svelte fix image height issues in iOS safari (#2480) 2023-04-26 16:01:04 +10:00
store.ts Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
Tags.svelte fix image height issues in iOS safari (#2480) 2023-04-26 16:01:04 +10:00
Toast.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
TopToolbar.svelte fix image height issues in iOS safari (#2480) 2023-04-26 16:01:04 +10:00
tsconfig.json Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
types.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00