From fa65e49bc689b2b84a3fa2dd123fa616f430f7fe Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Mon, 31 Aug 2020 20:53:42 +0900 Subject: feat(lint): Add support for reading input from stdin (#7263) --- docs/tools/linter.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/tools/linter.md') diff --git a/docs/tools/linter.md b/docs/tools/linter.md index 22931a1c4..e2f1906b0 100644 --- a/docs/tools/linter.md +++ b/docs/tools/linter.md @@ -10,8 +10,14 @@ flag** deno lint --unstable # lint specific files deno lint --unstable myfile1.ts myfile2.ts +# print result as JSON +deno lint --unstable --json +# read from stdin +cat file.ts | deno lint --unstable - ``` +For more detail, run `deno lint --help`. + ### Available rules - `adjacent-overload-signatures` -- cgit v1.2.3