diff options
-rw-r--r-- | docs/tools/linter.md | 10 |
1 files changed, 10 insertions, 0 deletions
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 <codes...>` directive should |