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.ClangFormatConfig, FormatExtension.EclipseWtpConfig, FormatExtension.LicenseHeaderConfig, FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfigsteps, target, targetExclude| Constructor and Description |
|---|
TypescriptExtension(SpotlessExtension spotless) |
| Modifier and Type | Method and Description |
|---|---|
FormatExtension.PrettierConfig |
prettier()
Uses the default version of prettier.
|
FormatExtension.PrettierConfig |
prettier(Map<String,String> devDependencies)
Uses exactly the npm packages specified in the map.
|
FormatExtension.PrettierConfig |
prettier(String version)
Uses the specified version of prettier.
|
protected void |
setupTask(SpotlessTask task)
Sets up a format task according to the values in this extension.
|
TypescriptExtension.TypescriptFormatExtension |
tsfmt()
Uses the default version of typescript-format.
|
TypescriptExtension.TypescriptFormatExtension |
tsfmt(Map<String,String> devDependencies)
Creates a
TypescriptFormatExtension using exactly the specified npm packages. |
TypescriptExtension.TypescriptFormatExtension |
tsfmt(String version)
Uses the specified version of typescript-format.
|
addStep, bumpThisNumberIfACustomStepChanges, clangFormat, clangFormat, clearSteps, createIndependentApplyTask, custom, custom, eclipseWtp, eclipseWtp, encoding, endWithNewline, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, licenseHeader, licenseHeaderFile, noDefaultTargetException, parseTarget, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, setRatchetFrom, target, targetExclude, trimTrailingWhitespacepublic TypescriptExtension(SpotlessExtension spotless)
public TypescriptExtension.TypescriptFormatExtension tsfmt()
Uses the default version of typescript-format.
public TypescriptExtension.TypescriptFormatExtension tsfmt(String version)
Uses the specified version of typescript-format.
public TypescriptExtension.TypescriptFormatExtension tsfmt(Map<String,String> devDependencies)
Creates a TypescriptFormatExtension using exactly the specified npm packages.
public FormatExtension.PrettierConfig prettier()
Uses the default version of prettier.
prettier in class FormatExtensionpublic FormatExtension.PrettierConfig prettier(String version)
Uses the specified version of prettier.
prettier in class FormatExtensionpublic FormatExtension.PrettierConfig prettier(Map<String,String> devDependencies)
Uses exactly the npm packages specified in the map.
prettier in class FormatExtensionprotected void setupTask(SpotlessTask task)
FormatExtensionSets up a format task according to the values in this extension.
setupTask in class FormatExtension