Closed jayaddison closed 3 years ago
It'd be nice to remove allowJs
from the tsconfig.json
along with this changeset as a kind of 'confirmation of completeness'. We can't do that quite yet - there is at least one dependency upon it, and that's for a forked d3-sankey
dependency (which doesn't have a minified distribution package, so we import it 'from source').
Even despite that, and even if we hit some minor issues as a result, this seems solid enough to roll forward with.
Describe the reason for these changes and the problem that they solve
TypeScript
can provide some useful guardrails during JavaScript application development, mainly by way of typechecking.We began migrating some of the RecipeRadar application codebase to TypeScript in July last year as part of the migration to the
dexie.js
database library.This changeset continues and completes the migration.
Briefly summarize the changes
src/app
to TypeScripteslint
configuration to apply TypeScript linting rulesHow have the changes been tested?
During QA, only one minor (non-blocking) behaviour difference was discovered: there is now an alphabetical sorting of shopping list categories, as opposed to the previously-existing insertion-order-defined sorting.
List any issues that this change relates to Resolves #161.