Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPrettier ¶
func ApplyPrettier(t *parser.TemplateFile, config Config) (err error)
Types ¶
type Config ¶
type Config struct {
// PrettierCommand is the command to run to format the content of script and style elements.
// If empty, the default is "prettier --use-tabs --stdin-filepath $TEMPL_PRETTIER_FILENAME".
PrettierCommand string
// PrettierRequired indicates that formatting using Prettier must be applied.
PrettierRequired bool
}
Click to show internal directories.
Click to hide internal directories.