anki/ts/components
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
..
Absolute.svelte
Badge.svelte
ButtonGroup.svelte
ButtonGroupItem.svelte
ButtonToolbar.svelte
CheckBox.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
Col.svelte
Collapsible.svelte Fix CodeMirror not properly sized when opening editor (#2426) 2023-03-08 19:46:50 +10:00
Container.svelte
context-keys.ts Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
DropdownDivider.svelte
DropdownItem.svelte Add style for disabled DropdownItem (#2265) 2022-12-11 13:06:18 +10:00
DynamicallySlottable.svelte
FloatingArrow.svelte Remove dark theme exclusive inset shadow from FloatingArrow (#2257) 2022-12-11 11:18:59 +10:00
helpers.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
IconButton.svelte
IconConstrain.svelte
icons.ts Rework spinner buttons (#2230) 2022-12-04 13:18:49 +10:00
Item.svelte
LabelButton.svelte Use a ninja variable for Protoc binary (#2345) 2023-01-23 20:44:47 +10:00
Popover.svelte Fix MathJax editor sometimes not properly sized / getting cut off (#2467) 2023-04-12 09:43:57 +10:00
resizable.ts
Row.svelte
ScrollArea.svelte Simplify NoteEditor by replacing Pane components with Collapsible (#2395) 2023-02-27 16:23:19 +10:00
Select.svelte Improve Select component and add it back to Change Notetype screen (#2239) 2022-12-07 15:31:37 +10:00
SelectOption.svelte Improve Select component and add it back to Change Notetype screen (#2239) 2022-12-07 15:31:37 +10:00
Shortcut.svelte
Spacer.svelte
SpinBox.svelte Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
StickyContainer.svelte
Switch.svelte
TitledContainer.svelte Revamp Preferences, implement Minimalist Mode and Qt widget gallery to test GUI changes (#2289) 2023-01-18 21:24:16 +10:00
tsconfig.json
types.ts Remove some dead code and an invalid import from types.ts 2023-04-12 16:36:15 +10:00
WithContext.svelte
WithFloating.svelte Revert "Prevent MathJax editor from closing unexpectedly when selecting text (#2484)" 2023-05-01 11:17:09 +10:00
WithOverlay.svelte Revert "Prevent MathJax editor from closing unexpectedly when selecting text (#2484)" 2023-05-01 11:17:09 +10:00
WithState.svelte
WithTooltip.svelte