1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

fix(docs): replace "eslint-ignore-" with "eslint-disable-" (#7319)

This commit is contained in:
YellowBird 2020-09-02 19:03:35 +09:00 committed by GitHub
parent fe47da9f23
commit 5db200b6ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1031,7 +1031,7 @@ rule name:
Names of rules to ignore must be specified after ignore comment. Names of rules to ignore must be specified after ignore comment.
ESLint ignore comments are also supported: ESLint ignore comments are also supported:
// eslint-ignore-next-line @typescrit-eslint/no-explicit-any no-empty // eslint-disable-next-line @typescrit-eslint/no-explicit-any no-empty
Ignore linting a file by adding an ignore comment at the top of the file: Ignore linting a file by adding an ignore comment at the top of the file:
// deno-lint-ignore-file // deno-lint-ignore-file

View file

@ -131,14 +131,14 @@ function bar(a: any) {
``` ```
To provide some compatibility with ESLint `deno lint` also supports To provide some compatibility with ESLint `deno lint` also supports
`// eslint-ignore-next-line` directive. Just like with `// deno-lint-ignore`, `// eslint-disable-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 ```ts
// eslint-ignore-next-line no-empty // eslint-disable-next-line no-empty
while (true) {} while (true) {}
// eslint-ignore-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
function bar(a: any) { function bar(a: any) {
// ... // ...
} }