Commit 088ddf9c62 (#755) does not work,
because neither the .env file nor the environment variables it
provides are available to normal users at runtime. This silently
broke Sentry data collection. When we upgraded @sentry/electron in
commit 107e522914, the silent failure
became an error that prevented the app from starting.
The Sentry DSN is not a secret, so we should just commit it to the
repository.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
Using `import * as` import syntax causes some problem if the
module exports a class or function. Because the whole point of
star import is to import every property the module exports. It turns
out we have been using it incorrectly in many places which this commit
fixes.
Then we fix a linting error by adding a eslint disable rule to solve
it along with a TODO because the way we currently do it is wrong.
Finally, to conclude this cleanup, we merge all the .gitignore paths
into once now that we can.