From 44343a8aee2c1194992f55624b45e69c458b177d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 15 Sep 2020 10:02:19 +0200 Subject: docs(lint): ignore diagnostic in whole file (#7489) --- docs/tools/linter.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/tools') diff --git a/docs/tools/linter.md b/docs/tools/linter.md index 62174a600..b5646d71d 100644 --- a/docs/tools/linter.md +++ b/docs/tools/linter.md @@ -119,6 +119,16 @@ function foo(): any { } ``` +You can also ignore certain diagnostics in the whole file + +```ts +// deno-lint-ignore-file no-explicit-any no-empty + +function foo(): any { + // ... +} +``` + #### Diagnostics To ignore certain diagnostic `// deno-lint-ignore ` directive should -- cgit v1.2.3