mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
docs(lint): ignore diagnostic in whole file (#7489)
This commit is contained in:
parent
f5c84920c2
commit
44343a8aee
1 changed files with 10 additions and 0 deletions
|
@ -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
|
#### Diagnostics
|
||||||
|
|
||||||
To ignore certain diagnostic `// deno-lint-ignore <codes...>` directive should
|
To ignore certain diagnostic `// deno-lint-ignore <codes...>` directive should
|
||||||
|
|
Loading…
Reference in a new issue