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
Fix part of #10474: Cover more files with strict checks #11100
Conversation
…e.spec.ts, id-generation.service.spec.ts and tsconfig-strict.json
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.
Thanks! Just a few comments.
// eslint-disable-next-line max-len | ||
existingNumSpaces = Object.keys(numSpacesToDesiredIndentLevel).map(Number); |
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.
We prefer to limit the usage of eslint-disable
exceptions. You can do something like this:
// eslint-disable-next-line max-len | |
existingNumSpaces = Object.keys(numSpacesToDesiredIndentLevel).map(Number); | |
existingNumSpaces = Object.keys( | |
numSpacesToDesiredIndentLevel | |
).map(Number); |
// eslint-disable-next-line max-len | ||
var existingNumSpaces = Object.keys(numSpacesToDesiredIndentLevel).map(Number); |
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.
We prefer to limit the usage of eslint-disable
exceptions. You can do something like this:
// eslint-disable-next-line max-len | |
var existingNumSpaces = Object.keys(numSpacesToDesiredIndentLevel).map(Number); | |
var existingNumSpaces = Object.keys( | |
numSpacesToDesiredIndentLevel | |
).map(Number); |
@@ -52,12 +52,12 @@ export class CodeNormalizerService { | |||
var FOUR_SPACES = ' '; | |||
// Maps the number of spaces at the beginning of a line to an int | |||
// specifying the desired indentation level. | |||
var numSpacesToDesiredIndentLevel = { | |||
var numSpacesToDesiredIndentLevel: { [key: number]: number; } = { |
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.
Are you sure about the ;
inside the type definition?
var numSpacesToDesiredIndentLevel: { [key: number]: number; } = { | |
var numSpacesToDesiredIndentLevel: { [key: number]: number } = { |
Hi @krishita30j, it looks like some changes were requested on this pull request by @vojtechjelinek. PTAL. Thanks! |
@vojtechjelinek, I have made the changes. |
@krishita30j Please respond to all reviewer's comments with: "Done" when you fix them (next time). |
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.
LGTM!
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.
Lgtm
Unassigning @nishantwrp since they have already approved the PR. |
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.
Lgtm as codeowner.
Hi @krishita30j. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
Hi @krishita30j. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
Unassigning @nithusha21 since they have already approved the PR. |
Hi @krishita30j. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
…e.spec.ts, id-generation.service.spec.ts and tsconfig-strict.json
Overview
Essential Checklist
PR Pointers