---
title: "lint/strings/require-string-line-ending"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/strings/require-string-line-ending" />

Not in any set. Unsafe fix: it can change behaviour. Intent: suspicious.

## What it does

All multi-line strings must use correct line ending.

## Configuration

```toml title="pun.toml"
[lint.rules]
"strings/require-string-line-ending" = "error"
```

To skip it in some files, add an [override](/docs/configuration/pun-toml#lint) or a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Replaces

- [`string_line_ending`](https://cs.symfony.com/doc/rules/string_notation/string_line_ending.html) (php-cs-fixer, risky)

[More lint/strings rules](/docs/rules/lint/strings) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
