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

Update tsconfig for ts 4.0 #465

Merged
merged 1 commit into from
Sep 29, 2020
Merged

Update tsconfig for ts 4.0 #465

merged 1 commit into from
Sep 29, 2020

Conversation

johnschoeman
Copy link
Contributor

Why:
Currently our tsconfig is set to only run the ts compiler on files that
end with .d.ts which means that the complier is not running on any of
our source files. This was caused by an update to the behaviour of the
includes tsconfig option from being inclusive to exclusive.

This commit:
updates the tsconfig file to fix the issue as well as removes no no
longer necessary config options. We updated some type errors that made
their way into the codebase during the few days of not type checking the
entire codebase

Co-Authored-By: devin jameson devin@thoughtbot.com

Copy link
Contributor

@devinjameson devinjameson left a comment

Choose a reason for hiding this comment

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

🎉 :shipit:

tsconfig.json Outdated
"jest/*",
"**/*.svg"
]
"include": ["src/**/*", "App.tsx", "**/*.d.ts"],
Copy link
Contributor

Choose a reason for hiding this comment

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

curious why the root folder is not included?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose because src/ and App.tsx are the only ts files? but no reason to not have it be the root, we will update!

@johnschoeman johnschoeman force-pushed the jts-dj-update-tsconfig branch 2 times, most recently from 8b57423 to 5bd659b Compare September 28, 2020 21:15
tsconfig.json Outdated
"jest/*",
"**/*.svg"
]
"include": ["**/*.ts", "**/*.d.ts"],
Copy link
Contributor

Choose a reason for hiding this comment

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

should we have the tsx files here too?

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it works for tsx if we use ts but it might be good to add tsx to be exhaustive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are captured!

Why:
Currently our tsconfig is set to only run the ts compiler on files that
end with `.d.ts` which means that the complier is not running on any of
our source files. This was caused by an update to the behaviour of the
includes tsconfig option from being inclusive to exclusive.

This commit:
updates the tsconfig file to fix the issue as well as removes no no
longer necessary config options. We updated some type errors that made
their way into the codebase during the few days of not type checking the
entire codebase

Co-Authored-By: devin jameson <devin@thoughtbot.com>
@johnschoeman johnschoeman merged commit 616d974 into develop Sep 29, 2020
@johnschoeman johnschoeman deleted the jts-dj-update-tsconfig branch September 29, 2020 14:26
tokumori pushed a commit to AlohaSafe/gaen-mobile that referenced this pull request Oct 1, 2020
Why:
Currently our tsconfig is set to only run the ts compiler on files that
end with `.d.ts` which means that the complier is not running on any of
our source files. This was caused by an update to the behaviour of the
includes tsconfig option from being inclusive to exclusive.

This commit:
updates the tsconfig file to fix the issue as well as removes no no
longer necessary config options. We updated some type errors that made
their way into the codebase during the few days of not type checking the
entire codebase

Co-Authored-By: devin jameson <devin@thoughtbot.com>

Co-authored-by: devin jameson <devin@thoughtbot.com>
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