anki/ts/graphs
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
..
added.ts Fix incorrect added total/average 2023-01-10 09:45:54 +10:00
AddedGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
AxisTicks.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
buttons.ts Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
ButtonsGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
calendar.ts fix stats calendar incorrect due to daylight savings time (#2456) 2023-03-28 15:35:06 +10:00
CalendarGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
card-counts.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
CardCounts.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
CumulativeOverlay.svelte yarn upgrade --latest 2021-10-01 12:52:53 +10:00
ease.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
EaseGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
future-due.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
FutureDue.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
graph-helpers.ts Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
graph-styles.ts merge in Henrik's TS/Svelte refactor with some changes 2021-03-21 23:01:18 +10:00
Graph.svelte Fix some regressions with the graphs when printing 2022-12-30 17:37:38 +10:00
GraphRangeRadios.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
graphs-base.scss Prevent the sticky from hiding in the stats page (#2457) 2023-03-26 15:23:50 +10:00
GraphsPage.svelte Fix some regressions with the graphs when printing 2022-12-30 17:37:38 +10:00
histogram-graph.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
HistogramGraph.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
HourGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
hours.ts Add emojis for graphs in hourly breakdown tooltip (#2464) 2023-04-17 16:16:10 +10:00
HoverColumns.svelte Minor changes to graphs (#1566) 2021-12-29 15:04:15 +10:00
index.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
InputBox.svelte yarn upgrade --latest 2021-10-01 12:52:53 +10:00
intervals.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
IntervalsGraph.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
NoDataOverlay.svelte Make the NoData overlay match the normal background color 2022-12-04 14:49:04 +10:00
RangeBox.svelte Make search in stats page trigger onChange (#2428) 2023-03-11 16:07:49 +10:00
reviews.ts Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
ReviewsGraph.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
TableData.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
today.ts Move more of the graph processing into the backend 2022-12-16 21:42:17 +10:00
TodayStats.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
Tooltip.svelte Auto-hide toolbar in Reviewer (#2262) 2023-01-09 14:39:31 +10:00
tooltip.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
tsconfig.json Use custom scrollbar in stats screen, use grid layout and tweak CSS (#2154) 2022-11-02 18:23:08 +10:00
WithGraphData.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00