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 noImplicitOverride check #12648

Merged
merged 8 commits into from
Apr 8, 2022
Merged

chore: add noImplicitOverride check #12648

merged 8 commits into from
Apr 8, 2022

Conversation

mrazauskas
Copy link
Contributor

@mrazauskas mrazauskas commented Apr 7, 2022

Summary

The code base is huge, it might be useful to add TypeScript’s noImplicitOverride check. I think there is a benefit in it. Or?

EDIT: oh.. this is a feature of TS v4.3. In the other hand, override is only relevant at build time, so perhaps that‘s fine?

Test plan

Green CI.

@@ -12,6 +12,7 @@
/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitOverride": true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Type tests on TS 4.2 do not work with this option. I could move it to tsconfig.json inside package directories. Not sure if that is worth it.

@SimenB
Copy link
Member

SimenB commented Apr 8, 2022

I like it! I'm also fine with setting 4.3 as minimum 🙂

CHANGELOG.md Outdated Show resolved Hide resolved
@SimenB
Copy link
Member

SimenB commented Apr 8, 2022

should we merge in main for #12646?

@SimenB
Copy link
Member

SimenB commented Apr 8, 2022

Should update https://github.com/facebook/jest/blob/420ba4535b4563909d8b3a51fd97a3619c5f10d1/.github/workflows/nodejs.yml#L58 as well

(but wait for CI to complete and I can merge)

@SimenB SimenB merged commit 40ac384 into jestjs:main Apr 8, 2022
@mrazauskas mrazauskas deleted the chore-noImplicitOverride branch April 8, 2022 09:05
@github-actions
Copy link

github-actions bot commented May 9, 2022

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants