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.
Click to show internal directories.
Click to hide internal directories.