EditorConfig (.editorconfig)
Create a .editorconfig file that tells editors and IDEs to use consistent indentation, charset, and line-ending settings across the project.
Why Use This Command?
- Keeps formatting consistent without relying on each contributor's editor settings.
- Works with most popular editors out of the box.
Requirements
- Node.js runtime — Use any Node.js LTS release.
- Project root — Run the command from the directory containing the top-level
package.json.
Usage
Options
| Flag | Description |
|---|---|
-d, --dry-run | Preview the target file path without writing anything to disk. |
-r, --replace-file | Overwrite the existing file instead of creating a .nova-backup copy. |
Output Files
| File | Description |
|---|---|
.editorconfig | EditorConfig settings for consistent coding styles. |