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

Replace nyc with c8 #1686

Merged
merged 2 commits into from Jan 12, 2022
Merged

Replace nyc with c8 #1686

merged 2 commits into from Jan 12, 2022

Conversation

XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR marked this pull request as ready for review January 10, 2022 15:38
@fisker
Copy link
Collaborator

fisker commented Jan 10, 2022

#1608 (comment)

@XhmikosR
Copy link
Contributor Author

Oh, I wasn't aware of that. Let's close it then and someone else can switch it later.

@XhmikosR XhmikosR closed this Jan 10, 2022
@XhmikosR XhmikosR deleted the patch-1 branch January 10, 2022 19:00
@XhmikosR XhmikosR restored the patch-1 branch January 10, 2022 19:04
@XhmikosR
Copy link
Contributor Author

Is it such a big deal, though? I still think it's worth it but I'll leave it to you @fisker @sindresorhus to decide.

Feel free to close it yourselves :)

@XhmikosR XhmikosR reopened this Jan 10, 2022
@fisker
Copy link
Collaborator

fisker commented Jan 11, 2022

Can you replace istanbul ignore with c8 ignore?

@XhmikosR
Copy link
Contributor Author

XhmikosR commented Jan 11, 2022

I pushed a patch to replace istanbul ignore with c8 ignore, but unsure how it'll handle topics or if it's 1-to-1 replacement.

Feel free to push any changes to my branch.

@fisker
Copy link
Collaborator

fisker commented Jan 11, 2022

@XhmikosR
Copy link
Contributor Author

XhmikosR commented Jan 11, 2022

I don't think ignore next ignores the next block, so the statements are not equivalent. It just ignores the next line. The workaround is to specify the lines to ignore...

EDIT: ignore if isn't also a thing with c8 it seems.

@fisker
Copy link
Collaborator

fisker commented Jan 11, 2022

There are ignore start and ignore end we can use.

@XhmikosR
Copy link
Contributor Author

In most cases it should be fine doing c8 ignore next 3 and it's shorter. Are you OK with this?

@fisker
Copy link
Collaborator

fisker commented Jan 11, 2022

Yes.

@XhmikosR
Copy link
Contributor Author

All right, this is as good as it gets from my side :)

Feel free to tweak it further if needed.

Copy link
Collaborator

@fisker fisker left a comment

Choose a reason for hiding this comment

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

LGTM, Thank You!

@sindresorhus sindresorhus merged commit 57bd00e into sindresorhus:main Jan 12, 2022
@XhmikosR XhmikosR deleted the patch-1 branch January 12, 2022 06:57
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

3 participants