eslint: investigate using eslint-plugin-promise
#1248
Labels
maintenance
Code refactoring, project structure, dev tooling (storybook, dev server, npm tasks...)
Context
It seems we're not using
eslint-plugin-promise
anymore.It is part of our dependencies but we have not enabled any rule yet.
With the migration to ESLint 9, we have removed this plugin from our dependencies but we should investigate rules that we want to enable / disable.
The recommended config contains some rules that trigger many errors in our code base which we don't really consider problematic.
For instance it forces us to always return something in
then
so that it can always be chained but there are plenty of cases where we don't really want / need to do that (for instancethis.updateComplete.then(() => ...)
).Investigating all rules & their impact in our code base required time I didn't have but when we do have this time we should definitely do it.
The text was updated successfully, but these errors were encountered: