Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Check bool Write bool Recursive bool Extensions []string Path string Workers int Verbose bool }
Config holds the configuration for processing files
type ProcessResult ¶
ProcessResult contains the result of processing a file
func ProcessFileAST ¶
func ProcessFileAST(filePath string, config Config) (ProcessResult, error)
ProcessFileAST processes a file using full AST analysis
type Processor ¶ added in v1.3.0
type Processor struct {
// contains filtered or unexported fields
}
Processor handles the complete sorting workflow for TypeScript/TSX files
func NewProcessor ¶ added in v1.3.0
func NewProcessor() *Processor
NewProcessor creates a new processor with all dependencies
func (*Processor) ProcessContent ¶ added in v1.3.0
ProcessContent processes TypeScript/TSX content and returns sorted result
type PropertyLine ¶
type SortConfig ¶
type SortConfig struct { WithNewLine bool DeprecatedAtEnd bool Key string // For array sorting SortByComment bool // Sort by comment content HasError bool // Indicates a validation error (e.g., key + sort-by-comment) }
SortConfig contains configuration options from the magic comment
Click to show internal directories.
Click to hide internal directories.