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

Forbid explicit any, migrate to unknown or proper typing #16219

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

krassowski
Copy link
Member

@krassowski krassowski commented Apr 22, 2024

References

#16038

Code changes

Forbids any, except in variadics.

The intent is to:

  • keep any in core APIs to avoid disruption (just add eslint-disable comments as needed)
  • use unknown in leaf APIs and in function bodies where we can be fairly certain it will not cause disruption

TODO:

  • this PR and this rule should not apply to test files to reduce the diff and because we worry less about typing in tests

User-facing changes

None

Backwards-incompatible changes

TBD

Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

packages/services/test/config/config.spec.ts Fixed Show fixed Hide fixed
buildutils/src/local-repository.ts Fixed Show fixed Hide fixed
buildutils/src/local-repository.ts Fixed Show fixed Hide fixed
buildutils/src/local-repository.ts Fixed Show fixed Hide fixed
buildutils/src/local-repository.ts Fixed Show fixed Hide fixed
@krassowski krassowski added this to the 4.3.0 milestone Apr 22, 2024
@@ -6,7 +6,7 @@
*/

import { PageConfig, URLExt } from '@jupyterlab/coreutils';
(window as any).__webpack_public_path__ = URLExt.join(
(window as unknown).__webpack_public_path__ = URLExt.join(
Copy link
Member Author

Choose a reason for hiding this comment

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

this will need reverting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment