Skip to content

Commit aacc150

Browse files
authored
chore: Updated eslint configuration on next (#3311)
1 parent 77f5709 commit aacc150

File tree

99 files changed

+1981
-2436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1981
-2436
lines changed

THIRD_PARTY_NOTICES.md

Lines changed: 8 additions & 249 deletions
Large diffs are not rendered by default.

bin/compare-bench-results.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ const reportResults = async (resultFiles) => {
128128
const iterate = async () => {
129129
const files = process.argv.slice(2)
130130
const results = await Promise.all(
131-
files.map(async (file) => {
132-
return await processFile(file)
133-
})
131+
files.map(async (file) => await processFile(file))
134132
)
135133
reportResults(results)
136134
}

bin/git-commands.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ async function getPushRemotes() {
3232

3333
async function getLocalChanges() {
3434
const stdout = await execAsPromise('git status --short --porcelain')
35-
return stdout.split('\n').filter((line) => {
36-
return line.length > 0 && !line.includes(AGENT_SUB_REPO || DOCS_SUB_REPO)
37-
})
35+
return stdout.split('\n').filter((line) => line.length > 0 && !line.includes(AGENT_SUB_REPO || DOCS_SUB_REPO))
3836
}
3937

4038
async function getCurrentBranch() {

bin/github.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ class Github {
6666
page: pageNum
6767
})
6868

69-
const found = result.data.find((tag) => {
70-
return tag.name === name
71-
})
69+
const found = result.data.find((tag) => tag.name === name)
7270

7371
if (found) {
7472
return found
@@ -111,9 +109,7 @@ class Github {
111109
page: pageNum
112110
})
113111

114-
const mergedPrs = result.data.filter((pr) => {
115-
return pr.merged_at && new Date(pr.merged_at) > comparisonDate
116-
})
112+
const mergedPrs = result.data.filter((pr) => pr.merged_at && new Date(pr.merged_at) > comparisonDate)
117113

118114
mergedPullRequests.push(...mergedPrs)
119115
// Since we are going by 'updated' on query but merged on filter,

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ logger.info(
2828
)
2929
const path = require('node:path')
3030
const Module = require('node:module')
31-
const otelPackages = Object.keys(pkgJSON.dependencies).filter(d => d.startsWith('@opentelemetry'))
31+
const otelPackages = Object.keys(pkgJSON.dependencies).filter((d) => d.startsWith('@opentelemetry'))
3232
const otelRequire = Module.createRequire(path.join(__dirname, __filename))
3333

3434
if (require.cache.__NR_cache) {

lib/agent.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ function Agent(config) {
267267
periodMs: config.event_harvest_config.report_period_ms,
268268
limit: config.event_harvest_config.harvest_limits.log_event_data,
269269
config,
270-
enabled: (config) =>
271-
config.application_logging.enabled && config.application_logging.forwarding.enabled
270+
enabled: (config) => config.application_logging.enabled && config.application_logging.forwarding.enabled
272271
},
273272
this
274273
)

0 commit comments

Comments
 (0)