Class JsonExtension.RomeJson

    • Constructor Detail

      • RomeJson

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

      • getLanguage

        protected java.lang.String getLanguage()
        Deprecated.
        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.RomeJson>
        Returns:
        The language of the input files.