Skip to content

Commit e87d55a

Browse files
committed
chore: remove inline ESlint directives
1 parent b31e5ce commit e87d55a

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

examples/rpc-twirp-with-custom-function/twirp/protos/haberdasher.pb.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
22
// Source: example/protos/haberdasher.proto
3-
/* eslint-disable */
43

54
import * as protoscript from 'protoscript';
65
import { JSONrequest, PBrequest } from 'twirpscript';

examples/rpc-twirp-with-custom-function/twirp/server/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,5 @@ app.use(async (req, _ctx, next) => {
3434
});
3535

3636
createServer(app).listen(PORT, () =>
37-
// eslint-disable-next-line no-undef
3837
console.log(`Server listening on port ${PORT}`)
3938
);

packages/artillery-engine-playwright/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,13 @@ class PlaywrightEngine {
184184
await context.addInitScript(WEB_VITALS_SCRIPT);
185185
await context.addInitScript(() => {
186186
['onLCP', 'onFCP', 'onCLS', 'onTTFB', 'onINP'].forEach((hook) => {
187-
// eslint-disable-next-line no-undef
188187
webVitals[hook]((metric) => {
189188
console.trace(
190189
JSON.stringify({
191190
name: metric.name,
192191
value: metric.value,
193192
metric: metric,
194-
url: window.location.href // eslint-disable-line no-undef
193+
url: window.location.href
195194
})
196195
);
197196
});
@@ -220,8 +219,8 @@ class PlaywrightEngine {
220219
}
221220

222221
try {
223-
const performanceTimingJson = await page.evaluate(
224-
() => JSON.stringify(window.performance.timing) // eslint-disable-line no-undef
222+
const performanceTimingJson = await page.evaluate(() =>
223+
JSON.stringify(window.performance.timing)
225224
);
226225
const performanceTiming = JSON.parse(performanceTimingJson);
227226

@@ -316,7 +315,7 @@ class PlaywrightEngine {
316315
const { usedJSHeapSize } = JSON.parse(
317316
await page.evaluate(() =>
318317
JSON.stringify({
319-
usedJSHeapSize: window.performance.memory.usedJSHeapSize // eslint-disable-line no-undef
318+
usedJSHeapSize: window.performance.memory.usedJSHeapSize
320319
})
321320
)
322321
);

packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable no-warning-comments */
2-
31
const {
42
ECSClient,
53
CreateClusterCommand,

packages/artillery/lib/platform/local/artillery-worker-local.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class ArtilleryWorker {
4444
this.events.emit('exit', exitCode);
4545
});
4646

47-
//eslint-disable-next-line handle-callback-err
4847
this.worker.on('messageerror', (_err) => {});
4948

5049
// TODO: Expose performance metrics via getHeapSnapshot() and performance object.

packages/core/lib/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function runScenario(script, metrics, runState, contextVars, options) {
270270
const w = engineUtil.template(scenario.weight, {
271271
vars: variableValues
272272
});
273-
scenario.weight = Number.isNaN(parseInt(w, 10)) ? 0 : parseInt(w, 10); //eslint-disable-line radix
273+
scenario.weight = Number.isNaN(parseInt(w, 10)) ? 0 : parseInt(w, 10);
274274
debug(
275275
`scenario ${scenario.name} weight has been set to ${scenario.weight}`
276276
);

0 commit comments

Comments
 (0)