chore: add no-unused-expressions lint rule#7007
Merged
Conversation
Contributor
Overall package sizeSelf size: 4.56 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.6 | 81.92 kB | 813.08 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7007 +/- ##
==========================================
+ Coverage 80.40% 80.41% +0.01%
==========================================
Files 732 732
Lines 31050 31050
==========================================
+ Hits 24965 24970 +5
+ Misses 6085 6080 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This comment has been minimized.
This comment has been minimized.
simon-id
commented
Dec 2, 2025
BridgeAR
reviewed
Dec 2, 2025
rochdev
previously approved these changes
Dec 2, 2025
watson
reviewed
Dec 3, 2025
Member
|
Ping @simon-id |
Co-authored-by: Thomas Watson <[email protected]>
61593c8 to
4be72bd
Compare
simon-id
commented
Feb 3, 2026
packages/datadog-plugin-azure-functions/test/integration-test/eventhubs-test/eventhubs.spec.js
Show resolved
Hide resolved
simon-id
commented
Feb 4, 2026
BridgeAR
approved these changes
Feb 4, 2026
dd-octo-sts bot
pushed a commit
that referenced
this pull request
Feb 5, 2026
Azure functions was in some circumstances attaching the span to a parent span instead of acting as a root span by missing a return statement. Mariadb v2 did not track promise errors in all cases. This was detected by adding the no-unused-expressions lint rule. To address confusion, JSDoc was added about childOf being `null` and its meaning. In addition, the azure tests are now using the latest version again, since their library fixed the former support range issue. The void is now allowed as statement to address issues around e.g., `error.stack` access for triggering the stack calculation.
Merged
BridgeAR
pushed a commit
that referenced
this pull request
Feb 5, 2026
Azure functions was in some circumstances attaching the span to a parent span instead of acting as a root span by missing a return statement. Mariadb v2 did not track promise errors in all cases. This was detected by adding the no-unused-expressions lint rule. To address confusion, JSDoc was added about childOf being `null` and its meaning. In addition, the azure tests are now using the latest version again, since their library fixed the former support range issue. The void is now allowed as statement to address issues around e.g., `error.stack` access for triggering the stack calculation.
bm1549
pushed a commit
that referenced
this pull request
Feb 10, 2026
Azure functions was in some circumstances attaching the span to a parent span instead of acting as a root span by missing a return statement. Mariadb v2 did not track promise errors in all cases. This was detected by adding the no-unused-expressions lint rule. To address confusion, JSDoc was added about childOf being `null` and its meaning. In addition, the azure tests are now using the latest version again, since their library fixed the former support range issue. The void is now allowed as statement to address issues around e.g., `error.stack` access for triggering the stack calculation.
BridgeAR
pushed a commit
that referenced
this pull request
Feb 22, 2026
Azure functions was in some circumstances attaching the span to a parent span instead of acting as a root span by missing a return statement. Mariadb v2 did not track promise errors in all cases. This was detected by adding the no-unused-expressions lint rule. To address confusion, JSDoc was added about childOf being `null` and its meaning. In addition, the azure tests are now using the latest version again, since their library fixed the former support range issue. The void is now allowed as statement to address issues around e.g., `error.stack` access for triggering the stack calculation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Add the eslint rule
no-unused-expressions, it prevents stuff like:It also allows the use of the
voidoperator, to explicitly allow statements with only side effects.Motivation
Mistakes have been made in previous PRs that could have been prevented with this rule.