diff options
author | YellowBird <70329111+piyota6@users.noreply.github.com> | 2020-09-02 19:03:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 12:03:35 +0200 |
commit | 5db200b6abcf335b9caad94c4992aac8a04d6caf (patch) | |
tree | 58ac6454eec4a62fcd32d822e9000fc6c1391974 | |
parent | fe47da9f2334ed962743614fc3caad27902741af (diff) |
fix(docs): replace "eslint-ignore-" with "eslint-disable-" (#7319)
-rw-r--r-- | cli/flags.rs | 2 | ||||
-rw-r--r-- | docs/tools/linter.md | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 3fcae5a81..c5d0532a3 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -1031,7 +1031,7 @@ rule name: Names of rules to ignore must be specified after ignore comment. 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: // deno-lint-ignore-file diff --git a/docs/tools/linter.md b/docs/tools/linter.md index e2f1906b0..9f3400682 100644 --- a/docs/tools/linter.md +++ b/docs/tools/linter.md @@ -131,14 +131,14 @@ 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`, +`// eslint-disable-next-line` directive. Just like with `// deno-lint-ignore`, it's required to specify the ignored rule name: ```ts -// eslint-ignore-next-line no-empty +// eslint-disable-next-line no-empty while (true) {} -// eslint-ignore-next-line @typescript-eslint/no-explicit-any +// eslint-disable-next-line @typescript-eslint/no-explicit-any function bar(a: any) { // ... } |