Skip to content

Should we run tsc --checkJs as a checkRun on CI? #16

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

Closed
oscard0m opened this issue Mar 7, 2021 · 6 comments · Fixed by #36
Closed

Should we run tsc --checkJs as a checkRun on CI? #16

oscard0m opened this issue Mar 7, 2021 · 6 comments · Fixed by #36
Labels
maintenance Tests, Refactorings, Automation, etc released

Comments

@oscard0m
Copy link
Member

oscard0m commented Mar 7, 2021

Originally posted by @gr2m in #15 (comment)

@oscard0m oscard0m added the maintenance Tests, Refactorings, Automation, etc label Mar 7, 2021
@oscard0m
Copy link
Member Author

oscard0m commented Mar 7, 2021

To as a developer would be a valuable check but maybe it can be tedious for developers not wondering to deal with types. Maybe we can make it as a non-required check? Or... a non-required check is confusing for end-users? @gr2m

@gr2m
Copy link
Member

gr2m commented Mar 7, 2021

I'm not sure either, I didn't try this before myself.

I just tried to run

npx -p typescript tsc --checkJs

but I get an error, as if the --checkJs no longer exists? Do you know anything about that? How do you run tsc with the checkRun flag locally? What TypeScript version are you using?

@oscard0m
Copy link
Member Author

oscard0m commented Mar 7, 2021

With tsc the command is --allowJs

This is the command I run to make it work in script-setup-renovate-setup:

npx -p typescript tsc --allowJs --noEmit --lib es2020 *.js

@gr2m
Copy link
Member

gr2m commented Mar 7, 2021

looks good 👍🏼 I'd say let's add this check to our CI tests, maybe also add them to the scripts we create using npm init octoherd-script. We can remove it or make it optional once people complain. I think it's a good thing to have. What do you think?

@oscard0m
Copy link
Member Author

oscard0m commented Mar 7, 2021

looks good 👍🏼 I'd say let's add this check to our CI tests, maybe also add them to the scripts we create using npm init octoherd-script. We can remove it or make it optional once people complain. I think it's a good thing to have. What do you think?

To me it’s very useful to have this feedback at PR stage.

I think we would give more confidence to new contributors too.

@github-actions
Copy link

🎉 This issue has been resolved in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Tests, Refactorings, Automation, etc released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants