Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More typescript & cleanups #23

Merged
merged 4 commits into from
Mar 28, 2022
Merged

More typescript & cleanups #23

merged 4 commits into from
Mar 28, 2022

Conversation

berekuk
Copy link
Collaborator

@berekuk berekuk commented Mar 27, 2022

This is a second step in the transition to TypeScript (#7).

For now I:

Some axios calls had options not appropriate for axios, e.g. referrer, agent and credentials. I just commented those since everything works without them. But it's interesting that one of those (agent) was responsible for BACKUP_PROXY stuff on goodjudgement. Unsure, should I fix BACKUP_PROXY properly, or are we ok without it?

PS: enabling strict in tsconfig.json (i.e., the actually useful mode which gives most benefits from using typescript) displays 523 errors. I'll either temporarily turn it on from time to time and try to bring this number down (without spending too much time on this), or wait until other code cleanups first.

@netlify
Copy link

netlify bot commented Mar 27, 2022

Deploy Preview for metaforecast ready!

Name Link
🔨 Latest commit edeefdb
🔍 Latest deploy log https://app.netlify.com/sites/metaforecast/deploys/6240d8051638e70008364247
😎 Deploy Preview https://deploy-preview-23--metaforecast.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

allowJs is set to false in tsconfig.json now; please write all future
code with typescript.

cleanups:
- removed platforms/deprecated
- removed flow/history/old
    - see #22
- commented some invalid axios options
- minor fixes with mismatching function arguments
- commented invalid mongo call in databaseReadWithReadCredentials
- {encoding: 'utf-8'} in readFileSync calls
@NunoSempere
Copy link
Collaborator

So the goodjudgment script doesn't currently work on heroku. But I figured it did work if I used, e.g., some proxies from Hetzner (https://spys.one/proxy-asn/24940/). This wasn't working, so my workaround is to run a crontab on my machine. But fixing the proxying would be great.

@berekuk berekuk mentioned this pull request Mar 27, 2022
@NunoSempere
Copy link
Collaborator

Feel free to merge this @berekuk; I'm not seeing how that could cause any particular problems.

@NunoSempere
Copy link
Collaborator

Yeah, I'm going to merge this; don't think anything particularly bad will happen.

@NunoSempere NunoSempere merged commit 5b9b36d into master Mar 28, 2022
@berekuk berekuk deleted the more-typescript branch April 3, 2022 00:28
@berekuk berekuk mentioned this pull request Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants