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

[dev-tool] Fix eslint errors and re-enable linter in dev-tool #18853

Closed

Conversation

timovv
Copy link
Member

@timovv timovv commented Nov 29, 2021

Part of work for #17826.

@ghost ghost added the dev-tool Issues related to the Azure SDK for JS dev-tool label Nov 29, 2021
@@ -20,7 +22,7 @@ export const commandInfo = makeCommandInfo(
);

const prettierOptions: prettier.Options = {
...(require("../../../../eslint-plugin-azure-sdk/prettier.json") as prettier.Options),
...(defaultPrettierOptions as prettier.Options),
Copy link
Member

Choose a reason for hiding this comment

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

I do not think this will work. I believe we need the dynamic behavior of require. /cc @witemple-msft

Comment on lines +30 to +35
/* eslint-disable @typescript-eslint/no-empty-function */
error: () => {},
warn: () => {},
info: () => {},
log: () => {}
/* eslint-enable @typescript-eslint/no-empty-function */
Copy link
Member

Choose a reason for hiding this comment

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

NIT:

Suggested change
/* eslint-disable @typescript-eslint/no-empty-function */
error: () => {},
warn: () => {},
info: () => {},
log: () => {}
/* eslint-enable @typescript-eslint/no-empty-function */
error: () => { /** empty body */ },
warn: () => { /** empty body */ },
info: () => { /** empty body */ },
log: () => { /** empty body */ }

Copy link
Member

@deyaaeldeen deyaaeldeen left a comment

Choose a reason for hiding this comment

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

Looks good apart from the require change that I believe is worth checking.

@deyaaeldeen
Copy link
Member

deyaaeldeen commented Nov 29, 2021

FYI There is an overlap between this PR and #18819. /cc @jeremymeng @ramya-rao-a

@timovv
Copy link
Member Author

timovv commented Nov 29, 2021

Oh gosh, I totally missed that PR, my bad 🤦🏻. Classic. I'll close this one and we can work off the one that's already open.

@timovv timovv closed this Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tool Issues related to the Azure SDK for JS dev-tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants