mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
fix(docs): replace "eslint-ignore-" with "eslint-disable-" (#7319)
This commit is contained in:
parent
fe47da9f23
commit
5db200b6ab
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue