Package com.diffplug.gradle.spotless
Class TypescriptExtension
java.lang.Object
com.diffplug.gradle.spotless.FormatExtension
com.diffplug.gradle.spotless.TypescriptExtension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassBiome formatter step for TypeScript.classclassclassOverrides the parser to be set to typescript, no matter what the user's config says.Nested classes/interfaces inherited from class com.diffplug.gradle.spotless.FormatExtension
FormatExtension.BiomeGeneric, FormatExtension.ClangFormatConfig, FormatExtension.EclipseWtpConfig, FormatExtension.IdeaConfig, FormatExtension.LicenseHeaderConfig, FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfig -
Field Summary
Fields inherited from class com.diffplug.gradle.spotless.FormatExtension
steps, target, targetExclude, targetExcludeContentPattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbiome()Defaults to downloading the default Biome version from the network.Downloads the given Biome version from the network.eslint()prettier()Uses the default version of prettier.Uses the specified version of prettier.Uses exactly the npm packages specified in the map.protected voidsetupTask(SpotlessTask task) Sets up a format task according to the values in this extension.tsfmt()Uses the default version of typescript-format.Uses the specified version of typescript-format.Creates aTypescriptFormatExtensionusing exactly the specified npm packages.Methods inherited from class com.diffplug.gradle.spotless.FormatExtension
addStep, addStep, bumpThisNumberIfACustomStepChanges, clangFormat, clangFormat, clearSteps, createIndependentApplyTask, createIndependentApplyTaskLazy, custom, custom, eclipseWtp, eclipseWtp, encoding, endWithNewline, forbidRegex, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, idea, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, isLicenseHeaderStep, leadingSpacesToTabs, leadingSpacesToTabs, leadingTabsToSpaces, leadingTabsToSpaces, licenseHeader, licenseHeaderFile, nativeCmd, noDefaultTargetException, parseTarget, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, setRatchetFrom, suppressLintsFor, target, targetExclude, targetExcludeIfContentContains, targetExcludeIfContentContainsRegex, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace, withinBlocks, withinBlocks, withinBlocksRegex, withinBlocksRegex
-
Constructor Details
-
TypescriptExtension
-
-
Method Details
-
tsfmt
Uses the default version of typescript-format. -
tsfmt
Uses the specified version of typescript-format. -
tsfmt
Creates aTypescriptFormatExtensionusing exactly the specified npm packages. -
prettier
Uses the default version of prettier.- Overrides:
prettierin classFormatExtension
-
prettier
Uses the specified version of prettier.- Overrides:
prettierin classFormatExtension
-
prettier
Uses exactly the npm packages specified in the map.- Overrides:
prettierin classFormatExtension
-
eslint
-
eslint
-
eslint
-
biome
Defaults to downloading the default Biome version from the network. To work offline, you can specify the path to the Biome executable viabiome().pathToExe(...).- Overrides:
biomein classFormatExtension
-
biome
Downloads the given Biome version from the network.- Overrides:
biomein classFormatExtension
-
setupTask
Description copied from class:FormatExtensionSets up a format task according to the values in this extension.- Overrides:
setupTaskin classFormatExtension
-