---
title: "Coming from pint"
pagination: false
---

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

## Config translation

`pun migrate` keeps the old config and reports what it skips. Planned rules do not run.

Run `pun migrate --from pint`. Pint's risky and code-deleting fixers become lint rules, not format rules.

| pint.json | pun.toml |
| --- | --- |
| `preset: laravel` or `psr12` | `[format] preset = "laravel"` or `"psr12"` |
| `preset: per`, and `@PER-CS` rule sets | Explicit rules over the `empty` format preset |
| `preset: symfony` | Not supported: `pun migrate` stops with an error |
| `rules` | `[format.rules]` for layout; `[lint.rules]` at `"error"` for code edits |
| Rule options | Pun option names and values, on each rule page |
| `in`, `exclude`, `notName`, `notPath` | `[files] paths`, `exclude`; `[format] not-name`, `not-path` |
| `@php-cs-fixer-ignore` | `@pun-ignore-file` with the full format rule ID |

## Rule mapping

<MigrationTable tool="pint" />

## Unsupported rules

### Doctrine rules: out of scope (Laravel-first); migrate lists them

[`doctrine_annotation_array_assignment`](https://cs.symfony.com/doc/rules/doctrine_annotation/doctrine_annotation_array_assignment.html), [`doctrine_annotation_braces`](https://cs.symfony.com/doc/rules/doctrine_annotation/doctrine_annotation_braces.html), [`doctrine_annotation_indentation`](https://cs.symfony.com/doc/rules/doctrine_annotation/doctrine_annotation_indentation.html), [`doctrine_annotation_spaces`](https://cs.symfony.com/doc/rules/doctrine_annotation/doctrine_annotation_spaces.html).

### a no-op that carries Prettier package versions into Pint's cache signature; Pun has no cache

[`Pint/prettier_cache_fingerprint`](https://laravel.com/docs/pint).

### deprecated upstream; successor: blank_lines_before_namespace

[`no_blank_lines_before_namespace`](https://cs.symfony.com/doc/rules/namespace_notation/no_blank_lines_before_namespace.html), [`single_blank_line_before_namespace`](https://cs.symfony.com/doc/rules/namespace_notation/single_blank_line_before_namespace.html).

### deprecated upstream; successor: braces_position

[`curly_braces_position`](https://cs.symfony.com/doc/rules/basic/curly_braces_position.html).

### deprecated upstream; successor: compact_nullable_type_declaration

[`compact_nullable_typehint`](https://cs.symfony.com/doc/rules/whitespace/compact_nullable_typehint.html).

### deprecated upstream; successor: modifier_keywords

[`visibility_required`](https://cs.symfony.com/doc/rules/class_notation/visibility_required.html).

### deprecated upstream; successor: native_type_declaration_casing

[`native_function_type_declaration_casing`](https://cs.symfony.com/doc/rules/casing/native_function_type_declaration_casing.html).

### deprecated upstream; successor: new_with_parentheses

[`new_with_braces`](https://cs.symfony.com/doc/rules/operator/new_with_braces.html).

### deprecated upstream; successor: no_trailing_comma_in_singleline

[`no_trailing_comma_in_list_call`](https://cs.symfony.com/doc/rules/control_structure/no_trailing_comma_in_list_call.html), [`no_trailing_comma_in_singleline_array`](https://cs.symfony.com/doc/rules/array_notation/no_trailing_comma_in_singleline_array.html), [`no_trailing_comma_in_singleline_function_call`](https://cs.symfony.com/doc/rules/function_notation/no_trailing_comma_in_singleline_function_call.html).

### deprecated upstream; successor: no_unneeded_braces

[`no_unneeded_curly_braces`](https://cs.symfony.com/doc/rules/control_structure/no_unneeded_curly_braces.html).

### deprecated upstream; successor: none (removed)

[`class_keyword_remove`](https://cs.symfony.com/doc/rules/language_construct/class_keyword_remove.html).

### deprecated upstream; successor: phpdoc_no_duplicate_types

[`phpdoc_types_no_duplicates`](https://cs.symfony.com/doc/rules/phpdoc/phpdoc_types_no_duplicates.html).

### deprecated upstream; successor: single_space_around_construct

[`single_space_after_construct`](https://cs.symfony.com/doc/rules/language_construct/single_space_after_construct.html).

### deprecated upstream; successor: single_space_around_construct, control_structure_braces, control_structure_continuation_position, declare_parentheses, no_multiple_statements_per_line, braces_position, statement_indentation, no_extra_blank_lines

[`braces`](https://cs.symfony.com/doc/rules/basic/braces.html).

### deprecated upstream; successor: spaces_inside_parentheses

[`no_spaces_inside_parenthesis`](https://cs.symfony.com/doc/rules/whitespace/no_spaces_inside_parenthesis.html).

### deprecated upstream; successor: string_implicit_backslashes

[`escape_implicit_backslashes`](https://cs.symfony.com/doc/rules/string_notation/escape_implicit_backslashes.html).

### deprecated upstream; successor: type_declaration_spaces

[`function_typehint_space`](https://cs.symfony.com/doc/rules/function_notation/function_typehint_space.html).

## Pun-only rules

- [`lint/comments/no-unused-ignore`](/docs/rules/lint/comments/no-unused-ignore)
