Tinkoff / linters

Tinkoff ESlint, Stylelint and Prettier linter configurations
Apache License 2.0
124 stars 24 forks source link

feat(eslint-config-angular): allow ignoring by void #218

Closed zy2ba closed 1 year ago

zy2ba commented 1 year ago

floating promises may be ignored by adding leading "void" keyword

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

Trying to ignore floating promises like this:

void this.router.navigate(['']);

throws error from no-void rule

What is the new behavior?

no-void rule allow usage as statement

Does this PR introduce a breaking change?