Skip to content

Commit d306374

Browse files
authored
chore: Updated eslint configuration (newrelic#3740)
1 parent 105da3b commit d306374

File tree

9 files changed

+54
-59
lines changed

9 files changed

+54
-59
lines changed

THIRD_PARTY_NOTICES.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ This product includes source derived from [@grpc/proto-loader](https://github.co
722722

723723
### @newrelic/security-agent
724724

725-
This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v3.0.0](https://github.com/newrelic/csec-node-agent/tree/v3.0.0)), distributed under the [UNKNOWN License](https://github.com/newrelic/csec-node-agent/blob/v3.0.0/LICENSE):
725+
This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v3.0.1](https://github.com/newrelic/csec-node-agent/tree/v3.0.1)), distributed under the [UNKNOWN License](https://github.com/newrelic/csec-node-agent/blob/v3.0.1/LICENSE):
726726

727727
```
728728
## New Relic Software License v1.0
@@ -1186,7 +1186,7 @@ This product includes source derived from [@opentelemetry/api](https://github.co
11861186

11871187
### @opentelemetry/core
11881188

1189-
This product includes source derived from [@opentelemetry/core](https://github.com/open-telemetry/opentelemetry-js) ([v2.2.0](https://github.com/open-telemetry/opentelemetry-js/tree/v2.2.0)), distributed under the [Apache-2.0 License](https://github.com/open-telemetry/opentelemetry-js/blob/v2.2.0/LICENSE):
1189+
This product includes source derived from [@opentelemetry/core](https://github.com/open-telemetry/opentelemetry-js) ([v2.5.0](https://github.com/open-telemetry/opentelemetry-js/tree/v2.5.0)), distributed under the [Apache-2.0 License](https://github.com/open-telemetry/opentelemetry-js/blob/v2.5.0/LICENSE):
11901190

11911191
```
11921192
Apache License
@@ -1604,7 +1604,7 @@ This product includes source derived from [@opentelemetry/exporter-metrics-otlp-
16041604

16051605
### @opentelemetry/resources
16061606

1607-
This product includes source derived from [@opentelemetry/resources](https://github.com/open-telemetry/opentelemetry-js) ([v2.2.0](https://github.com/open-telemetry/opentelemetry-js/tree/v2.2.0)), distributed under the [Apache-2.0 License](https://github.com/open-telemetry/opentelemetry-js/blob/v2.2.0/LICENSE):
1607+
This product includes source derived from [@opentelemetry/resources](https://github.com/open-telemetry/opentelemetry-js) ([v2.5.0](https://github.com/open-telemetry/opentelemetry-js/tree/v2.5.0)), distributed under the [Apache-2.0 License](https://github.com/open-telemetry/opentelemetry-js/blob/v2.5.0/LICENSE):
16081608

16091609
```
16101610
Apache License
@@ -2022,7 +2022,7 @@ This product includes source derived from [@opentelemetry/sdk-logs](https://gith
20222022

20232023
### @opentelemetry/sdk-metrics
20242024

2025-
This product includes source derived from [@opentelemetry/sdk-metrics](https://github.com/open-telemetry/opentelemetry-js) ([v2.2.0](https://github.com/open-telemetry/opentelemetry-js/tree/v2.2.0)), distributed under the [Apache-2.0 License](https://github.com/open-telemetry/opentelemetry-js/blob/v2.2.0/LICENSE):
2025+
This product includes source derived from [@opentelemetry/sdk-metrics](https://github.com/open-telemetry/opentelemetry-js) ([v2.5.0](https://github.com/open-telemetry/opentelemetry-js/tree/v2.5.0)), distributed under the [Apache-2.0 License](https://github.com/open-telemetry/opentelemetry-js/blob/v2.5.0/LICENSE):
20262026

20272027
```
20282028
Apache License
@@ -2231,7 +2231,7 @@ This product includes source derived from [@opentelemetry/sdk-metrics](https://g
22312231

22322232
### @opentelemetry/sdk-trace-base
22332233

2234-
This product includes source derived from [@opentelemetry/sdk-trace-base](https://github.com/open-telemetry/opentelemetry-js) ([v2.2.0](https://github.com/open-telemetry/opentelemetry-js/tree/v2.2.0)), distributed under the [Apache-2.0 License](https://github.com/open-telemetry/opentelemetry-js/blob/v2.2.0/LICENSE):
2234+
This product includes source derived from [@opentelemetry/sdk-trace-base](https://github.com/open-telemetry/opentelemetry-js) ([v2.5.0](https://github.com/open-telemetry/opentelemetry-js/tree/v2.5.0)), distributed under the [Apache-2.0 License](https://github.com/open-telemetry/opentelemetry-js/blob/v2.5.0/LICENSE):
22352235

22362236
```
22372237
Apache License
@@ -2960,7 +2960,7 @@ SOFTWARE.
29602960

29612961
### @aws-sdk/client-s3
29622962

2963-
This product includes source derived from [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3) ([v3.958.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.958.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.958.0/LICENSE):
2963+
This product includes source derived from [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3) ([v3.982.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.982.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.982.0/LICENSE):
29642964

29652965
```
29662966
Apache License
@@ -3169,7 +3169,7 @@ This product includes source derived from [@aws-sdk/client-s3](https://github.co
31693169

31703170
### @aws-sdk/s3-request-presigner
31713171

3172-
This product includes source derived from [@aws-sdk/s3-request-presigner](https://github.com/aws/aws-sdk-js-v3) ([v3.958.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.958.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.958.0/LICENSE):
3172+
This product includes source derived from [@aws-sdk/s3-request-presigner](https://github.com/aws/aws-sdk-js-v3) ([v3.982.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.982.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.982.0/LICENSE):
31733173

31743174
```
31753175
Apache License
@@ -3407,7 +3407,7 @@ SOFTWARE.
34073407

34083408
### @newrelic/eslint-config
34093409

3410-
This product includes source derived from [@newrelic/eslint-config](https://github.com/newrelic/eslint-config-newrelic) ([v0.6.0](https://github.com/newrelic/eslint-config-newrelic/tree/v0.6.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/eslint-config-newrelic/blob/v0.6.0/LICENSE):
3410+
This product includes source derived from [@newrelic/eslint-config](https://github.com/newrelic/eslint-config-newrelic) ([v0.7.0](https://github.com/newrelic/eslint-config-newrelic/tree/v0.7.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/eslint-config-newrelic/blob/v0.7.0/LICENSE):
34113411

34123412
```
34133413
Apache License
@@ -5637,19 +5637,19 @@ MIT License
56375637
56385638
Copyright (c) <year> <copyright holders>
56395639
5640-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
5641-
associated documentation files (the "Software"), to deal in the Software without restriction, including
5642-
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5643-
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
5640+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
5641+
associated documentation files (the "Software"), to deal in the Software without restriction, including
5642+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5643+
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
56445644
following conditions:
56455645
5646-
The above copyright notice and this permission notice shall be included in all copies or substantial
5646+
The above copyright notice and this permission notice shall be included in all copies or substantial
56475647
portions of the Software.
56485648
5649-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
5650-
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
5651-
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
5652-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
5649+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
5650+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
5651+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
5652+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
56535653
USE OR OTHER DEALINGS IN THE SOFTWARE.
56545654
```
56555655

lib/llm-events/event.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
const { DESTINATIONS } = require('../config/attribute-filter')
99

1010
class BaseLlmEvent {
11-
// eslint-disable-next-line accessor-pairs
1211
set metadata(agent) {
1312
const transaction = agent.tracer.getTransaction()
1413
const attrs = transaction?.trace?.custom.get(DESTINATIONS.TRANS_SCOPE) || {}

lib/llm-events/langchain/event.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class LangChainEvent extends BaseEvent {
7272
}
7373
}
7474

75-
// eslint-disable-next-line accessor-pairs
7675
set langchainMeta(value) {
7776
if (isSimpleObject(value) === false) {
7877
return

lib/subscribers/amqplib/connect.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class ConnectSubscriber extends Subscriber {
6767

6868
addAttributes(segment) {
6969
for (let [key, value] of Object.entries(this.parameters)) {
70-
// eslint-disable-next-line sonarjs/updated-loop-counter
7170
key = key === 'port' ? 'port_path_or_id' : key
7271
segment.addAttribute(key, value)
7372
}

lib/subscribers/db.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,10 @@ class DbSubscriber extends Subscriber {
6262
}
6363

6464
if (key === this.hostKey && urltils.isLocalhost(value)) {
65-
// eslint-disable-next-line sonarjs/updated-loop-counter
6665
value = this.config.getHostnameSafe()
6766
}
6867

6968
if (key === this.dbNameKey && typeof value === 'number') {
70-
// eslint-disable-next-line sonarjs/updated-loop-counter
7169
value = String(value)
7270
}
7371

lib/util/label-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function truncate(str, max) {
121121
const chr = str.charCodeAt(i)
122122
if (chr >= 0xd800 && chr <= 0xdbff && i !== str.length) {
123123
// Handle UTF-16 surrogate pairs.
124-
// eslint-disable-next-line sonarjs/updated-loop-counter
124+
125125
i += 1
126126
}
127127

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
"@aws-sdk/client-s3": "^3.556.0",
236236
"@aws-sdk/s3-request-presigner": "^3.556.0",
237237
"@matteo.collina/tspl": "^0.1.1",
238-
"@newrelic/eslint-config": "^0.6.0",
238+
"@newrelic/eslint-config": "^0.7.0",
239239
"@newrelic/newrelic-oss-cli": "^0.1.2",
240240
"@newrelic/test-utilities": "^10.0.0",
241241
"@octokit/rest": "^18.0.15",

test/integration/distributed-tracing/custom-assertions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function exact(object, fixture) {
4040
// value to check for. Our Transaction expects a string value. Instead
4141
// of mutating the `Tracestate` object after it is created in the test,
4242
// we re-define the fixture value in-place.
43-
// eslint-disable-next-line sonarjs/updated-loop-counter
43+
4444
fixtureValue = 'App'
4545
}
4646

third_party_manifest.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"lastUpdated": "Tue Jan 06 2026 16:21:17 GMT+0530 (India Standard Time)",
2+
"lastUpdated": "Wed Feb 11 2026 09:42:58 GMT-0500 (Eastern Standard Time)",
33
"projectName": "New Relic Node Agent",
44
"projectUrl": "https://github.com/newrelic/node-newrelic",
55
"includeOptDeps": true,
@@ -79,15 +79,15 @@
7979
"licenseTextSource": "file",
8080
"publisher": "Google Inc."
8181
},
82-
"@newrelic/security-agent@3.0.0": {
82+
"@newrelic/security-agent@3.0.1": {
8383
"name": "@newrelic/security-agent",
84-
"version": "3.0.0",
84+
"version": "3.0.1",
8585
"range": "^3.0.0",
8686
"licenses": "UNKNOWN",
8787
"repoUrl": "https://github.com/newrelic/csec-node-agent",
88-
"versionedRepoUrl": "https://github.com/newrelic/csec-node-agent/tree/v3.0.0",
88+
"versionedRepoUrl": "https://github.com/newrelic/csec-node-agent/tree/v3.0.1",
8989
"licenseFile": "node_modules/@newrelic/security-agent/LICENSE",
90-
"licenseUrl": "https://github.com/newrelic/csec-node-agent/blob/v3.0.0/LICENSE",
90+
"licenseUrl": "https://github.com/newrelic/csec-node-agent/blob/v3.0.1/LICENSE",
9191
"licenseTextSource": "file",
9292
"publisher": "newrelic"
9393
},
@@ -115,15 +115,15 @@
115115
"licenseTextSource": "file",
116116
"publisher": "OpenTelemetry Authors"
117117
},
118-
"@opentelemetry/core@2.2.0": {
118+
"@opentelemetry/core@2.5.0": {
119119
"name": "@opentelemetry/core",
120-
"version": "2.2.0",
120+
"version": "2.5.0",
121121
"range": "^2.0.0",
122122
"licenses": "Apache-2.0",
123123
"repoUrl": "https://github.com/open-telemetry/opentelemetry-js",
124-
"versionedRepoUrl": "https://github.com/open-telemetry/opentelemetry-js/tree/v2.2.0",
124+
"versionedRepoUrl": "https://github.com/open-telemetry/opentelemetry-js/tree/v2.5.0",
125125
"licenseFile": "node_modules/@opentelemetry/core/LICENSE",
126-
"licenseUrl": "https://github.com/open-telemetry/opentelemetry-js/blob/v2.2.0/LICENSE",
126+
"licenseUrl": "https://github.com/open-telemetry/opentelemetry-js/blob/v2.5.0/LICENSE",
127127
"licenseTextSource": "file",
128128
"publisher": "OpenTelemetry Authors"
129129
},
@@ -139,15 +139,15 @@
139139
"licenseTextSource": "file",
140140
"publisher": "OpenTelemetry Authors"
141141
},
142-
"@opentelemetry/resources@2.2.0": {
142+
"@opentelemetry/resources@2.5.0": {
143143
"name": "@opentelemetry/resources",
144-
"version": "2.2.0",
144+
"version": "2.5.0",
145145
"range": "^2.0.1",
146146
"licenses": "Apache-2.0",
147147
"repoUrl": "https://github.com/open-telemetry/opentelemetry-js",
148-
"versionedRepoUrl": "https://github.com/open-telemetry/opentelemetry-js/tree/v2.2.0",
148+
"versionedRepoUrl": "https://github.com/open-telemetry/opentelemetry-js/tree/v2.5.0",
149149
"licenseFile": "node_modules/@opentelemetry/resources/LICENSE",
150-
"licenseUrl": "https://github.com/open-telemetry/opentelemetry-js/blob/v2.2.0/LICENSE",
150+
"licenseUrl": "https://github.com/open-telemetry/opentelemetry-js/blob/v2.5.0/LICENSE",
151151
"licenseTextSource": "file",
152152
"publisher": "OpenTelemetry Authors"
153153
},
@@ -163,27 +163,27 @@
163163
"licenseTextSource": "file",
164164
"publisher": "OpenTelemetry Authors"
165165
},
166-
"@opentelemetry/sdk-metrics@2.2.0": {
166+
"@opentelemetry/sdk-metrics@2.5.0": {
167167
"name": "@opentelemetry/sdk-metrics",
168-
"version": "2.2.0",
168+
"version": "2.5.0",
169169
"range": "^2.0.1",
170170
"licenses": "Apache-2.0",
171171
"repoUrl": "https://github.com/open-telemetry/opentelemetry-js",
172-
"versionedRepoUrl": "https://github.com/open-telemetry/opentelemetry-js/tree/v2.2.0",
172+
"versionedRepoUrl": "https://github.com/open-telemetry/opentelemetry-js/tree/v2.5.0",
173173
"licenseFile": "node_modules/@opentelemetry/sdk-metrics/LICENSE",
174-
"licenseUrl": "https://github.com/open-telemetry/opentelemetry-js/blob/v2.2.0/LICENSE",
174+
"licenseUrl": "https://github.com/open-telemetry/opentelemetry-js/blob/v2.5.0/LICENSE",
175175
"licenseTextSource": "file",
176176
"publisher": "OpenTelemetry Authors"
177177
},
178-
"@opentelemetry/sdk-trace-base@2.2.0": {
178+
"@opentelemetry/sdk-trace-base@2.5.0": {
179179
"name": "@opentelemetry/sdk-trace-base",
180-
"version": "2.2.0",
180+
"version": "2.5.0",
181181
"range": "^2.0.0",
182182
"licenses": "Apache-2.0",
183183
"repoUrl": "https://github.com/open-telemetry/opentelemetry-js",
184-
"versionedRepoUrl": "https://github.com/open-telemetry/opentelemetry-js/tree/v2.2.0",
184+
"versionedRepoUrl": "https://github.com/open-telemetry/opentelemetry-js/tree/v2.5.0",
185185
"licenseFile": "node_modules/@opentelemetry/sdk-trace-base/LICENSE",
186-
"licenseUrl": "https://github.com/open-telemetry/opentelemetry-js/blob/v2.2.0/LICENSE",
186+
"licenseUrl": "https://github.com/open-telemetry/opentelemetry-js/blob/v2.5.0/LICENSE",
187187
"licenseTextSource": "file",
188188
"publisher": "OpenTelemetry Authors"
189189
},
@@ -333,28 +333,28 @@
333333
}
334334
},
335335
"devDependencies": {
336-
"@aws-sdk/client-s3@3.958.0": {
336+
"@aws-sdk/client-s3@3.982.0": {
337337
"name": "@aws-sdk/client-s3",
338-
"version": "3.958.0",
338+
"version": "3.982.0",
339339
"range": "^3.556.0",
340340
"licenses": "Apache-2.0",
341341
"repoUrl": "https://github.com/aws/aws-sdk-js-v3",
342-
"versionedRepoUrl": "https://github.com/aws/aws-sdk-js-v3/tree/v3.958.0",
342+
"versionedRepoUrl": "https://github.com/aws/aws-sdk-js-v3/tree/v3.982.0",
343343
"licenseFile": "node_modules/@aws-sdk/client-s3/LICENSE",
344-
"licenseUrl": "https://github.com/aws/aws-sdk-js-v3/blob/v3.958.0/LICENSE",
344+
"licenseUrl": "https://github.com/aws/aws-sdk-js-v3/blob/v3.982.0/LICENSE",
345345
"licenseTextSource": "file",
346346
"publisher": "AWS SDK for JavaScript Team",
347347
"url": "https://aws.amazon.com/javascript/"
348348
},
349-
"@aws-sdk/s3-request-presigner@3.958.0": {
349+
"@aws-sdk/s3-request-presigner@3.982.0": {
350350
"name": "@aws-sdk/s3-request-presigner",
351-
"version": "3.958.0",
351+
"version": "3.982.0",
352352
"range": "^3.556.0",
353353
"licenses": "Apache-2.0",
354354
"repoUrl": "https://github.com/aws/aws-sdk-js-v3",
355-
"versionedRepoUrl": "https://github.com/aws/aws-sdk-js-v3/tree/v3.958.0",
355+
"versionedRepoUrl": "https://github.com/aws/aws-sdk-js-v3/tree/v3.982.0",
356356
"licenseFile": "node_modules/@aws-sdk/s3-request-presigner/LICENSE",
357-
"licenseUrl": "https://github.com/aws/aws-sdk-js-v3/blob/v3.958.0/LICENSE",
357+
"licenseUrl": "https://github.com/aws/aws-sdk-js-v3/blob/v3.982.0/LICENSE",
358358
"licenseTextSource": "file",
359359
"publisher": "AWS SDK for JavaScript Team",
360360
"url": "https://aws.amazon.com/javascript/"
@@ -372,15 +372,15 @@
372372
"publisher": "Matteo Collina",
373373
"email": "hello@matteocollina.com"
374374
},
375-
"@newrelic/eslint-config@0.6.0": {
375+
"@newrelic/eslint-config@0.7.0": {
376376
"name": "@newrelic/eslint-config",
377-
"version": "0.6.0",
378-
"range": "^0.6.0",
377+
"version": "0.7.0",
378+
"range": "^0.7.0",
379379
"licenses": "Apache-2.0",
380380
"repoUrl": "https://github.com/newrelic/eslint-config-newrelic",
381-
"versionedRepoUrl": "https://github.com/newrelic/eslint-config-newrelic/tree/v0.6.0",
381+
"versionedRepoUrl": "https://github.com/newrelic/eslint-config-newrelic/tree/v0.7.0",
382382
"licenseFile": "node_modules/@newrelic/eslint-config/LICENSE",
383-
"licenseUrl": "https://github.com/newrelic/eslint-config-newrelic/blob/v0.6.0/LICENSE",
383+
"licenseUrl": "https://github.com/newrelic/eslint-config-newrelic/blob/v0.7.0/LICENSE",
384384
"licenseTextSource": "file",
385385
"publisher": "New Relic Node.js agent team",
386386
"email": "nodejs@newrelic.com"

0 commit comments

Comments
 (0)