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

Update server monorepo to ESLint 7 #3851

Merged
merged 7 commits into from Nov 18, 2020

Conversation

tylerbutler
Copy link
Member

No description provided.

@curtisman
Copy link
Member

Close and reopening to trigger the pipeline

@curtisman curtisman closed this Oct 8, 2020
@curtisman curtisman reopened this Oct 8, 2020
public async send(messages: object[], tenantId: string, documentId: string): Promise<any> {
public async send(messages: Record<string, unknown>[], tenantId: string, documentId: string): Promise<any> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this what typescript recommends now? Converting an object to Record<K, T> for better typing?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also this implements IProducer so I am wondering why TS is not complaining? Are objects and Record<string, unknown> interchangable?

Copy link
Contributor

Choose a reason for hiding this comment

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

And there are more implementations of IProducer. So may be change them as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was a mistake. I experimented with some fixes and got sloppy about keeping them separate from the ESLint 7 upgrade itself. I'll remove these and replace with the disable comment. If we want to make this or a similar change we should do it separately from this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Resolved in an upcoming push.

@@ -16,7 +16,7 @@ export function validateTokenClaims(
documentId: string,
tenantId: string,
maxTokenLifetimeSec: number,
isTokenExpiryEnabled: boolean): ITokenClaims {
isTokenExpiryEnabled: boolean): ITokenClaims | undefined {
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand how this compiled before...

@tylerbutler tylerbutler merged commit 1cf9fdb into microsoft:main Nov 18, 2020
@tylerbutler tylerbutler deleted the eslint/server branch November 18, 2020 00:34
@tylerbutler tylerbutler mentioned this pull request Jan 20, 2021
8 tasks
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.

None yet

3 participants