Class JsonExtension.BiomeJson

    • Constructor Detail

      • BiomeJson

        public BiomeJson​(java.lang.String version)
        Creates a new Biome formatter step config for formatting JSON files. Unless overwritten, the given Biome version is downloaded from the network.
        Parameters:
        version - Biome version to use.
    • Method Detail

      • getLanguage

        protected java.lang.String getLanguage()
        Description copied from class: RomeStepConfig
        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)
        • json (JSON)
        Specified by:
        getLanguage in class RomeStepConfig<JsonExtension.BiomeJson>
        Returns:
        The language of the input files.