diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..53ef2f5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Enforce LF for all text files +* text=auto eol=lf + +# Keep Windows command scripts with CRLF line endings +*.bat text eol=crlf +*.cmd text eol=crlf diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4172ac7..4707e81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,6 +48,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Configure git EOL (Windows) + if: runner.os == 'Windows' + run: | + git config core.autocrlf false + git config core.eol lf + - name: Use Node.js uses: actions/setup-node@v4 with: diff --git a/biome.json b/biome.json index 79435bf..f342841 100644 --- a/biome.json +++ b/biome.json @@ -33,7 +33,8 @@ "indentStyle": "space", "indentWidth": 4, "lineWidth": 120, - "bracketSpacing": false + "bracketSpacing": false, + "lineEnding": "lf" }, "javascript": { "formatter": {