Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rule S4822 ('no-try-promise') for TS #1704

Merged
merged 2 commits into from
Oct 29, 2019
Merged

Add rule S4822 ('no-try-promise') for TS #1704

merged 2 commits into from
Oct 29, 2019

Conversation

yassin-kammoun-sonarsource
Copy link
Contributor

Fixes #1533

@@ -0,0 +1,129 @@
function returningPromise() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not have entire unit test the rule here. The point of this test is just to make sure rule is executed normally.
Could you keep only couple main cases?

@vilchik-elena vilchik-elena merged commit c72cae2 into master Oct 29, 2019
@vilchik-elena vilchik-elena deleted the issue-1533 branch October 29, 2019 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add rule S4822 ('no-try-promise') for TS
2 participants