Skip to main content

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

FlagDescription
-d, --dry-runPreview the target file path without writing anything to disk.
-r, --replace-fileOverwrite the existing file instead of creating a .nova-backup copy.

Output Files

FileDescription
.editorconfigEditorConfig settings for consistent coding styles.