Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix FP S3699 (no-use-of-empty-return-value): Ignore ambient functions #4579

Closed
yassin-kammoun-sonarsource opened this issue Feb 22, 2024 · 0 comments · Fixed by SonarSource/eslint-plugin-sonarjs#451
Labels
type: false positive Issue is reported when it should NOT be

Comments

@yassin-kammoun-sonarsource
Copy link
Contributor

The rule is reporting false positives on TypeScript ambient functions:

declare function foo(bar: number): number;
let x = foo(42); // False positive

https://community.sonarsource.com/t/typescript-false-positive-for-typescript-s3699-when-using-declare-function/109601

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: false positive Issue is reported when it should NOT be
Projects
None yet
1 participant