Package com.diffplug.gradle.spotless
Class JsonExtension.BiomeJson
- java.lang.Object
-
- com.diffplug.gradle.spotless.RomeStepConfig<JsonExtension.BiomeJson>
-
- com.diffplug.gradle.spotless.JsonExtension.BiomeJson
-
- Enclosing class:
- JsonExtension
public class JsonExtension.BiomeJson extends RomeStepConfig<JsonExtension.BiomeJson>
Biome formatter step for JSON.
-
-
Constructor Summary
Constructors Constructor Description BiomeJson(java.lang.String version)Creates a new Biome formatter step config for formatting JSON files.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetLanguage()Gets the language (syntax) of the input files to format.protected JsonExtension.BiomeJsongetThis()-
Methods inherited from class com.diffplug.gradle.spotless.RomeStepConfig
configPath, createStep, downloadDir, pathToExe, replaceStep
-
-
-
-
Method Detail
-
getLanguage
protected java.lang.String getLanguage()
Description copied from class:RomeStepConfigGets 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)
- json (JSON)
- Specified by:
getLanguagein classRomeStepConfig<JsonExtension.BiomeJson>- Returns:
- The language of the input files.
-
getThis
protected JsonExtension.BiomeJson getThis()
- Specified by:
getThisin classRomeStepConfig<JsonExtension.BiomeJson>- Returns:
- This Biome config instance.
-
-