We use the `@keystonehq/bc-ur-registry` package for integration with
Keystone devices. This package is peculiar as it not only ships with
JavaScript files but also original TypeScript files. When we started
adding support for TypeScript into the build system, we realized that
the TypeScript files were apparently developed using a different
TypeScript config than we use and therefore resulted in errors in our
build process. So we added a patch which removed these TypeScript files
so that we would fall back to using the compiled JavaScript files. This
removed type information but fixed our build system.
Since then, we've bumped this package and the files we removed have
changed, so the patch is no longer valid. This commit recreates the
patch so that we no longer get warnings from `patch-package`.
This commit allows developers to write TypeScript files and lint them
(either via a language server in their editor of choice or through the
`yarn lint` command).
The new TypeScript configuration as well as the updated ESLint
configuration not only includes support for parsing TypeScript files,
but also provides some compatibility between JavaScript and TypeScript.
That is, it makes it possible for a TypeScript file that imports a
JavaScript file or a JavaScript file that imports a TypeScript file to
be linted.
Note that this commit does not integrate TypeScript into the build
system yet, so we cannot start converting files to TypeScript and
pushing them to the repo until that final step is complete.