java.lang.Object
com.diffplug.spotless.maven.generic.AbstractBiome
com.diffplug.spotless.maven.generic.Biome
All Implemented Interfaces:
FormatterStepFactory

public class Biome extends AbstractBiome
Generic Biome formatter step that detects the language of the input file from the file name. It should be specified as a formatter step for a generic <format>.
  • Constructor Details

    • Biome

      public Biome()
  • Method Details

    • getLanguage

      protected String getLanguage()
      Description copied from class: AbstractBiome
      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 AbstractBiome
      Returns:
      The language of the input files.