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

chore(eslint): enable typescript 3.7 rules #6765

Merged
merged 5 commits into from
Jul 18, 2020
Merged

Conversation

JamieMagee
Copy link
Contributor

Enable prefer-optional-chain and prefer-nullish-coalescing and fix and occurences.

No failures with prefer-nullish-coalescing found. Might need to look at the options for that rule.

Enable `prefer-optional-chain` and `prefer-nullish-coalescing` and fix and occurences.

No failures with `prefer-nullish-coalescing` found. Might need to look at the options for that rule.
lib/manager/cocoapods/artifacts.ts Outdated Show resolved Hide resolved
lib/manager/helm-requirements/extract.ts Outdated Show resolved Hide resolved
lib/manager/kustomize/extract.ts Outdated Show resolved Hide resolved
lib/platform/gitlab/index.ts Outdated Show resolved Hide resolved
lib/config/migration.ts Outdated Show resolved Hide resolved
lib/datasource/npm/get.ts Show resolved Hide resolved
lib/config/migration.ts Outdated Show resolved Hide resolved
lib/datasource/npm/get.ts Outdated Show resolved Hide resolved
lib/datasource/npm/get.ts Show resolved Hide resolved
@JamieMagee
Copy link
Contributor Author

I think I've addressed all your comments. Also there's a major version bump for eslint waiting, which might solve some of the issues with the nullish coalescing rule.

Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

some snapshots are failed

@rarkins
Copy link
Collaborator

rarkins commented Jul 17, 2020

BTW I was looking for this eslint rule recently and didn't find it :)

Does it "auto fix" ?

@JamieMagee
Copy link
Contributor Author

some snapshots are failed

I think this might be an error with the most recent commit. I'll check locally.

BTW I was looking for this eslint rule recently and didn't find it :)

Does it "auto fix" ?

You asking prompted me to look 😄

It does have an auto-fix, but it's still quite buggy and only recommended for the simplest cases. I did all of this by hand.

@viceice
Copy link
Member

viceice commented Jul 17, 2020

I think I've addressed all your comments. Also there's a major version bump for eslint waiting, which might solve some of the issues with the nullish coalescing rule.

Yes, we should update to new major linter versions, @types/eslint should be grouped to linters before. I'll see if i can do that at weekend. Or @JamieMagee have you time to arrange that?

@rarkins rarkins merged commit 456245a into master Jul 18, 2020
@rarkins rarkins deleted the chore/eslint-ts-3.7 branch July 18, 2020 06:42
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 21.32.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
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.

None yet

4 participants