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

chore: add yarn check:tsc command to check all files #7963

Merged
merged 4 commits into from
Jan 27, 2023
Merged

Conversation

LeoMcA
Copy link
Member

@LeoMcA LeoMcA commented Jan 13, 2023

  • fix errors found
  • add to github actions

Summary

Problem

It wasn't possible to easily run typescript across the entire project with all the separate tsconfigs we have.

Solution

Add command to run tsc --noEmit in every directory with a tsconfig.json, excluding the root directory (it only acts as a partial config for the others to expand on) and node_modules.


How did you test this change?

yarn check:tsc

@fiji-flo
Copy link
Contributor

could we add a pre commit hook for that?

Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

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

👍

- fix errors found
- add to github actions
fix lint-staged config to avoid race conditions
@LeoMcA LeoMcA merged commit 6184aff into main Jan 27, 2023
@LeoMcA LeoMcA deleted the tsc-check-all branch January 27, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants