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

Deno.lint.* is not disabled in REPL #28264

Open
lucacasonato opened this issue Feb 24, 2025 · 0 comments
Open

Deno.lint.* is not disabled in REPL #28264

lucacasonato opened this issue Feb 24, 2025 · 0 comments
Labels
cli related to cli/ dir lint Issues related to deno lint

Comments

@lucacasonato
Copy link
Member

lucacasonato commented Feb 24, 2025

Version: Deno 2.2.1

> const plugin = {
  name: "test-plugin",
  rules: {
    testRule: {
      create() {
        return {};
      },
    },
  },
};

Deno.lint.runPlugin(plugin, "source.ts", "export default {}");

Uncaught TypeError: op_lint_create_serialized_ast is not a function
    at Object.runLintPlugin [as runPlugin] (ext:cli/40_lint.js:1371:27)
    at <anonymous>:11:11

I am expecting:

Error: `Deno.lint.runPlugin` is only available in `deno test` subcommand.
@lucacasonato lucacasonato added lint Issues related to deno lint cli related to cli/ dir labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli related to cli/ dir lint Issues related to deno lint
Projects
None yet
Development

No branches or pull requests

1 participant