From c5c48f845a4d25f064c4388fcdd4295317edf155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 22 Oct 2020 21:52:37 +0200 Subject: feat(lint): stabilize "deno lint" subcommand (#8075) This commit stabilizes "deno lint" by removing the need to pass --unstable flag. --unstable is still required when using --json flag. --- docs/tools/linter.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'docs/tools') diff --git a/docs/tools/linter.md b/docs/tools/linter.md index b5646d71d..fffff0cb2 100644 --- a/docs/tools/linter.md +++ b/docs/tools/linter.md @@ -2,18 +2,15 @@ Deno ships with a built in code linter for JavaScript and TypeScript. -**Note: linter is a new feature and still unstable thus it requires `--unstable` -flag** - ```shell # lint all JS/TS files in the current directory and subdirectories -deno lint --unstable +deno lint # lint specific files -deno lint --unstable myfile1.ts myfile2.ts -# print result as JSON -deno lint --unstable --json +deno lint myfile1.ts myfile2.ts # read from stdin -cat file.ts | deno lint --unstable - +cat file.ts | deno lint - +# print result as JSON (output is subject to change hence --unstable flag) +deno lint --unstable --json ``` For more detail, run `deno lint --help`. -- cgit v1.2.3