eslint-plugin-ember
eslint-plugin-ember copied to clipboard
no-array-prototype-extensions false positive Promsie.withResolvers
Reproduction
const resolvers = Promise.withResolvers();
resolvers.reject();
I don't know how to check for that though.
A workaround I know is this:
const resolvers = Promise.withResolvers();
resolvers.resolve(Promise.reject());