We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version: canary
import { assertEquals } from "jsr:@std/[email protected]"; Deno.test("not-eq", () => { const diagnostics = Deno.lint.runPlugin( { name: "test", rules: { "rule": { create: (ctx) => ({ BinaryExpression(node) { console.log(node); if (node.operator === "!==") { ctx.report({ node, message: "Unexpected !==" }); } }, }), }, }, }, "test.ts", "1 !== 2", ); assertEquals(diagnostics.length, 1); });
Run with deno test.
The text was updated successfully, but these errors were encountered:
Also I just realized node is optional in arguments to report but it crashes if you forget it. nevermind, that's because there's also range
node
report
range
Sorry, something went wrong.
!==
!=
Thanks for reporting these issues! Opened PRs to fix these and they should be merged soon.
fix(unstable): lint plugin !== wrongly parsed as != (#28403)
be73f11
That's an emberassing typo. The `!==` operator was wrongly converted to `!=`. Fixes #28397
marvinhagemeister
Successfully merging a pull request may close this issue.
Version: canary
Run with deno test.
The text was updated successfully, but these errors were encountered: