public class TypescriptExtension extends FormatExtension
| Modifier and Type | Class and Description |
|---|---|
class |
TypescriptExtension.TypescriptFormatExtension |
class |
TypescriptExtension.TypescriptPrettierConfig
Overrides the parser to be set to typescript, no matter what the user’s config says.
|
FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfigsteps, target| Constructor and Description |
|---|
TypescriptExtension(SpotlessExtension root) |
| Modifier and Type | Method and Description |
|---|---|
FormatExtension.PrettierConfig |
prettier() |
protected void |
setupTask(SpotlessTask task)
Sets up a format task according to the values in this extension.
|
TypescriptExtension.TypescriptFormatExtension |
tsfmt() |
addStep, bumpThisNumberIfACustomStepChanges, clearSteps, custom, custom, customLazy, customLazyGroovy, encoding, endWithNewline, getEncoding, getExistingStep, getLineEndings, getProject, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, licenseHeader, licenseHeaderFile, paddedCell, paddedCell, parseTarget, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, target, trimTrailingWhitespacepublic TypescriptExtension(SpotlessExtension root)
public TypescriptExtension.TypescriptFormatExtension tsfmt()
public FormatExtension.PrettierConfig prettier()
prettier in class FormatExtensionprotected void setupTask(SpotlessTask task)
FormatExtensionSets up a format task according to the values in this extension.
setupTask in class FormatExtension