We use the no-floating-promises rule with the ignoreVoid option. This allows us to use the void keyword to explicitly mark promises as intentionally not awaited and can be handy when we want to allow a promise to raise without handling at a certain layer of the application.
We use the no-floating-promises rule with the
ignoreVoid
option. This allows us to use the void keyword to explicitly mark promises as intentionally not awaited and can be handy when we want to allow a promise to raise without handling at a certain layer of the application.This conflicts with our
no-void
rule which disallows the void keyword entirely. Per the documentation for the no-floating-promises ignoreVoid rule:This commit turns on this option so we can now use promises with the "void" keyword.
Before:
Now: