---
title: "lint/style/require-naming-convention"
pagination: false
---

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

<RuleId id="lint/style/require-naming-convention" />

Not in any set. Report only.

## What it does

Enforce naming conventions for classes, interfaces, traits, enums, functions, methods, properties, constants and variables (options per kind).

## Configuration

```toml title="pun.toml"
[lint.rules]
"style/require-naming-convention" = "error"
```

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

## Replaces

- [`class-name`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#class-name) (mago-linter)
- [`constant-name`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#constant-name) (mago-linter)
- [`enum-name`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#enum-name) (mago-linter)
- [`function-name`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#function-name) (mago-linter)
- [`interface-name`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#interface-name) (mago-linter)
- [`method-name`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#method-name) (mago-linter)
- [`property-name`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#property-name) (mago-linter)
- [`trait-name`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#trait-name) (mago-linter)
- [`variable-name`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#variable-name) (mago-linter)

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