Class PrettierSettings.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.javascript.PrettierSettings.Jsii$Proxy
-
- All Implemented Interfaces:
PrettierSettings,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- PrettierSettings
@Stability(Experimental) @Internal public static final class PrettierSettings.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PrettierSettings
An implementation forPrettierSettings
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.javascript.PrettierSettings
PrettierSettings.Builder, PrettierSettings.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(PrettierSettings.Builder builder)Constructor that initializes the object based on literal property values passed by thePrettierSettings.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)ArrowParensgetArrowParens()(experimental) Include parentheses around a sole arrow function parameter.BooleangetBracketSameLine()(experimental) Put > of opening tags on the last line instead of on a new line.BooleangetBracketSpacing()(experimental) Print spaces between brackets.NumbergetCursorOffset()(experimental) Print (to stderr) where a cursor at the given position would move to after formatting.EmbeddedLanguageFormattinggetEmbeddedLanguageFormatting()(experimental) Control how Prettier formats quoted code embedded in the file.EndOfLinegetEndOfLine()(experimental) Which end of line characters to apply.StringgetFilepath()(experimental) Specify the input filepath.HTMLWhitespaceSensitivitygetHtmlWhitespaceSensitivity()(experimental) How to handle whitespaces in HTML.BooleangetInsertPragma()(experimental) Insert.BooleangetJsxSingleQuote()(experimental) Use single quotes in JSX.StringgetParser()(experimental) Which parser to use.List<String>getPlugins()(experimental) Add a plugin.List<String>getPluginSearchDirs()(experimental) Custom directory that contains prettier plugins in node_modules subdirectory.NumbergetPrintWidth()(experimental) The line length where Prettier will try wrap.ProseWrapgetProseWrap()(experimental) How to wrap prose.QuotePropsgetQuoteProps()(experimental) Change when properties in objects are quoted.NumbergetRangeEnd()(experimental) Format code ending at a given character offset (exclusive).NumbergetRangeStart()(experimental) Format code starting at a given character offset.BooleangetRequirePragma()(experimental) Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.BooleangetSemi()(experimental) Print semicolons.BooleangetSingleQuote()(experimental) Use single quotes instead of double quotes.NumbergetTabWidth()(experimental) Number of spaces per indentation level.TrailingCommagetTrailingComma()(experimental) Print trailing commas wherever possible when multi-line.BooleangetUseTabs()(experimental) Indent with tabs instead of spaces.BooleangetVueIndentScriptAndStyle()(experimental) Indent script and style tags in Vue files.inthashCode()
-
-
-
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.
-
Jsii$Proxy
protected Jsii$Proxy(PrettierSettings.Builder builder)
Constructor that initializes the object based on literal property values passed by thePrettierSettings.Builder.
-
-
Method Detail
-
getArrowParens
public final ArrowParens getArrowParens()
Description copied from interface:PrettierSettings(experimental) Include parentheses around a sole arrow function parameter.Default: ArrowParens.ALWAYS
- Specified by:
getArrowParensin interfacePrettierSettings
-
getBracketSameLine
public final Boolean getBracketSameLine()
Description copied from interface:PrettierSettings(experimental) Put > of opening tags on the last line instead of on a new line.Default: false
- Specified by:
getBracketSameLinein interfacePrettierSettings
-
getBracketSpacing
public final Boolean getBracketSpacing()
Description copied from interface:PrettierSettings(experimental) Print spaces between brackets.Default: true
- Specified by:
getBracketSpacingin interfacePrettierSettings
-
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:
getCursorOffsetin interfacePrettierSettings
-
getEmbeddedLanguageFormatting
public final EmbeddedLanguageFormatting getEmbeddedLanguageFormatting()
Description copied from interface:PrettierSettings(experimental) Control how Prettier formats quoted code embedded in the file.Default: EmbeddedLanguageFormatting.AUTO
- Specified by:
getEmbeddedLanguageFormattingin interfacePrettierSettings
-
getEndOfLine
public final EndOfLine getEndOfLine()
Description copied from interface:PrettierSettings(experimental) Which end of line characters to apply.Default: EndOfLine.LF
- Specified by:
getEndOfLinein interfacePrettierSettings
-
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:
getFilepathin interfacePrettierSettings
-
getHtmlWhitespaceSensitivity
public final HTMLWhitespaceSensitivity getHtmlWhitespaceSensitivity()
Description copied from interface:PrettierSettings(experimental) How to handle whitespaces in HTML.Default: HTMLWhitespaceSensitivity.CSS
- Specified by:
getHtmlWhitespaceSensitivityin interfacePrettierSettings
-
getInsertPragma
public final Boolean getInsertPragma()
Description copied from interface:PrettierSettings(experimental) Insert.Default: false
- Specified by:
getInsertPragmain interfacePrettierSettings
-
getJsxSingleQuote
public final Boolean getJsxSingleQuote()
Description copied from interface:PrettierSettings(experimental) Use single quotes in JSX.Default: false
- Specified by:
getJsxSingleQuotein interfacePrettierSettings
-
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:
getParserin interfacePrettierSettings
-
getPlugins
public final List<String> getPlugins()
Description copied from interface:PrettierSettings(experimental) Add a plugin.Multiple plugins can be passed as separate
--plugins.Default: []
- Specified by:
getPluginsin interfacePrettierSettings
-
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:
getPluginSearchDirsin interfacePrettierSettings
-
getPrintWidth
public final Number getPrintWidth()
Description copied from interface:PrettierSettings(experimental) The line length where Prettier will try wrap.Default: 80
- Specified by:
getPrintWidthin interfacePrettierSettings
-
getProseWrap
public final ProseWrap getProseWrap()
Description copied from interface:PrettierSettings(experimental) How to wrap prose.Default: ProseWrap.PRESERVE
- Specified by:
getProseWrapin interfacePrettierSettings
-
getQuoteProps
public final QuoteProps getQuoteProps()
Description copied from interface:PrettierSettings(experimental) Change when properties in objects are quoted.Default: QuoteProps.ASNEEDED
- Specified by:
getQuotePropsin interfacePrettierSettings
-
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:
getRangeEndin interfacePrettierSettings
-
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:
getRangeStartin interfacePrettierSettings
-
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:
getRequirePragmain interfacePrettierSettings
-
getSemi
public final Boolean getSemi()
Description copied from interface:PrettierSettings(experimental) Print semicolons.Default: true
- Specified by:
getSemiin interfacePrettierSettings
-
getSingleQuote
public final Boolean getSingleQuote()
Description copied from interface:PrettierSettings(experimental) Use single quotes instead of double quotes.Default: false
- Specified by:
getSingleQuotein interfacePrettierSettings
-
getTabWidth
public final Number getTabWidth()
Description copied from interface:PrettierSettings(experimental) Number of spaces per indentation level.Default: 2
- Specified by:
getTabWidthin interfacePrettierSettings
-
getTrailingComma
public final TrailingComma getTrailingComma()
Description copied from interface:PrettierSettings(experimental) Print trailing commas wherever possible when multi-line.Default: TrailingComma.ES5
- Specified by:
getTrailingCommain interfacePrettierSettings
-
getUseTabs
public final Boolean getUseTabs()
Description copied from interface:PrettierSettings(experimental) Indent with tabs instead of spaces.Default: false
- Specified by:
getUseTabsin interfacePrettierSettings
-
getVueIndentScriptAndStyle
public final Boolean getVueIndentScriptAndStyle()
Description copied from interface:PrettierSettings(experimental) Indent script and style tags in Vue files.Default: false
- Specified by:
getVueIndentScriptAndStylein interfacePrettierSettings
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-