diff options
| author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-08-31 20:53:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 13:53:42 +0200 |
| commit | fa65e49bc689b2b84a3fa2dd123fa616f430f7fe (patch) | |
| tree | 7b744a69c76d444cf59f7a0d078b48127c11bee1 /cli/tests/lint | |
| parent | a451a97486e4cd9c311cef2c016137dcff672522 (diff) | |
feat(lint): Add support for reading input from stdin (#7263)
Diffstat (limited to 'cli/tests/lint')
| -rw-r--r-- | cli/tests/lint/expected_from_stdin.out | 2 | ||||
| -rw-r--r-- | cli/tests/lint/expected_from_stdin_json.out | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/cli/tests/lint/expected_from_stdin.out b/cli/tests/lint/expected_from_stdin.out new file mode 100644 index 000000000..02b9d917c --- /dev/null +++ b/cli/tests/lint/expected_from_stdin.out @@ -0,0 +1,2 @@ +[WILDCARD] +Found 1 problem diff --git a/cli/tests/lint/expected_from_stdin_json.out b/cli/tests/lint/expected_from_stdin_json.out new file mode 100644 index 000000000..bec566841 --- /dev/null +++ b/cli/tests/lint/expected_from_stdin_json.out @@ -0,0 +1,16 @@ +{ + "diagnostics": [ + { + "location": { + "line": 1, + "col": 7 + }, + "filename": "_stdin.ts", + "message": "`any` type is not allowed", + "code": "no-explicit-any", + "line_src": "let a: any;", + "snippet_length": 3 + } + ], + "errors": [] +} |
