Package com.diffplug.gradle.spotless
Class TypescriptExtension.BiomeTs
java.lang.Object
com.diffplug.gradle.spotless.BiomeStepConfig<TypescriptExtension.BiomeTs>
com.diffplug.gradle.spotless.TypescriptExtension.BiomeTs
- Enclosing class:
TypescriptExtension
Biome formatter step for TypeScript.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the language (syntax) of the input files to format.protected TypescriptExtension.BiomeTsgetThis()Methods inherited from class com.diffplug.gradle.spotless.BiomeStepConfig
configPath, createStep, downloadDir, pathToExe, replaceStep
-
Constructor Details
-
BiomeTs
Creates a new Biome formatter step config for formatting TypeScript files. Unless overwritten, the given Biome version is downloaded from the network.- Parameters:
version- Biome version to use.
-
-
Method Details
-
getLanguage
Description copied from class:BiomeStepConfigGets the language (syntax) of the input files to format. Whennullor the empty string, the language is detected automatically from the file name. Currently, the following languages are supported by Biome:- js (JavaScript)
- jsx (JavaScript + JSX)
- js? (JavaScript or JavaScript + JSX, depending on the file extension)
- ts (TypeScript)
- tsx (TypeScript + JSX)
- ts? (TypeScript or TypeScript + JSX, depending on the file extension)
- css (CSS, requires biome >= 1.9.0)
- json (JSON)
- jsonc (JSON + comments)
- Specified by:
getLanguagein classBiomeStepConfig<TypescriptExtension.BiomeTs>- Returns:
- The language of the input files.
-
getThis
- Specified by:
getThisin classBiomeStepConfig<TypescriptExtension.BiomeTs>- Returns:
- This Biome config instance.
-