-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(build): migrate to eslint 9 #554
Conversation
packages/health/src/HealthManager.ts
Outdated
if (result.status === 'fulfilled') | ||
{ | ||
healthChecks.set(result.value.name, result.value.isHealthy); | ||
} | ||
else | ||
{ | ||
healthChecks.set(result.reason.name, false); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (result.status === 'fulfilled') | |
{ | |
healthChecks.set(result.value.name, result.value.isHealthy); | |
} | |
else | |
{ | |
healthChecks.set(result.reason.name, false); | |
} | |
if (result.status !== 'fulfilled') | |
{ | |
healthChecks.set(result.reason.name, false); | |
return; | |
} | |
healthChecks.set(result.value.name, result.value.isHealthy); |
More clean code.
@@ -1,4 +1,5 @@ | |||
|
|||
/* eslint-disable @typescript-eslint/class-literal-property-style */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* eslint-disable @typescript-eslint/class-literal-property-style */ | |
// eslint-disable @typescript-eslint/class-literal-property-style |
Style consistency
packages/http/src/HttpServer.ts
Outdated
{ | ||
url: { type: 'url', required: true }, | ||
procedureNames: { type: 'list', required: true, items: { type: 'string' } }, | ||
trustKey: { type: 'string', required: false } | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | |
url: { type: 'url', required: true }, | |
procedureNames: { type: 'list', required: true, items: { type: 'string' } }, | |
trustKey: { type: 'string', required: false } | |
}); | |
{ | |
url: { type: 'url', required: true }, | |
procedureNames: { type: 'list', required: true, items: { type: 'string' } }, | |
trustKey: { type: 'string', required: false } | |
} | |
); |
@@ -15,7 +15,7 @@ type Configuration = | |||
const DEFAULT_INDEX_FILENAME = 'index.html'; | |||
const DEFAULT_SERVE_INDEX_ON_NOT_FOUND = false; | |||
|
|||
export default class LocalRepository implements Repository | |||
export default class LocalRepository implements ProviderService |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export default class LocalRepository implements ProviderService | |
export default class LocalRepository implements Repository |
I prefer to keep the (empty) Repository
interface for semantics and consistency reasons.
|
Fixes #535
@MaskingTechnology/jitar