Class PrettierOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.PrettierOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrettierOptions>
- Enclosing interface:
- PrettierOptions
@Stability(Experimental) public static final class PrettierOptions.Builder extends Object implements software.amazon.jsii.Builder<PrettierOptions>
A builder forPrettierOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrettierOptionsbuild()Builds the configured instance.PrettierOptions.BuilderignoreFile(Boolean ignoreFile)Sets the value ofPrettierOptions.getIgnoreFile()PrettierOptions.BuilderignoreFileOptions(IgnoreFileOptions ignoreFileOptions)Sets the value ofPrettierOptions.getIgnoreFileOptions()PrettierOptions.Builderoverrides(List<? extends PrettierOverride> overrides)Sets the value ofPrettierOptions.getOverrides()PrettierOptions.Buildersettings(PrettierSettings settings)Sets the value ofPrettierOptions.getSettings()PrettierOptions.Builderyaml(Boolean yaml)Sets the value ofPrettierOptions.getYaml()
-
-
-
Method Detail
-
ignoreFile
@Stability(Experimental) public PrettierOptions.Builder ignoreFile(Boolean ignoreFile)
Sets the value ofPrettierOptions.getIgnoreFile()- Parameters:
ignoreFile- Defines an .prettierIgnore file.- Returns:
this
-
ignoreFileOptions
@Stability(Experimental) public PrettierOptions.Builder ignoreFileOptions(IgnoreFileOptions ignoreFileOptions)
Sets the value ofPrettierOptions.getIgnoreFileOptions()- Parameters:
ignoreFileOptions- Configuration options for .prettierignore file.- Returns:
this
-
overrides
@Stability(Experimental) public PrettierOptions.Builder overrides(List<? extends PrettierOverride> overrides)
Sets the value ofPrettierOptions.getOverrides()- Parameters:
overrides- Provide a list of patterns to override prettier configuration.- Returns:
this
-
settings
@Stability(Experimental) public PrettierOptions.Builder settings(PrettierSettings settings)
Sets the value ofPrettierOptions.getSettings()- Parameters:
settings- Prettier settings.- Returns:
this
-
yaml
@Stability(Experimental) public PrettierOptions.Builder yaml(Boolean yaml)
Sets the value ofPrettierOptions.getYaml()- Parameters:
yaml- Write prettier configuration as YAML instead of JSON.- Returns:
this
-
build
@Stability(Experimental) public PrettierOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrettierOptions>- Returns:
- a new instance of
PrettierOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-