summaryrefslogtreecommitdiff
path: root/docs/tools/linter.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tools/linter.md')
-rw-r--r--docs/tools/linter.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tools/linter.md b/docs/tools/linter.md
index fa8e4dd48..684da4a14 100644
--- a/docs/tools/linter.md
+++ b/docs/tools/linter.md
@@ -62,7 +62,7 @@ deno lint --unstable myfile1.ts myfile2.ts
#### Files
To ignore whole file `// deno-lint-ignore-file` directive should placed at the
-top of the file.
+top of the file:
```ts
// deno-lint-ignore-file
@@ -93,7 +93,7 @@ function foo(): any {
#### Diagnostics
To ignore certain diagnostic `// deno-lint-ignore <codes...>` directive should
-be placed before offending line. Specifying ignored rule name is required.
+be placed before offending line. Specifying ignored rule name is required:
```ts
// deno-lint-ignore no-explicit-any
@@ -109,7 +109,7 @@ function bar(a: any) {
To provide some compatibility with ESLint `deno lint` also supports
`// eslint-ignore-next-line` directive. Just like with `// deno-lint-ignore`,
-it's required to specify the ignored rule name.
+it's required to specify the ignored rule name:
```ts
// eslint-ignore-next-line no-empty