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

Add final newlines #1327

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Commits on Sep 25, 2023

  1. Add final newlines

    This enables the VSCode option `files.insertFinalNewline` and reformats
    all files. In most cases this means the final newline is added. In some
    cases trailing whitespace was stripped as well.
    
    The main reason to prefer inserting a final newline, is because POSIX
    defines a text file as a file made of lines, where each line ends with a
    newline character. This includes the final line.
    
    Most tools write final newlines, i.e. npm, tsc. Git and related tools
    tend to render a missing newline as a sort of warning. This often leads
    to annoying diffs if the newline is missing.
    remcohaszing committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    add4517 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Configuration menu
    Copy the full SHA
    20220e4 View commit details
    Browse the repository at this point in the history