Class JavascriptExtension.BiomeJs

java.lang.Object
com.diffplug.gradle.spotless.BiomeStepConfig<JavascriptExtension.BiomeJs>
com.diffplug.gradle.spotless.JavascriptExtension.BiomeJs
Enclosing class:
JavascriptExtension

public class JavascriptExtension.BiomeJs extends BiomeStepConfig<JavascriptExtension.BiomeJs>
Biome formatter step for JavaScript.
  • Constructor Details

    • BiomeJs

      public BiomeJs(String version)
      Creates a new Biome formatter step config for formatting JavaScript files. Unless overwritten, the given Biome version is downloaded from the network.
      Parameters:
      version - Biome version to use.
  • Method Details

    • getLanguage

      protected String getLanguage()
      Description copied from class: BiomeStepConfig
      Gets the language (syntax) of the input files to format. When null or 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:
      getLanguage in class BiomeStepConfig<JavascriptExtension.BiomeJs>
      Returns:
      The language of the input files.
    • getThis

      protected JavascriptExtension.BiomeJs getThis()
      Specified by:
      getThis in class BiomeStepConfig<JavascriptExtension.BiomeJs>
      Returns:
      This Biome config instance.