anki/ts/deck-options
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
..
Addons.svelte Remove untranslated 'see old deck options' notice 2022-11-03 12:05:19 +10:00
AdvancedOptions.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
AudioOptions.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
BuryOptions.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
CardStateCustomizer.svelte Redesign deck options screen, swap tooltips for help modals (#2139) 2022-10-25 16:18:50 +10:00
ConfigInput.svelte Fix various RTL issues (#2172) 2022-11-02 21:47:07 +10:00
ConfigSelector.svelte Fix deck options selector not updating the current entry sometimes (#2387) 2023-02-20 22:02:46 +10:00
DailyLimits.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
deck-options-base.scss Fix black on grey deck options on KDE (#2415) 2023-03-06 19:43:04 +10:00
DeckOptionsPage.svelte Redesign deck options screen, swap tooltips for help modals (#2139) 2022-10-25 16:18:50 +10:00
DisplayOrder.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
EnumSelector.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
EnumSelectorRow.svelte Redesign deck options screen, swap tooltips for help modals (#2139) 2022-10-25 16:18:50 +10:00
HelpModal.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
HelpSection.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
HtmlAddon.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
icons.ts Use badge to link manual chapter (#2143) 2022-10-26 11:32:18 +10:00
index.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
Label.svelte Prevent deck options switches from toggling on label click (#2166) 2022-11-04 10:06:57 +10:00
LapseOptions.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
lib.test.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
lib.ts Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
NewOptions.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
RevertButton.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
SaveButton.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
SettingTitle.svelte Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
SpinBoxFloatRow.svelte Make SpinBox types more specific, and add default max value. 2023-01-28 21:54:16 +10:00
SpinBoxRow.svelte Make SpinBox types more specific, and add default max value. 2023-01-28 21:54:16 +10:00
steps.test.ts More uniform file naming 2021-07-01 12:24:16 +02:00
steps.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
StepsInput.svelte Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
StepsInputRow.svelte Redesign deck options screen, swap tooltips for help modals (#2139) 2022-10-25 16:18:50 +10:00
strings.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
SwitchRow.svelte Prevent deck options switches from toggling on label click (#2166) 2022-11-04 10:06:57 +10:00
TabbedValue.svelte Fix various RTL issues (#2172) 2022-11-02 21:47:07 +10:00
TextInputModal.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
TimerOptions.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
tsconfig.json Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
types.ts Redesign deck options screen, swap tooltips for help modals (#2139) 2022-10-25 16:18:50 +10:00
Warning.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00