Skip to content

Commit f2f650b

Browse files
authored
ESLint: Require 'use strict' header (#5334)
* Fix issues related to adding strict-mode These issues are either just a different behavior in strict-mode, changes to tests that expect specific lines, or hiding real errors.
1 parent 1f4d857 commit f2f650b

File tree

386 files changed

+735
-47
lines changed

Some content is hidden

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

386 files changed

+735
-47
lines changed

benchmark/sirun/appsec-iast/insecure-bank.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const http = require('http')
24
const app = require('/opt/insecure-bank-js/app') // eslint-disable-line import/no-absolute-path
35

benchmark/sirun/appsec/insecure-bank.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const http = require('http')
24
const app = require('/opt/insecure-bank-js/app') // eslint-disable-line import/no-absolute-path
35

benchmark/sirun/encoding/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const {
24
ENCODER_VERSION
35
} = process.env

benchmark/sirun/gc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const { createHistogram, PerformanceObserver } = require('perf_hooks')
24
if (createHistogram) {
35
const StatsD = require('./statsd')

benchmark/sirun/means.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
/* eslint-disable no-console */
24

35
const chunks = []

benchmark/sirun/scope/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const {
24
DD_TRACE_SCOPE,
35
COUNT

benchmark/sirun/shimmer-runtime/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
/* eslint-disable require-await */
24

35
const shimmer = require('../../../packages/datadog-shimmer')

benchmark/sirun/shimmer-startup/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
/* eslint-disable require-await */
24

35
const shimmer = require('../../../packages/datadog-shimmer')

benchmark/sirun/spans/spans.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const tracer = require('../../..').init()
24

35
tracer._tracer._processor.process = function process (span) {

benchmark/sirun/strip-unwanted-results.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
'use strict'
23

34
const fs = require('fs')
45
const path = require('path')

0 commit comments

Comments
 (0)