-
Notifications
You must be signed in to change notification settings - Fork 3
Description
In our project using NestJS, we call methods that return observables which will definitely have a value.
Example: https://github.com/nestjs/axios/blob/5299e053ab61f9f9c9b3cb3f75d822133c91c9df/lib/http.service.ts#L143-L144
There are surely also other similar cases.
We would like to keep the rule no-ignored-default-value
enabled to catch custom observables while also avoid having to disable it for every safe usage.
To achieve this, we would like to configure a set of allowed methods that should be ignored by this rule.
I'm not sure how to achieve this best without risking false negatives, maybe using regex patterns.
The rule eslint-plugin-jest/expect-expect
does something similar: https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/expect-expect.md#assertfunctionnames