Skip to content

Commit ea02d61

Browse files
committed
fix: fix lint error
Signed-off-by: dhmlau <[email protected]>
1 parent 7abf870 commit ea02d61

File tree

8 files changed

+17
-15
lines changed

8 files changed

+17
-15
lines changed

docs/site/Parsing-requests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ query parameters. Please note that this style does not preserve the encoding of
9696
primitive types like numbers and booleans. They are always parsed as strings.
9797

9898
To filter results from the GET `/todo-list` endpoint in the todo-list example
99-
with a relation, { "include": [ { "relation": "todo" } ] }, the following url-encoded
100-
query parameter can be used,
99+
with a relation, { "include": [ { "relation": "todo" } ] }, the following
100+
url-encoded query parameter can be used,
101101

102102
```
103103
http://localhost:3000/todos?filter=%7B%22include%22%3A%5B%7B%22relation%22%3A%22todoList%22%7D%5D%7D

docs/site/decorators/Decorators_openapi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ supports receiving `url-encoded` payload for a json query parameter as per Open
224224
API specification.
225225

226226
To filter results from the GET '/todo-list' endpoint in the todo-list example
227-
with a specific relation, { "include": [ { "relation": "todo" } ] }, the following
228-
`url-encoded` query parameter can be used,
227+
with a specific relation, { "include": [ { "relation": "todo" } ] }, the
228+
following `url-encoded` query parameter can be used,
229229

230230
```
231231
http://localhost:3000/todos?filter=%7B%22include%22%3A%5B%7B%22relation%22%3A%22todoList%22%7D%5D%7D

docs/site/migration/auth/authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ Next let's take a look of the migration steps to get prepared:
9090
- provides persistency for `User`, see
9191
[section 2](#user-persistency-and-crud-apis).
9292
- creates a login controller, see [section 3](#creating-login-function).
93-
- mounts the JWT authentication component, see [section 4](#mounting- authentication-component).
94-
It mainly includes:
93+
- mounts the JWT authentication component, see [section 4](#mounting-
94+
authentication-component). It mainly includes:
9595
- a token service to generate and validate access tokens
9696
- an authentication strategy to validate the user identity
9797

packages/cli/generators/copyright/fs.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ async function jsOrTsFiles(cwd, paths = []) {
2525
paths = [].concat(paths);
2626
let globs;
2727
if (paths.length === 0) {
28-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
2928
globs = [glob('**/*.{js,ts}', {nodir: true, follow: false, cwd})];
3029
} else {
31-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
3230
globs = paths.map(p => {
3331
if (/\/$/.test(p)) {
3432
p += '**/*.{js,ts}';

packages/context/src/interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export function registerInterceptor(
391391
}
392392

393393
const namespace =
394-
options.namespace ?? options.defaultNamespace ?? global
394+
(options.namespace ?? options.defaultNamespace ?? global)
395395
? GLOBAL_INTERCEPTOR_NAMESPACE
396396
: LOCAL_INTERCEPTOR_NAMESPACE;
397397

packages/core/src/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class Application extends Context implements LifeCycleObserver {
121121
this.scope = BindingScope.APPLICATION;
122122

123123
this.options =
124-
configOrParent instanceof Context ? {} : configOrParent ?? {};
124+
configOrParent instanceof Context ? {} : (configOrParent ?? {});
125125

126126
// Configure debug
127127
this._debug = debug;

packages/http-server/src/http-server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ export class HttpServer {
116116
// Remove `port` so that `path` is honored
117117
delete this.serverOptions.port;
118118
}
119-
this._protocol = serverOptions ? serverOptions.protocol ?? 'http' : 'http';
119+
this._protocol = serverOptions
120+
? (serverOptions.protocol ?? 'http')
121+
: 'http';
120122
if (this._protocol === 'https') {
121123
this.server = https.createServer(
122124
this.serverOptions as https.ServerOptions,

packages/rest/src/spec-enhancers/info.spec-enhancer.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,16 @@ export class InfoSpecEnhancer implements OASEnhancer {
5151
spec.info.version === DEFAULT_OPENAPI_SPEC_INFO.version;
5252
const patchSpec = {
5353
info: {
54-
title: overrideInfo ? this.pkg.name : spec.info.title ?? this.pkg.name,
54+
title: overrideInfo
55+
? this.pkg.name
56+
: (spec.info.title ?? this.pkg.name),
5557
description: overrideInfo
5658
? this.pkg.description
57-
: spec.info.description ?? this.pkg.description,
59+
: (spec.info.description ?? this.pkg.description),
5860
version: overrideInfo
5961
? this.pkg.version
60-
: spec.info.version ?? this.pkg.version,
61-
contact: overrideInfo ? contact : spec.info.contact ?? contact,
62+
: (spec.info.version ?? this.pkg.version),
63+
contact: overrideInfo ? contact : (spec.info.contact ?? contact),
6264
},
6365
};
6466
debug('Enhancing OpenAPI spec with %j', patchSpec);

0 commit comments

Comments
 (0)