Skip to content
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

Merged
merged 10 commits into from
Oct 11, 2024
Merged

Conversation

basmasking
Copy link
Member

Fixes #535

@MaskingTechnology/jitar

@basmasking basmasking linked an issue Oct 10, 2024 that may be closed by this pull request
Comment on lines 68 to 75
if (result.status === 'fulfilled')
{
healthChecks.set(result.value.name, result.value.isHealthy);
}
else
{
healthChecks.set(result.reason.name, false);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/* eslint-disable @typescript-eslint/class-literal-property-style */
// eslint-disable @typescript-eslint/class-literal-property-style

Style consistency

Comment on lines 162 to 166
{
url: { type: 'url', required: true },
procedureNames: { type: 'list', required: true, items: { type: 'string' } },
trustKey: { type: 'string', required: false }
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link

@petermasking petermasking merged commit eecef7c into main Oct 11, 2024
6 checks passed
@petermasking petermasking deleted the 535-update-estlint-to-version-9 branch October 11, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update estlint to version 9
2 participants