summaryrefslogtreecommitdiff
path: root/docs/tools/linter.md
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-10-26 13:36:13 +0100
committerGitHub <noreply@github.com>2020-10-26 13:36:13 +0100
commitaebbdd5cc2c75151be28c839878b0dee915147ef (patch)
tree6e033a6adbc7b821626f7eab9c4391d6f6a9ab8d /docs/tools/linter.md
parent78429496e0625a68ccfdd215c7e240eddb3b5b66 (diff)
Revert "feat(lint): stabilize "deno lint" subcommand (#8075)" (#8128)
This reverts commit c5c48f845a4d25f064c4388fcdd4295317edf155.
Diffstat (limited to 'docs/tools/linter.md')
-rw-r--r--docs/tools/linter.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/tools/linter.md b/docs/tools/linter.md
index fffff0cb2..b5646d71d 100644
--- a/docs/tools/linter.md
+++ b/docs/tools/linter.md
@@ -2,15 +2,18 @@
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
+deno lint --unstable
# lint specific files
-deno lint myfile1.ts myfile2.ts
-# read from stdin
-cat file.ts | deno lint -
-# print result as JSON (output is subject to change hence --unstable flag)
+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`.