anki/ts/import-csv
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
..
DeckDupeCheckSwitch.svelte Deck scoped dupe check (#2372) 2023-02-16 17:53:36 +10:00
DeckSelector.svelte Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
DelimiterSelector.svelte Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
DupeResolutionSelector.svelte Deck scoped dupe check (#2372) 2023-02-16 17:53:36 +10:00
FieldMapper.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
Header.svelte Avoid sticky containers in importing screen for now 2022-11-03 11:59:08 +10:00
HtmlSwitch.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
import-csv-base.scss Prevent the sticky from hiding in the stats page (#2457) 2023-03-26 15:23:50 +10:00
ImportCsvPage.svelte Default to current deck in csv import if settings allow it (#2527) 2023-05-31 13:47:12 +10:00
index.ts Show an error pop-up when csv import screen fails to load 2023-05-15 15:32:38 +10:00
lib.ts Default to current deck in csv import if settings allow it (#2527) 2023-05-31 13:47:12 +10:00
MapperRow.svelte Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
NotetypeSelector.svelte Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
Preview.svelte Give containers brighter color than canvas (#2220) 2022-11-29 17:54:42 +10:00
StickyHeader.svelte Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
Tags.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
tsconfig.json Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00