anki/ts
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
..
card-info Show custom data in stats screen 2023-02-07 12:27:43 +10:00
change-notetype Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
components Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
congrats Add some left/right margins to congrats page 2022-12-04 13:58:50 +10:00
deck-options Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
domlib Fix overwrite surround (#2247) 2022-12-09 10:10:58 +10:00
editable Prevent skewing of resized images in editor (#2488) 2023-05-05 19:16:06 +10:00
editor Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
fields Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
graphs Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
html-filter Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
icons Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
image-occlusion Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
import-csv Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
lib Expose onUpdateHook/onShownHook via package 2023-05-31 15:19:09 +10:00
mathjax Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
patches Protobufjs fixed the relative path issue 2023-02-03 09:31:42 +10:00
reviewer Expose onUpdateHook/onShownHook via package 2023-05-31 15:19:09 +10:00
sql_format Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
sveltelib Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
tag-editor Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
.gitignore Update eslint to 4.22.0 2021-04-22 19:19:39 +02:00
bundle_svelte.mjs Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
bundle_ts.mjs Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
esbuild_jest.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
jest.config.js Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
licenses.json Upgrade Svelte (#2506) 2023-05-18 17:04:58 +10:00
page.html Load page script after body created (#1802) 2022-04-19 17:16:56 +10:00
README.md add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
transform_ts.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
tsconfig.json Add es2019.string back to tsconfig 2023-05-11 15:10:27 +10:00
yarn.sh Fix yarn.sh failing with linked out folder 2023-03-31 13:08:59 +10:00

Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.

To update all dependencies:

./update.sh

To add a new dev dependency, use something like:

./add.sh -D @rollup/plugin-alias