Class BiomeTs
java.lang.Object
com.diffplug.spotless.maven.generic.AbstractBiome
com.diffplug.spotless.maven.typescript.BiomeTs
- All Implemented Interfaces:
FormatterStepFactory
Biome formatter step for TypeScript.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the language (syntax) of the input files to format.Methods inherited from class com.diffplug.spotless.maven.generic.AbstractBiome
newFormatterStepMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.diffplug.spotless.maven.FormatterStepFactory
init
-
Constructor Details
-
BiomeTs
public BiomeTs()
-
-
Method Details
-
getLanguage
Description copied from class:AbstractBiomeGets 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 classAbstractBiome- Returns:
- The language of the input files.
-