feat(lint): add support for --watch flag (#11983)

This commit is contained in:
CGQAQ 2021-10-06 05:07:38 +08:00 committed by GitHub
parent 22328f8758
commit c555b31d40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 189 additions and 55 deletions

View file

@ -531,16 +531,7 @@ async fn lint_command(
None
};
tools::lint::lint_files(
maybe_lint_config,
lint_flags.rules_tags,
lint_flags.rules_include,
lint_flags.rules_exclude,
lint_flags.files,
lint_flags.ignore,
lint_flags.json,
)
.await
tools::lint::lint(maybe_lint_config, lint_flags, flags.watch).await
}
async fn cache_command(