diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-10-26 13:36:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-26 13:36:13 +0100 |
| commit | aebbdd5cc2c75151be28c839878b0dee915147ef (patch) | |
| tree | 6e033a6adbc7b821626f7eab9c4391d6f6a9ab8d /cli/main.rs | |
| parent | 78429496e0625a68ccfdd215c7e240eddb3b5b66 (diff) | |
Revert "feat(lint): stabilize "deno lint" subcommand (#8075)" (#8128)
This reverts commit c5c48f845a4d25f064c4388fcdd4295317edf155.
Diffstat (limited to 'cli/main.rs')
| -rw-r--r-- | cli/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 382e76f23..2acdff57d 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -220,12 +220,16 @@ async fn install_command( } async fn lint_command( - _flags: Flags, + flags: Flags, files: Vec<PathBuf>, list_rules: bool, ignore: Vec<PathBuf>, json: bool, ) -> Result<(), AnyError> { + if !flags.unstable { + exit_unstable("lint"); + } + if list_rules { lint::print_rules_list(); return Ok(()); |
