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

fix: Consistent max buffer value across Node versions. #84

Merged
merged 1 commit into from Dec 17, 2019

Conversation

MaximDevoir
Copy link
Contributor

Before Node v12, maxBuffer defaulted to 200kb. Node v12+ defaults to 1024kb.

Setting the maxBuffer value allows for a more consistent cross-version Node experience.

Before Node v12, `maxBuffer` defaulted to 200kb. Node v12+ defaults to 1024kb.

Setting the `maxBuffer` value allows for a more consistent  cross-version Node experience.
@MaximDevoir
Copy link
Contributor Author

MaximDevoir commented Dec 9, 2019

On large projects that are just beginning to switch to the rules of eslint-plugin-github, using the github-lint tool would crash because there were too many lint errors/warnings. So this PR also raises the buffer for Node v8 and Node v10 environments to prevent github-lint from crashing.

Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

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

This looks good to me!

I didn't realize why this was needed originally but your follow up comment cleared that up for me ✨

@koddsson koddsson merged commit 84e5cd7 into github:master Dec 17, 2019
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