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

refactor: fixing no-unsafe-assignment #749

Merged
merged 4 commits into from
Sep 29, 2020
Merged

refactor: fixing no-unsafe-assignment #749

merged 4 commits into from
Sep 29, 2020

Conversation

steveny9911
Copy link
Contributor

@CLAassistant
Copy link

CLAassistant commented Sep 28, 2020

CLA assistant check
All committers have signed the CLA.

@steveny9911 steveny9911 changed the title #619 fixing no-unsafe-assignment #619 wip: fixing no-unsafe-assignment Sep 28, 2020
Copy link
Member

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

I did the following steps to remove the remaining errors:

  1. add "resolveJsonModule": true, inside ./tsconfig.json
  2. remove declare module '*.json'; inside ./App/ambient.d.ts
  3. in ./App/Screens/About/Language/Language.tsx, replace 2 instances of:
- names[i18n.locale]
+ names[i18n.locale as keyof typeof names]

After that all lint passed. Let me know if that works for you.

.eslintrc.js Outdated Show resolved Hide resolved
steveny9911 and others added 3 commits September 29, 2020 11:38
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
Copy link
Member

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a bunch!

@amaury1093 amaury1093 changed the title #619 wip: fixing no-unsafe-assignment refactor: fixing no-unsafe-assignment Sep 29, 2020
@amaury1093 amaury1093 merged commit 2888843 into shootismoke:master Sep 29, 2020
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.

3 participants