Skip to content

Commit 97d8ae2

Browse files
committed
further fixes
1 parent b3d0b0e commit 97d8ae2

File tree

3 files changed

+9
-27
lines changed

3 files changed

+9
-27
lines changed

cli/tsc/dts/lib.deno.unstable.d.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -1423,8 +1423,12 @@ declare namespace Deno {
14231423
* export default {
14241424
* name: "my-plugin",
14251425
* rules: {
1426-
* TODO:...
1427-
* }
1426+
* "no-foo": {
1427+
* create(ctx) {
1428+
* // ...
1429+
* }
1430+
* }
1431+
* }
14281432
* } satisfies Deno.lint.Plugin
14291433
* ```
14301434
* @category Linter

tests/unit/lint_plugin_test.ts

+2-24
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,14 @@
33
import { assertEquals } from "./test_util.ts";
44
import { assertSnapshot } from "@std/testing/snapshot";
55

6-
// TODO(@marvinhagemeister) Remove once we land "official" types
7-
export interface LintReportData {
8-
// deno-lint-ignore no-explicit-any
9-
node: any;
10-
message: string;
11-
}
12-
// TODO(@marvinhagemeister) Remove once we land "official" types
13-
interface LintContext {
14-
id: string;
15-
}
166
// TODO(@marvinhagemeister) Remove once we land "official" types
177
// deno-lint-ignore no-explicit-any
188
type LintVisitor = Record<string, (node: any) => void>;
199

20-
// TODO(@marvinhagemeister) Remove once we land "official" types
21-
interface LintRule {
22-
create(ctx: LintContext): LintVisitor;
23-
destroy?(): void;
24-
}
25-
26-
// TODO(@marvinhagemeister) Remove once we land "official" types
27-
interface LintPlugin {
28-
name: string;
29-
rules: Record<string, LintRule>;
30-
}
31-
3210
function testPlugin(
3311
source: string,
34-
rule: LintRule,
35-
): Deno.lint.LintDiagnostic[] {
12+
rule: Deno.lint.Rule,
13+
): Deno.lint.Diagnostic[] {
3614
const plugin = {
3715
name: "test-plugin",
3816
rules: {

tests/unit/ops_test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2018-2025 the Deno authors. MIT license.
22

3-
const EXPECTED_OP_COUNT = 13;
3+
const EXPECTED_OP_COUNT = 16;
44

55
Deno.test(function checkExposedOps() {
66
// @ts-ignore TS doesn't allow to index with symbol

0 commit comments

Comments
 (0)