Skip to content

fix: ensure posix-compliant newline at end of generated configs #170

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

Merged

Conversation

3w36zj6
Copy link
Contributor

@3w36zj6 3w36zj6 commented May 10, 2025

This PR addresses the missing end-of-line (EOL) at the end of generated config files. By ensuring a proper newline is present, it maintains POSIX compliance and prevents editors from introducing unintended changes due to the absence of a final EOL.

Copy link

linux-foundation-easycla bot commented May 10, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label May 10, 2025
Copy link

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

👍 I'm in favor of this. The classic https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline links to the POSIX spec that defines:

3.206 Line
A sequence of zero or more non- characters plus a terminating character.

Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit 8f18045 into eslint:main May 14, 2025
11 checks passed
@github-actions github-actions bot mentioned this pull request May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants