Class FormatExtension.RomeGeneric

  • Enclosing class:
    FormatExtension

    @Deprecated
    public class FormatExtension.RomeGeneric
    extends RomeStepConfig<FormatExtension.RomeGeneric>
    Deprecated.
    Rome has transitioned to Biome. This will be removed shortly.
    Generic Rome 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 Detail

      • RomeGeneric

        public RomeGeneric​(java.lang.String version)
        Deprecated.
        Creates a new Rome config that downloads the Rome executable for the given version from the network.
        Parameters:
        version - Rome version to use. The default version is used when null.
    • Method Detail

      • language

        public FormatExtension.RomeGeneric language​(java.lang.String language)
        Deprecated.
        Sets 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 Rome:
        • 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)
        Parameters:
        language - The language of the files to format.
        Returns:
        This step for further configuration.
      • 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<FormatExtension.RomeGeneric>
        Returns:
        The language of the input files.