Skip to content

Commit 686115e

Browse files
authored
docs: explain newLineKind auto and system (#3137)
Co-authored-by: fibibot <fibibot@users.noreply.github.com>
1 parent 09850ae commit 686115e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

runtime/fundamentals/linting_and_formatting.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
last_modified: 2025-12-16
2+
last_modified: 2026-05-17
33
title: "Linting and formatting"
44
description: "A guide to Deno's built-in code quality tools. Learn how to use deno lint and deno fmt commands, configure rules, integrate with CI/CD pipelines, and maintain consistent code style across your projects."
55
---
@@ -176,6 +176,10 @@ The newline character to use
176176
- **Default:** `lf`
177177
- **Possible values:** `auto`, `crlf`, `lf`, `system`
178178

179+
Use `auto` to preserve the file's existing newline style when Deno can detect
180+
one. Use `system` to use the current operating system's default newline style,
181+
which is `crlf` on Windows and `lf` on Unix-like systems.
182+
179183
#### `nextControlFlowPosition`
180184

181185
Define position of next control flow

0 commit comments

Comments
 (0)