---
description: Naming conventions for Node.js
globs: <root>/src/**/*.{js,ts},<root>/**/*.js,<root>/**/*.ts
alwaysApply: false
---

# Node.js Naming Conventions

Follow these conventions for a consistent codebase.

- **Variables and functions**: use `camelCase`.
- **Classes and constructors**: use `PascalCase`.
- **File and directory names**: prefer `kebab-case` or lowercase with dashes.
- **Constants and environment variables**: use `UPPER_SNAKE_CASE`.
- Avoid spaces or accented characters in filenames.

For more guidance, see the [Node.js style guide](https://github.com/nodejs/node/blob/main/doc/guides/contributing/writing-tests.md#naming).
