Skip to content

Commit 31ee337

Browse files
committed
Lint.
1 parent 62063cf commit 31ee337

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

lib/http.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
*/
44
import * as bedrock from '@bedrock/core';
55
import {asyncHandler} from '@bedrock/express';
6+
import {example} from '../schemas/bedrock-template.js';
7+
import {namespace} from './config.js';
68
import {createValidateMiddleware as validate} from '@bedrock/validation';
7-
import {example} from '../schemas/bedrock-template.js'
89

910
const {util: {BedrockError}} = bedrock;
1011

@@ -14,7 +15,7 @@ bedrock.events.on('bedrock-express.configure.routes', app => {
1415

1516
app.post(
1617
routes.basePath,
17-
validate({bodySchema: example}),
18+
validate({bodySchema: example}),
1819
asyncHandler(async (/*req, res*/) => {
1920
throw new BedrockError(
2021
'Not implemented.', {

lib/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
import {loggers} from '@bedrock/core';
55
import {namespace} from './config.js';
66

7-
export const logger = loggers.get('app').child(namespace);
7+
export const logger = loggers.get('app').child(namespace);

schemas/bedrock-template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ export const example = {
1111
properties: {
1212
id: schemas.identifier()
1313
}
14-
}
14+
};

test/test.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import path from 'node:path';
77
config.mocha.tests.push(path.join(import.meta.dirname, 'mocha'));
88

99
// allow self-signed certs in test framework
10-
config['https-agent'].rejectUnauthorized = false;
10+
config['https-agent'].rejectUnauthorized = false;

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import * as bedrock from '@bedrock/core';
55
import '@bedrock/https-agent';
66
import '@bedrock/test';
77

8-
import "@bedrock/module-template-http";
8+
import '@bedrock/module-template-http';
99
bedrock.start();

0 commit comments

Comments
 (0)