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

feat(unstable/lint): no-slow-types for JSR packages #22430

Merged
merged 16 commits into from Feb 19, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Feb 16, 2024

  1. Renames zap/fast-check to instead be a no-slow-types lint rule.
    1. This lint rule is automatically run when doing deno lint for packages (deno.json files with a name, version, and exports field)
  2. This lint rules still occurs on publish. It can be skipped by running with --no-slow-types

@dsherret dsherret marked this pull request as ready for review February 16, 2024 14:17
Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

Great!

Can you add the scary warning when a user specifies the allow flag?

Can you also open an issue for showing these in the LSP?

cli/tools/registry/diagnostics.rs Outdated Show resolved Hide resolved
cli/tools/registry/mod.rs Show resolved Hide resolved
);
if !any_pkg_had_diagnostics {
// this is a temporary measure until we know that fast check is reliable and stable
let check_diagnostics = type_checker
Copy link
Member

Choose a reason for hiding this comment

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

We should probably also run a type check before publish (without fast check) - let's do that in a follow up. And the if the user passes --no-check we should maybe also ignore the fast check verification type check

@dsherret
Copy link
Member Author

Good feedback. Thanks! I opened #22437

cli/tools/registry/diagnostics.rs Outdated Show resolved Hide resolved
@dsherret dsherret enabled auto-merge (squash) February 19, 2024 14:39
@dsherret dsherret merged commit 6642403 into denoland:main Feb 19, 2024
17 checks passed
@dsherret dsherret deleted the lint_no_slow_types branch February 19, 2024 16:29
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.

None yet

2 participants