Skip to content

Commit b30d8d0

Browse files
committed
lint:fix (some recent .mjs and .js additions/changes)
1 parent 65b6bdb commit b30d8d0

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

packages/instrumentation-dataloader/test/fixtures/use-dataloader-default-import.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ import { DataloaderInstrumentation } from '../../build/src/index.js';
2525

2626
const sdk = createTestNodeSdk({
2727
serviceName: 'use-dataloader',
28-
instrumentations: [
29-
new DataloaderInstrumentation()
30-
]
31-
})
28+
instrumentations: [new DataloaderInstrumentation()],
29+
});
3230
sdk.start();
3331

3432
import Dataloader from 'dataloader';
3533

36-
function getMd5HashFromIdx(idx ) {
34+
function getMd5HashFromIdx(idx) {
3735
return crypto.createHash('md5').update(String(idx)).digest('hex');
3836
}
3937
const dataloader = new Dataloader(
@@ -45,7 +43,7 @@ const dataloader = new Dataloader(
4543
);
4644

4745
const tracer = trace.getTracer();
48-
await tracer.startActiveSpan('manual', async (span) => {
46+
await tracer.startActiveSpan('manual', async span => {
4947
await dataloader.load(1);
5048
span.end();
5149
});
Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
module.exports = {
2-
"env": {
3-
"mocha": true,
4-
"node": true
5-
},
6-
...require('../../eslint.config.js')
7-
}
17+
env: {
18+
mocha: true,
19+
node: true,
20+
},
21+
...require('../../eslint.config.js'),
22+
};

0 commit comments

Comments
 (0)