editorconfig

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package editorconfig scaffolds the project-root .editorconfig. The file lives at the workspace root so every editor across the team — VS Code, JetBrains, Vim — picks up the same whitespace conventions. It is written exactly once: after maestro stamps the defaults, the file is user-owned and `maestro refresh` never touches it.

Index

Constants

View Source
const FileName = ".editorconfig"

FileName is the file this package writes at the project root.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditorConfig

type EditorConfig struct {
	// contains filtered or unexported fields
}

EditorConfig writes the starter .editorconfig at a project root.

func New

func New(rootPath string) *EditorConfig

func (*EditorConfig) Initialize

func (e *EditorConfig) Initialize() (bool, error)

Initialize writes .editorconfig when the project has none, and is a no-op when one already exists. Reports whether the file was created.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL