Class PrettierSettings.Jsii$Proxy

    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getCursorOffset

        public final Number getCursorOffset()
        Description copied from interface: PrettierSettings
        (experimental) Print (to stderr) where a cursor at the given position would move to after formatting.

        This option cannot be used with --range-start and --range-end.

        Default: -1

        Specified by:
        getCursorOffset in interface PrettierSettings
      • getFilepath

        public final String getFilepath()
        Description copied from interface: PrettierSettings
        (experimental) Specify the input filepath.

        This will be used to do parser inference.

        Default: none

        Specified by:
        getFilepath in interface PrettierSettings
      • getParser

        public final String getParser()
        Description copied from interface: PrettierSettings
        (experimental) Which parser to use.

        Default: - Prettier automatically infers the parser from the input file path, so you shouldn’t have to change this setting.

        Specified by:
        getParser in interface PrettierSettings
      • getPluginSearchDirs

        public final List<String> getPluginSearchDirs()
        Description copied from interface: PrettierSettings
        (experimental) Custom directory that contains prettier plugins in node_modules subdirectory.

        Overrides default behavior when plugins are searched relatively to the location of Prettier. Multiple values are accepted.

        Default: []

        Specified by:
        getPluginSearchDirs in interface PrettierSettings
      • getRangeEnd

        public final Number getRangeEnd()
        Description copied from interface: PrettierSettings
        (experimental) Format code ending at a given character offset (exclusive).

        The range will extend forwards to the end of the selected statement. This option cannot be used with --cursor-offset.

        Default: null

        Specified by:
        getRangeEnd in interface PrettierSettings
      • getRangeStart

        public final Number getRangeStart()
        Description copied from interface: PrettierSettings
        (experimental) Format code starting at a given character offset.

        The range will extend backwards to the start of the first line containing the selected statement. This option cannot be used with --cursor-offset.

        Default: 0

        Specified by:
        getRangeStart in interface PrettierSettings
      • getRequirePragma

        public final Boolean getRequirePragma()
        Description copied from interface: PrettierSettings
        (experimental) Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.

        Default: false

        Specified by:
        getRequirePragma in interface PrettierSettings
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object