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 common-utils to ESLint 7 #3790

Merged
merged 7 commits into from Oct 8, 2020

Conversation

tylerbutler
Copy link
Member

No description provided.

],
"parserOptions": {
"project": [ "./tsconfig.json", "./test/tsconfig.json" ]
},
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": "off",
Copy link
Contributor

Choose a reason for hiding this comment

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

did these two warnings produce a lot of errors in common-utils/is there an issue to clean them up and remove these warning suppressions?

Copy link
Member Author

Choose a reason for hiding this comment

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

@heliocliu Thanks - I'm not sure how I wound up suppressing these both at the project level. I fixed that. There aren't too many offenses. I tried to add typings for sha.js and change the import in hashFileNode.ts to import { sha1 } from "sha.js"; but that brings in node types which breaks the build.

If we had proper types for sha.js that would remove a couple of the unsafe returns.

Copy link
Contributor

@heliocliu heliocliu left a comment

Choose a reason for hiding this comment

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

oops thought i approved

@tylerbutler tylerbutler merged commit d93c5e4 into microsoft:main Oct 8, 2020
@tylerbutler tylerbutler deleted the eslint/common-utils branch October 8, 2020 17:13
@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

2 participants