Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

refactor: update eslint rules to remove warnings during build #2405

Merged
merged 1 commit into from
May 7, 2020

Conversation

squirrelsc
Copy link
Member

update nni manager eslint rules.

  1. add rule to ignore unused args, and treat other unused as error.
  2. add run to treat no explicit function return type as error.
  3. fix all errors.

and fix all violations
@squirrelsc squirrelsc requested review from QuanluZhang and chicm-ms May 6, 2020 04:39
if ((error !== undefined && error !== null) || response.statusCode >= 400) {
const errorMessage: string = (error !== undefined && error !== null) ? error.message :
Copy link
Contributor

Choose a reason for hiding this comment

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

@SparkSnail This errorMessage is not used?

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems only have declare of errorMessage, and this.log.error(errorMessage) is missing for some reason. I think it's better to add this.log.error(errorMessage) instead of deleting it.

@QuanluZhang QuanluZhang requested a review from SparkSnail May 7, 2020 10:25
@squirrelsc squirrelsc merged commit 6485ef1 into microsoft:master May 7, 2020
@squirrelsc squirrelsc deleted the eslint-errors branch May 7, 2020 15:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants