Skip to main content

javascript.biome_config Submodule

Structs ​

Actions ​

Initializer ​

import { javascript } from 'projen'

const actions: javascript.biome_config.Actions = { ... }

Properties ​

NameTypeDescription
preset
projen.javascript.biome_config.PresetConfigSelects the baseline set of assist actions.
recommended
booleanEnables or disables Biome's recommended assist actions across all action groups.
source
projen.javascript.biome_config.SourceConfigures source-level actions such as organizing imports and sorting declarations.

presetOptional ​
public readonly preset: PresetConfig;
  • Type: projen.javascript.biome_config.PresetConfig
  • Default: recommended`.

Selects the baseline set of assist actions.

recommended enables Biome's recommended actions, all enables all actions, and none starts with no actions enabled. Group presets and explicit action settings override this preset. Defaults to recommended.


recommendedOptional ​
public readonly recommended: boolean;
  • Type: boolean
  • Default: true`.

Enables or disables Biome's recommended assist actions across all action groups.

Defaults to true.


sourceOptional ​
public readonly source: Source;
  • Type: projen.javascript.biome_config.Source

Configures source-level actions such as organizing imports and sorting declarations.

These actions are exposed through editor source actions and through CLI checking and application.


AssistConfiguration ​

Initializer ​

import { javascript } from 'projen'

const assistConfiguration: javascript.biome_config.AssistConfiguration = { ... }

Properties ​

NameTypeDescription
actions
projen.javascript.biome_config.ActionsThe assist-action configuration.
enabled
booleanEnables configured assist actions in the CLI and editor integrations.
includes
string[]A list of glob patterns selecting files on which assist actions can run.

actionsOptional ​
public readonly actions: Actions;
  • Type: projen.javascript.biome_config.Actions

The assist-action configuration.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean
  • Default: true`.

Enables configured assist actions in the CLI and editor integrations.

Defaults to true.


includesOptional ​
public readonly includes: string[];
  • Type: string[]

A list of glob patterns selecting files on which assist actions can run.

If omitted, all files selected by files.includes remain eligible for assist actions. An empty list selects no files. This option can only narrow the files selected by files.includes.


BiomeConfiguration ​

The configuration contained in biome.json or biome.jsonc.

Initializer ​

import { javascript } from 'projen'

const biomeConfiguration: javascript.biome_config.BiomeConfiguration = { ... }

Properties ​

NameTypeDescription
assist
projen.javascript.biome_config.AssistConfigurationThe assist configuration.
css
projen.javascript.biome_config.CssConfigurationConfiguration specific to CSS.
extends
anyExtends the current configuration with settings from one or more other Biome configurations.
files
projen.javascript.biome_config.FilesConfigurationConfigures which files Biome can discover and process.
formatter
projen.javascript.biome_config.FormatterConfigurationConfigures formatting for selected files.
graphql
projen.javascript.biome_config.GraphqlConfigurationConfiguration specific to GraphQL.
grit
projen.javascript.biome_config.GritConfigurationConfiguration specific to GritQL.
html
projen.javascript.biome_config.HtmlConfigurationConfiguration specific to HTML.
javascript
projen.javascript.biome_config.JsConfigurationConfiguration specific to JavaScript.
json
projen.javascript.biome_config.JsonConfigurationConfiguration specific to JSON.
linter
projen.javascript.biome_config.LinterConfigurationThe linter configuration.
markdown
projen.javascript.biome_config.MarkdownConfigurationConfiguration specific to Markdown.
overrides
projen.javascript.biome_config.OverridePattern[]Configures settings for files selected by each override.
plugins
any[]A list of GritQL plugins to load.
root
booleanMarks whether this file is the root configuration for a Biome project.
schema
stringThe JSON Schema used to validate the configuration and provide editor completion.
tailwind
projen.javascript.biome_config.TailwindConfigurationConfigures how Biome recognizes Tailwind class strings.
vcs
projen.javascript.biome_config.VcsConfigurationThe version control integration configuration.
yaml
projen.javascript.biome_config.YamlConfigurationConfiguration specific to YAML.

assistOptional ​
public readonly assist: AssistConfiguration;
  • Type: projen.javascript.biome_config.AssistConfiguration

The assist configuration.


cssOptional ​
public readonly css: CssConfiguration;
  • Type: projen.javascript.biome_config.CssConfiguration

Configuration specific to CSS.


extendsOptional ​
public readonly extends: any;
  • Type: any

Extends the current configuration with settings from one or more other Biome configurations.

Use "//" in a nested configuration to extend the root configuration at any nesting depth. Use an array to extend configurations by relative path or installed package specifier.

Biome merges configurations from left to right. Later configurations take precedence for single-value options, list entries are combined, and the current file is applied last.


filesOptional ​
public readonly files: FilesConfiguration;
  • Type: projen.javascript.biome_config.FilesConfiguration

Configures which files Biome can discover and process.


formatterOptional ​
public readonly formatter: FormatterConfiguration;
  • Type: projen.javascript.biome_config.FormatterConfiguration

Configures formatting for selected files.


graphqlOptional ​
public readonly graphql: GraphqlConfiguration;
  • Type: projen.javascript.biome_config.GraphqlConfiguration

Configuration specific to GraphQL.


gritOptional ​
public readonly grit: GritConfiguration;
  • Type: projen.javascript.biome_config.GritConfiguration

Configuration specific to GritQL.


htmlOptional ​
public readonly html: HtmlConfiguration;
  • Type: projen.javascript.biome_config.HtmlConfiguration

Configuration specific to HTML.


javascriptOptional ​
public readonly javascript: JsConfiguration;
  • Type: projen.javascript.biome_config.JsConfiguration

Configuration specific to JavaScript.


jsonOptional ​
public readonly json: JsonConfiguration;
  • Type: projen.javascript.biome_config.JsonConfiguration

Configuration specific to JSON.


linterOptional ​
public readonly linter: LinterConfiguration;
  • Type: projen.javascript.biome_config.LinterConfiguration

The linter configuration.


markdownOptional ​
public readonly markdown: MarkdownConfiguration;
  • Type: projen.javascript.biome_config.MarkdownConfiguration

Configuration specific to Markdown.


overridesOptional ​
public readonly overrides: OverridePattern[];
  • Type: projen.javascript.biome_config.OverridePattern[]

Configures settings for files selected by each override.

When multiple overrides configure the same single-value setting, the last matching override takes precedence.


pluginsOptional ​
public readonly plugins: any[];
  • Type: any[]

A list of GritQL plugins to load.


rootOptional ​
public readonly root: boolean;
  • Type: boolean
  • Default: true. Biome implicitly treats rootasfalse` when a nested configuration uses

Marks whether this file is the root configuration for a Biome project.

The root configuration establishes the project's base settings, while false marks a configuration found inside the project as nested rather than a second project root.

Defaults to true. Biome implicitly treats root as false when a nested configuration uses "extends": "//". All other nested configurations must explicitly set root to false.


schemaOptional ​
public readonly schema: string;
  • Type: string

The JSON Schema used to validate the configuration and provide editor completion.

Biome emits a diagnostic when a biomejs.dev schema URL specifies a version that differs from the running CLI version.


tailwindOptional ​
public readonly tailwind: TailwindConfiguration;
  • Type: projen.javascript.biome_config.TailwindConfiguration

Configures how Biome recognizes Tailwind class strings.


vcsOptional ​
public readonly vcs: VcsConfiguration;
  • Type: projen.javascript.biome_config.VcsConfiguration

The version control integration configuration.


yamlOptional ​
public readonly yaml: YamlConfiguration;
  • Type: projen.javascript.biome_config.YamlConfiguration

Configuration specific to YAML.


CssAssistConfiguration ​

Options that change how CSS assist behaves.

Initializer ​

import { javascript } from 'projen'

const cssAssistConfiguration: javascript.biome_config.CssAssistConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables assist actions for CSS.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables assist actions for CSS.


CssConfiguration ​

Options applied to CSS and languages that extend it.

Language-specific settings take precedence over corresponding global settings. Global settings apply when their language-specific counterparts are omitted, unless stated otherwise.

Initializer ​

import { javascript } from 'projen'

const cssConfiguration: javascript.biome_config.CssConfiguration = { ... }

Properties ​

NameTypeDescription
assist
projen.javascript.biome_config.CssAssistConfigurationCSS assist options.
formatter
projen.javascript.biome_config.CssFormatterConfigurationCSS formatter options.
globals
string[]Reserved for future CSS analyzer support.
linter
projen.javascript.biome_config.CssLinterConfigurationCSS linter options.
parser
projen.javascript.biome_config.CssParserConfigurationCSS parsing options.

assistOptional ​
public readonly assist: CssAssistConfiguration;
  • Type: projen.javascript.biome_config.CssAssistConfiguration

CSS assist options.


formatterOptional ​
public readonly formatter: CssFormatterConfiguration;
  • Type: projen.javascript.biome_config.CssFormatterConfiguration

CSS formatter options.


globalsOptional ​
public readonly globals: string[];
  • Type: string[]

Reserved for future CSS analyzer support.

This option currently has no effect.


linterOptional ​
public readonly linter: CssLinterConfiguration;
  • Type: projen.javascript.biome_config.CssLinterConfiguration

CSS linter options.


parserOptional ​
public readonly parser: CssParserConfiguration;
  • Type: projen.javascript.biome_config.CssParserConfiguration

CSS parsing options.


CssFormatterConfiguration ​

Options that change how the CSS formatter behaves.

Initializer ​

import { javascript } from 'projen'

const cssFormatterConfiguration: javascript.biome_config.CssFormatterConfiguration = { ... }

Properties ​

NameTypeDescription
delimiterSpacing
booleanControls spaces inside CSS parentheses and square brackets when their content fits on one line.
enabled
booleanEnables or disables the formatter for CSS and languages that extend it.
indentStyle
projen.javascript.biome_config.IndentStyleThe indent style applied to CSS and languages that extend it.
indentWidth
numberThe indentation width applied to CSS and languages that extend it.
lineEnding
projen.javascript.biome_config.LineEndingThe line ending applied to CSS and languages that extend it.
lineWidth
numberThe preferred maximum line width for CSS and languages that extend it.
quoteStyle
projen.javascript.biome_config.QuoteStyleSelects the preferred quote style for CSS strings.
trailingNewline
booleanWhether to add a trailing newline at the end of the file.

delimiterSpacingOptional ​
public readonly delimiterSpacing: boolean;
  • Type: boolean

Controls spaces inside CSS parentheses and square brackets when their content fits on one line.

When enabled, rgb(0, 0, 0) becomes rgb( 0, 0, 0 ) and [data-attr] becomes [ data-attr ]. Empty delimiters are unchanged.

If unset, inherits the global delimiter spacing setting.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the formatter for CSS and languages that extend it.


indentStyleOptional ​
public readonly indentStyle: IndentStyle;
  • Type: projen.javascript.biome_config.IndentStyle

The indent style applied to CSS and languages that extend it.

If unset, inherits the global indentation style.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number

The indentation width applied to CSS and languages that extend it.

If unset, inherits the global indentation width.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding

The line ending applied to CSS and languages that extend it.

If unset, inherits the global line ending.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number

The preferred maximum line width for CSS and languages that extend it.

If unset, inherits the global line width.


quoteStyleOptional ​
public readonly quoteStyle: QuoteStyle;
  • Type: projen.javascript.biome_config.QuoteStyle
  • Default: double`.

Selects the preferred quote style for CSS strings.

Biome may use the alternate quote when that avoids additional escaping. Quotes in @charset rules are currently preserved. Defaults to double.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean

Whether to add a trailing newline at the end of the file.

If unset, inherits the global trailing newline setting.


CssLinterConfiguration ​

Options that change how the CSS linter behaves.

Initializer ​

import { javascript } from 'projen'

const cssLinterConfiguration: javascript.biome_config.CssLinterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables the linter for CSS.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the linter for CSS.


CssParserConfiguration ​

Options that change how the CSS parser behaves.

Initializer ​

import { javascript } from 'projen'

const cssParserConfiguration: javascript.biome_config.CssParserConfiguration = { ... }

Properties ​

NameTypeDescription
allowWrongLineComments
booleanEnables // line comments in plain CSS.
cssModules
booleanEnables CSS Modules-specific syntax such as :local, :global, composes, and @value.
tailwindDirectives
booleanEnables parsing Tailwind CSS 4.0 directives and functions, including @theme, @utility, @variant, @source, and @apply. Defaults to false.

allowWrongLineCommentsOptional ​
public readonly allowWrongLineComments: boolean;
  • Type: boolean
  • Default: false`.

Enables // line comments in plain CSS.

Standard CSS treats // as delimiter characters rather than as a comment, and SCSS accepts // comments independently of this option. Defaults to false.


cssModulesOptional ​
public readonly cssModules: boolean;
  • Type: boolean

Enables CSS Modules-specific syntax such as :local, :global, composes, and @value.

When unset, Biome enables this syntax automatically for files whose names end in .module.css or .module.scss; otherwise, it defaults to false`. Enable it explicitly when CSS Module files use another naming convention.


tailwindDirectivesOptional ​
public readonly tailwindDirectives: boolean;
  • Type: boolean
  • Default: false`.

Enables parsing Tailwind CSS 4.0 directives and functions, including @theme, @utility, @variant, @source, and @apply. Defaults to false.


FilesConfiguration ​

The file handling configuration.

Initializer ​

import { javascript } from 'projen'

const filesConfiguration: javascript.biome_config.FilesConfiguration = { ... }

Properties ​

NameTypeDescription
experimentalScannerIgnores
string[]Deprecated: Please use force-ignore syntax in files.includes instead: https://biomejs.dev/reference/configuration/#filesincludes.
ignoreUnknown
booleanPrevents Biome from emitting diagnostics for unrecognized file types.
includes
string[]A list of glob patterns selecting which files and directories Biome can process.
maxSize
numberThe maximum source-file size in bytes.

experimentalScannerIgnoresOptional ​
public readonly experimentalScannerIgnores: string[];
  • Type: string[]

Deprecated: Please use force-ignore syntax in files.includes instead: https://biomejs.dev/reference/configuration/#filesincludes.

File or directory names that the scanner ignores unconditionally while crawling. Each value matches a complete path component, not a glob. Ignored files are not added to the module graph, so types are not inferred from them.


ignoreUnknownOptional ​
public readonly ignoreUnknown: boolean;
  • Type: boolean
  • Default: false`.

Prevents Biome from emitting diagnostics for unrecognized file types.

Defaults to false.


includesOptional ​
public readonly includes: string[];
  • Type: string[]

A list of glob patterns selecting which files and directories Biome can process.

If omitted, this option does not further restrict the supported files Biome can process. An empty list selects no files. Biome ignores files under node_modules even when they match a pattern.

The scanner uses these patterns and, when enabled, VCS ignore files while discovering nested configuration and ignore files. When enabled rules use the project or types domains, it also indexes source files and project dependencies. It may still discover required metadata or index excluded source files needed for analysis. A pattern beginning with !! prevents the scanner from indexing matching paths. Patterns are evaluated in order, and a pattern beginning with ! excludes matches.


maxSizeOptional ​
public readonly maxSize: number;
  • Type: number
  • Default: 1 MiB`.

The maximum source-file size in bytes.

Biome skips larger files and emits a warning diagnostic. Defaults to 1 MiB.


FormatterConfiguration ​

Configures formatting for selected files.

Initializer ​

import { javascript } from 'projen'

const formatterConfiguration: javascript.biome_config.FormatterConfiguration = { ... }

Properties ​

NameTypeDescription
attributePosition
projen.javascript.biome_config.AttributePositionThe attribute position style in HTML-like languages.
bracketSameLine
booleanControls the placement of the closing bracket for multiline HTML and JSX opening tags.
bracketSpacing
booleanControls spaces inside braces in supported single-line structures.
delimiterSpacing
booleanControls spaces immediately inside supported delimiters when their content fits on one line.
enabled
booleanEnables or disables the formatter.
expand
projen.javascript.biome_config.ExpandControls whether arrays and objects are formatted on one line or multiple lines.
formatWithErrors
booleanAllows formatting files that contain syntax errors when set to true.
includes
string[]A list of glob patterns selecting files to format.
indentStyle
projen.javascript.biome_config.IndentStyleUses tabs or spaces for indentation.
indentWidth
numberSets the indentation width.
lineEnding
projen.javascript.biome_config.LineEndingSelects the line ending.
lineWidth
numberSets the preferred maximum line width used when deciding where to wrap code.
trailingNewline
booleanWhether to add a trailing newline at the end of the file.
useEditorconfig
booleanControls whether Biome loads formatter settings from an .editorconfig file. Biome reads indent_style, indent_size, end_of_line, and insert_final_newline. Settings in biome.json or biome.jsonc take precedence. Biome loads only one .editorconfig. Nested cascading configurations and the EditorConfig root property are not supported. Defaults to false.

attributePositionOptional ​
public readonly attributePosition: AttributePosition;
  • Type: projen.javascript.biome_config.AttributePosition
  • Default: auto`.

The attribute position style in HTML-like languages.

Defaults to auto.


bracketSameLineOptional ​
public readonly bracketSameLine: boolean;
  • Type: boolean
  • Default: false`.

Controls the placement of the closing bracket for multiline HTML and JSX opening tags.

Biome places the bracket at the end of the last attribute line when enabled and on its own line when disabled. This also affects self-closing HTML elements, but self-closing JSX elements are unaffected. Defaults to false.


bracketSpacingOptional ​
public readonly bracketSpacing: boolean;
  • Type: boolean
  • Default: true`.

Controls spaces inside braces in supported single-line structures.

The affected structures vary by language. Defaults to true.


delimiterSpacingOptional ​
public readonly delimiterSpacing: boolean;
  • Type: boolean
  • Default: false`.

Controls spaces immediately inside supported delimiters when their content fits on one line.

It doesn't add spaces before opening delimiters or inside empty delimiters.

The affected delimiters vary by language. Defaults to false.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean
  • Default: true`.

Enables or disables the formatter.

Defaults to true.


expandOptional ​
public readonly expand: Expand;
  • Type: projen.javascript.biome_config.Expand
  • Default: auto`.

Controls whether arrays and objects are formatted on one line or multiple lines.

auto formats objects on multiple lines if the first property has a newline, and arrays on one line if they fit.

always formats arrays and objects on multiple lines.

never formats arrays and objects on one line if they fit.

Defaults to auto.

When formatting package.json, Biome uses always unless configured otherwise.


formatWithErrorsOptional ​
public readonly formatWithErrors: boolean;
  • Type: boolean
  • Default: false`.

Allows formatting files that contain syntax errors when set to true.

Defaults to false.


includesOptional ​
public readonly includes: string[];
  • Type: string[]

A list of glob patterns selecting files to format.

If omitted, all files selected by files.includes remain eligible for formatting. An empty list selects no files. This option can only narrow the files selected by files.includes.


indentStyleOptional ​
public readonly indentStyle: IndentStyle;
  • Type: projen.javascript.biome_config.IndentStyle
  • Default: tab`.

Uses tabs or spaces for indentation.

Defaults to tab.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number
  • Default: 2`.

Sets the indentation width.

With space indentation, this is the number of spaces emitted per indentation level. With tab indentation, Biome emits one tab per level and uses this value as the tab's display width when calculating line length. Accepted values are 0 through 24. Defaults to 2.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding
  • Default: lf`.

Selects the line ending.

auto uses the platform convention. Defaults to lf.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number
  • Default: 80`.

Sets the preferred maximum line width used when deciding where to wrap code.

Some content, such as long unbreakable strings, may still exceed this width. Accepted values are 1 through 320. Defaults to 80.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean
  • Default: true`. Disabling

Whether to add a trailing newline at the end of the file.

Defaults to true. Disabling this option can cause compatibility problems with other tools.


useEditorconfigOptional ​
public readonly useEditorconfig: boolean;
  • Type: boolean
  • Default: false`.

Controls whether Biome loads formatter settings from an .editorconfig file. Biome reads indent_style, indent_size, end_of_line, and insert_final_newline. Settings in biome.json or biome.jsonc take precedence. Biome loads only one .editorconfig. Nested cascading configurations and the EditorConfig root property are not supported. Defaults to false.


GraphqlAssistConfiguration ​

Options that change how GraphQL assist behaves.

Initializer ​

import { javascript } from 'projen'

const graphqlAssistConfiguration: javascript.biome_config.GraphqlAssistConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables assist actions for GraphQL.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean
  • Default: false`.

Enables or disables assist actions for GraphQL.

Defaults to false.


GraphqlConfiguration ​

Options applied to GraphQL files.

Language-specific settings take precedence over corresponding global settings. Global settings apply when their language-specific counterparts are omitted, unless stated otherwise.

Initializer ​

import { javascript } from 'projen'

const graphqlConfiguration: javascript.biome_config.GraphqlConfiguration = { ... }

Properties ​

NameTypeDescription
assist
projen.javascript.biome_config.GraphqlAssistConfigurationGraphQL assist options.
formatter
projen.javascript.biome_config.GraphqlFormatterConfigurationGraphQL formatter options.
linter
projen.javascript.biome_config.GraphqlLinterConfigurationGraphQL linter options.

assistOptional ​
public readonly assist: GraphqlAssistConfiguration;
  • Type: projen.javascript.biome_config.GraphqlAssistConfiguration

GraphQL assist options.


formatterOptional ​
public readonly formatter: GraphqlFormatterConfiguration;
  • Type: projen.javascript.biome_config.GraphqlFormatterConfiguration

GraphQL formatter options.


linterOptional ​
public readonly linter: GraphqlLinterConfiguration;
  • Type: projen.javascript.biome_config.GraphqlLinterConfiguration

GraphQL linter options.


GraphqlFormatterConfiguration ​

Options that change how the GraphQL formatter behaves.

Initializer ​

import { javascript } from 'projen'

const graphqlFormatterConfiguration: javascript.biome_config.GraphqlFormatterConfiguration = { ... }

Properties ​

NameTypeDescription
bracketSpacing
booleanControls spaces inside the braces of single-line GraphQL object values.
enabled
booleanEnables or disables the formatter for GraphQL.
indentStyle
projen.javascript.biome_config.IndentStyleThe indent style applied to GraphQL files.
indentWidth
numberThe indentation width applied to GraphQL files.
lineEnding
projen.javascript.biome_config.LineEndingThe line ending applied to GraphQL files.
lineWidth
numberThe preferred maximum line width for GraphQL files.
quoteStyle
projen.javascript.biome_config.QuoteStyleReserved for future formatter support.
trailingNewline
booleanWhether to add a trailing newline at the end of the file.

bracketSpacingOptional ​
public readonly bracketSpacing: boolean;
  • Type: boolean

Controls spaces inside the braces of single-line GraphQL object values.

Biome formats {name: "Biome"} when disabled and { name: "Biome" } when enabled. If unset, inherits the global bracket spacing setting.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the formatter for GraphQL.


indentStyleOptional ​
public readonly indentStyle: IndentStyle;
  • Type: projen.javascript.biome_config.IndentStyle

The indent style applied to GraphQL files.

If unset, inherits the global indentation style.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number

The indentation width applied to GraphQL files.

If unset, inherits the global indentation width.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding

The line ending applied to GraphQL files.

If unset, inherits the global line ending.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number

The preferred maximum line width for GraphQL files.

If unset, inherits the global line width.


quoteStyleOptional ​
public readonly quoteStyle: QuoteStyle;
  • Type: projen.javascript.biome_config.QuoteStyle

Reserved for future formatter support.

The current formatter preserves standard double-quoted GraphQL strings and does not use this setting.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean

Whether to add a trailing newline at the end of the file.

If unset, inherits the global trailing newline setting.


GraphqlLinterConfiguration ​

Options that change how the GraphQL linter behaves.

Initializer ​

import { javascript } from 'projen'

const graphqlLinterConfiguration: javascript.biome_config.GraphqlLinterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables the linter for GraphQL.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the linter for GraphQL.


GritAssistConfiguration ​

Options that change how GritQL assist behaves.

Initializer ​

import { javascript } from 'projen'

const gritAssistConfiguration: javascript.biome_config.GritAssistConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables assist actions for GritQL.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables assist actions for GritQL.


GritConfiguration ​

Options applied to GritQL files.

Language-specific settings take precedence over corresponding global settings. Global settings apply when their language-specific counterparts are omitted, unless stated otherwise.

Initializer ​

import { javascript } from 'projen'

const gritConfiguration: javascript.biome_config.GritConfiguration = { ... }

Properties ​

NameTypeDescription
assist
projen.javascript.biome_config.GritAssistConfigurationGritQL assist options.
formatter
projen.javascript.biome_config.GritFormatterConfigurationGritQL formatter options.
linter
projen.javascript.biome_config.GritLinterConfigurationGritQL linter options.

assistOptional ​
public readonly assist: GritAssistConfiguration;
  • Type: projen.javascript.biome_config.GritAssistConfiguration

GritQL assist options.


formatterOptional ​
public readonly formatter: GritFormatterConfiguration;
  • Type: projen.javascript.biome_config.GritFormatterConfiguration

GritQL formatter options.


linterOptional ​
public readonly linter: GritLinterConfiguration;
  • Type: projen.javascript.biome_config.GritLinterConfiguration

GritQL linter options.


GritFormatterConfiguration ​

Options that change how the GritQL formatter behaves.

Initializer ​

import { javascript } from 'projen'

const gritFormatterConfiguration: javascript.biome_config.GritFormatterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables the formatter for GritQL.
indentStyle
projen.javascript.biome_config.IndentStyleThe indent style applied to GritQL files.
indentWidth
numberThe indentation width applied to GritQL files.
lineEnding
projen.javascript.biome_config.LineEndingThe line ending applied to GritQL files.
lineWidth
numberThe preferred maximum line width for GritQL files.
trailingNewline
booleanWhether to add a trailing newline at the end of the file.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the formatter for GritQL.


indentStyleOptional ​
public readonly indentStyle: IndentStyle;
  • Type: projen.javascript.biome_config.IndentStyle

The indent style applied to GritQL files.

If unset, inherits the global indentation style.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number

The indentation width applied to GritQL files.

If unset, inherits the global indentation width.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding

The line ending applied to GritQL files.

If unset, inherits the global line ending.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number

The preferred maximum line width for GritQL files.

If unset, inherits the global line width.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean

Whether to add a trailing newline at the end of the file.

If unset, inherits the global trailing newline setting.


GritLinterConfiguration ​

Options that change how the GritQL linter behaves.

Initializer ​

import { javascript } from 'projen'

const gritLinterConfiguration: javascript.biome_config.GritLinterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables the linter for GritQL.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the linter for GritQL.


HtmlAssistConfiguration ​

Options that change how HTML assist behaves.

Initializer ​

import { javascript } from 'projen'

const htmlAssistConfiguration: javascript.biome_config.HtmlAssistConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables assist actions for HTML and languages that extend it.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables assist actions for HTML and languages that extend it.


HtmlConfiguration ​

Options applied to HTML and languages that extend it.

Full HTML support and the HTML formatter are experimental. Biome aims to minimize breaking changes, but bug fixes and new features may change formatting output or diagnostics.

Language-specific settings take precedence over corresponding global settings. Global settings apply when their language-specific counterparts are omitted, unless stated otherwise.

Initializer ​

import { javascript } from 'projen'

const htmlConfiguration: javascript.biome_config.HtmlConfiguration = { ... }

Properties ​

NameTypeDescription
assist
projen.javascript.biome_config.HtmlAssistConfigurationHTML assist options.
experimentalFullSupportEnabled
booleanEnables Biome's experimental full support for .html, .vue, .svelte, and .astro files. In this mode, Biome parses the complete document and can analyze or format its markup and supported embedded languages.
formatter
projen.javascript.biome_config.HtmlFormatterConfigurationHTML formatter options.
linter
projen.javascript.biome_config.HtmlLinterConfigurationHTML linter options.
parser
projen.javascript.biome_config.HtmlParserConfigurationHTML parsing options.

assistOptional ​
public readonly assist: HtmlAssistConfiguration;
  • Type: projen.javascript.biome_config.HtmlAssistConfiguration

HTML assist options.


experimentalFullSupportEnabledOptional ​
public readonly experimentalFullSupportEnabled: boolean;
  • Type: boolean
  • Default: false`.

Enables Biome's experimental full support for .html, .vue, .svelte, and .astro files. In this mode, Biome parses the complete document and can analyze or format its markup and supported embedded languages.

When disabled, .vue, .svelte, and .astro files use legacy handling, which extracts their JavaScript or TypeScript portions and leaves the rest unchanged. This option selects how these files are processed. It does not enable the HTML formatter. Set html.formatter.enabled to true to format complete HTML, Vue, Svelte, and Astro files. Defaults to false.


formatterOptional ​
public readonly formatter: HtmlFormatterConfiguration;
  • Type: projen.javascript.biome_config.HtmlFormatterConfiguration

HTML formatter options.


linterOptional ​
public readonly linter: HtmlLinterConfiguration;
  • Type: projen.javascript.biome_config.HtmlLinterConfiguration

HTML linter options.


parserOptional ​
public readonly parser: HtmlParserConfiguration;
  • Type: projen.javascript.biome_config.HtmlParserConfiguration

HTML parsing options.


HtmlFormatterConfiguration ​

Options that change how the HTML formatter behaves.

Initializer ​

import { javascript } from 'projen'

const htmlFormatterConfiguration: javascript.biome_config.HtmlFormatterConfiguration = { ... }

Properties ​

NameTypeDescription
attributePosition
projen.javascript.biome_config.AttributePositionThe attribute position style in HTML elements.
bracketSameLine
booleanControls the placement of the closing bracket for multiline HTML opening tags.
enabled
booleanEnables or disables the formatter for HTML and languages that extend it.
indentScriptAndStyle
booleanControls whether the content of <script> and <style> tags is indented by one level in HTML, Vue, Svelte, and Astro files.
indentStyle
projen.javascript.biome_config.IndentStyleThe indent style applied to HTML and languages that extend it.
indentWidth
numberThe indentation width applied to HTML and languages that extend it.
lineEnding
projen.javascript.biome_config.LineEndingThe line ending applied to HTML and languages that extend it.
lineWidth
numberThe preferred maximum line width for HTML and languages that extend it.
selfCloseVoidElements
projen.javascript.biome_config.SelfCloseVoidElementsControls whether void elements are self-closed.
trailingNewline
booleanWhether to add a trailing newline at the end of the file.
whitespaceSensitivity
projen.javascript.biome_config.WhitespaceSensitivityControls how the formatter treats whitespace around text and child elements in HTML, Vue, Svelte, and Astro markup.

attributePositionOptional ​
public readonly attributePosition: AttributePosition;
  • Type: projen.javascript.biome_config.AttributePosition

The attribute position style in HTML elements.

If unset, inherits the global attribute position setting.


bracketSameLineOptional ​
public readonly bracketSameLine: boolean;
  • Type: boolean

Controls the placement of the closing bracket for multiline HTML opening tags.

Biome places the bracket at the end of the last attribute line when enabled and on its own line after the last attribute when disabled. This option also affects self-closing HTML elements. If unset, inherits the global bracketSameLine setting.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the formatter for HTML and languages that extend it.

The formatter is experimental and disabled by default. Formatting complete HTML, Vue, Svelte, and Astro files requires html.experimentalFullSupportEnabled to be true.


indentScriptAndStyleOptional ​
public readonly indentScriptAndStyle: boolean;
  • Type: boolean
  • Default: false`.

Controls whether the content of <script> and <style> tags is indented by one level in HTML, Vue, Svelte, and Astro files.

Defaults to false.


indentStyleOptional ​
public readonly indentStyle: IndentStyle;
  • Type: projen.javascript.biome_config.IndentStyle

The indent style applied to HTML and languages that extend it.

If unset, inherits the global indentation style.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number

The indentation width applied to HTML and languages that extend it.

If unset, inherits the global indentation width.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding

The line ending applied to HTML and languages that extend it.

If unset, inherits the global line ending.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number

The preferred maximum line width for HTML and languages that extend it.

If unset, inherits the global line width.


selfCloseVoidElementsOptional ​
public readonly selfCloseVoidElements: SelfCloseVoidElements;
  • Type: projen.javascript.biome_config.SelfCloseVoidElements
  • Default: never`.

Controls whether void elements are self-closed.

Defaults to never.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean

Whether to add a trailing newline at the end of the file.

Unlike other language-specific trailing newline settings, this option defaults to true instead of inheriting the global setting.


whitespaceSensitivityOptional ​
public readonly whitespaceSensitivity: WhitespaceSensitivity;
  • Type: projen.javascript.biome_config.WhitespaceSensitivity
  • Default: css`.

Controls how the formatter treats whitespace around text and child elements in HTML, Vue, Svelte, and Astro markup.

The ignore setting should be used only when whitespace cannot affect rendered output. Defaults to css.


HtmlLinterConfiguration ​

Options that change how the HTML linter behaves.

Initializer ​

import { javascript } from 'projen'

const htmlLinterConfiguration: javascript.biome_config.HtmlLinterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables the linter for HTML and languages that extend it.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the linter for HTML and languages that extend it.


HtmlParserConfiguration ​

Options that change how the HTML parser behaves.

Initializer ​

import { javascript } from 'projen'

const htmlParserConfiguration: javascript.biome_config.HtmlParserConfiguration = { ... }

Properties ​

NameTypeDescription
interpolation
booleanEnables double-curly interpolation expressions such as {{ expression }} in .html files. Defaults to false.
vue
booleanEnables parsing Vue syntax (v-if, v-bind, etc.) in .html files. Enabling this option also enables interpolation implicitly.

interpolationOptional ​
public readonly interpolation: boolean;
  • Type: boolean
  • Default: false`.

Enables double-curly interpolation expressions such as {{ expression }} in .html files. Defaults to false.


vueOptional ​
public readonly vue: boolean;
  • Type: boolean
  • Default: false`.

Enables parsing Vue syntax (v-if, v-bind, etc.) in .html files. Enabling this option also enables interpolation implicitly.

Biome will already automatically enable Vue parsing in .vue files, so you probably don't need to enable this option. This only affects .html files, and does not change how .vue, .svelte, or .astro files are parsed. Defaults to false.


JsAssistConfiguration ​

Assist options specific to the JavaScript assist.

Initializer ​

import { javascript } from 'projen'

const jsAssistConfiguration: javascript.biome_config.JsAssistConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables assist actions for JavaScript and languages that extend it.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables assist actions for JavaScript and languages that extend it.


JsConfiguration ​

Options applied to JavaScript, TypeScript, JSX, TSX, and supported languages that embed JavaScript.

Language-specific settings take precedence over corresponding global settings. Global settings apply when their language-specific counterparts are omitted, unless stated otherwise.

Initializer ​

import { javascript } from 'projen'

const jsConfiguration: javascript.biome_config.JsConfiguration = { ... }

Properties ​

NameTypeDescription
assist
projen.javascript.biome_config.JsAssistConfigurationJavaScript assist options.
experimentalEmbeddedSnippetsEnabled
booleanEnables experimental parsing, formatting, linting, diagnostics, and fixes for CSS and GraphQL snippets embedded in JavaScript and TypeScript template literals.
formatter
projen.javascript.biome_config.JsFormatterConfigurationJavaScript formatter options.
globals
string[]A list of additional names that Biome's JavaScript linter treats as predefined global bindings.
jsxRuntime
projen.javascript.biome_config.JsxRuntimeConfigures how the analyzer accounts for imports used by JSX.
linter
projen.javascript.biome_config.JsLinterConfigurationJavaScript linter options.
parser
projen.javascript.biome_config.JsParserConfigurationJavaScript parser options.
resolver
projen.javascript.biome_config.JsResolverConfigurationJavaScript module and dependency resolver options.

assistOptional ​
public readonly assist: JsAssistConfiguration;
  • Type: projen.javascript.biome_config.JsAssistConfiguration

JavaScript assist options.


experimentalEmbeddedSnippetsEnabledOptional ​
public readonly experimentalEmbeddedSnippetsEnabled: boolean;
  • Type: boolean
  • Default: false`.

Enables experimental parsing, formatting, linting, diagnostics, and fixes for CSS and GraphQL snippets embedded in JavaScript and TypeScript template literals.

Biome recognizes CSS in css and styled templates and GraphQL in gql and graphql templates or calls. Templates containing interpolations are not currently supported. Defaults to false.


formatterOptional ​
public readonly formatter: JsFormatterConfiguration;
  • Type: projen.javascript.biome_config.JsFormatterConfiguration

JavaScript formatter options.


globalsOptional ​
public readonly globals: string[];
  • Type: string[]

A list of additional names that Biome's JavaScript linter treats as predefined global bindings.

Use this for globals supplied by a runtime, framework, or external script that are not declared in the source file.


jsxRuntimeOptional ​
public readonly jsxRuntime: JsxRuntime;
  • Type: projen.javascript.biome_config.JsxRuntime
  • Default: transparent`.

Configures how the analyzer accounts for imports used by JSX.

This option does not transform JSX or select a runtime for a build tool. Defaults to transparent.


linterOptional ​
public readonly linter: JsLinterConfiguration;
  • Type: projen.javascript.biome_config.JsLinterConfiguration

JavaScript linter options.


parserOptional ​
public readonly parser: JsParserConfiguration;
  • Type: projen.javascript.biome_config.JsParserConfiguration

JavaScript parser options.


resolverOptional ​
public readonly resolver: JsResolverConfiguration;
  • Type: projen.javascript.biome_config.JsResolverConfiguration

JavaScript module and dependency resolver options.


JsFormatterConfiguration ​

Formatting options specific to JavaScript and languages that extend it.

Initializer ​

import { javascript } from 'projen'

const jsFormatterConfiguration: javascript.biome_config.JsFormatterConfiguration = { ... }

Properties ​

NameTypeDescription
arrowParentheses
projen.javascript.biome_config.ArrowParenthesesControls parentheses around arrow-function parameters.
attributePosition
projen.javascript.biome_config.AttributePositionThe attribute position style in JSX elements.
bracketSameLine
booleanControls the placement of the closing bracket for multiline JSX opening tags.
bracketSpacing
booleanControls spaces inside the braces of single-line object literals.
delimiterSpacing
booleanControls spaces immediately inside supported JavaScript and TypeScript delimiters when their content fits on one line.
enabled
booleanEnables or disables the formatter for JavaScript and languages that extend it.
expand
projen.javascript.biome_config.ExpandUses the same auto, always, and never behavior as the global expansion setting.
indentStyle
projen.javascript.biome_config.IndentStyleThe indent style applied to JavaScript and languages that extend it.
indentWidth
numberThe indentation width applied to JavaScript and languages that extend it.
jsxQuoteStyle
projen.javascript.biome_config.QuoteStyleSelects the preferred quote style for JSX attribute values.
lineEnding
projen.javascript.biome_config.LineEndingThe line ending applied to JavaScript and languages that extend it.
lineWidth
numberThe preferred maximum line width applied to JavaScript and languages that extend it.
operatorLinebreak
projen.javascript.biome_config.OperatorLinebreakWhen breaking binary expressions into multiple lines, whether to break them before or after the binary operator.
quoteProperties
projen.javascript.biome_config.QuotePropertiesControls whether quotes around object property names are preserved.
quoteStyle
projen.javascript.biome_config.QuoteStyleSelects the preferred quote style for JavaScript and TypeScript string literals.
semicolons
projen.javascript.biome_config.SemicolonsPrints semicolons after every statement or only where needed to avoid automatic semicolon insertion hazards.
trailingCommas
projen.javascript.biome_config.JsTrailingCommasControls trailing commas in multiline comma-separated structures.
trailingNewline
booleanWhether to add a trailing newline at the end of the file.

arrowParenthesesOptional ​
public readonly arrowParentheses: ArrowParentheses;
  • Type: projen.javascript.biome_config.ArrowParentheses
  • Default: always`.

Controls parentheses around arrow-function parameters.

always always prints parentheses, while asNeeded omits them when an arrow function has one parameter and the syntax permits it. Defaults to always.


attributePositionOptional ​
public readonly attributePosition: AttributePosition;
  • Type: projen.javascript.biome_config.AttributePosition

The attribute position style in JSX elements.

If unset, inherits the global attribute position setting.


bracketSameLineOptional ​
public readonly bracketSameLine: boolean;
  • Type: boolean

Controls the placement of the closing bracket for multiline JSX opening tags.

Biome places the bracket at the end of the last attribute line when enabled and on its own line after the last attribute when disabled. Self-closing JSX elements are unaffected. If unset, inherits the global bracket placement setting.


bracketSpacingOptional ​
public readonly bracketSpacing: boolean;
  • Type: boolean

Controls spaces inside the braces of single-line object literals.

Biome formats {value: 1} when disabled and { value: 1 } when enabled. If unset, inherits the global bracket spacing setting.


delimiterSpacingOptional ​
public readonly delimiterSpacing: boolean;
  • Type: boolean

Controls spaces immediately inside supported JavaScript and TypeScript delimiters when their content fits on one line.

This affects parentheses, square brackets, template interpolations, TypeScript angle brackets, and JSX expression braces. Empty delimiters are unchanged.

It also controls spacing after logical NOT operators. In a chain of logical NOT operators, only the final operator receives a following space. Biome doesn't add spaces before opening delimiters.

If unset, inherits the global delimiter spacing setting.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the formatter for JavaScript and languages that extend it.


expandOptional ​
public readonly expand: Expand;
  • Type: projen.javascript.biome_config.Expand

Uses the same auto, always, and never behavior as the global expansion setting.

If unset, inherits the global expansion setting.


indentStyleOptional ​
public readonly indentStyle: IndentStyle;
  • Type: projen.javascript.biome_config.IndentStyle

The indent style applied to JavaScript and languages that extend it.

If unset, inherits the global indentation style.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number

The indentation width applied to JavaScript and languages that extend it.

If unset, inherits the global indentation width.


jsxQuoteStyleOptional ​
public readonly jsxQuoteStyle: QuoteStyle;
  • Type: projen.javascript.biome_config.QuoteStyle
  • Default: double`.

Selects the preferred quote style for JSX attribute values.

Defaults to double.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding

The line ending applied to JavaScript and languages that extend it.

If unset, inherits the global line ending.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number

The preferred maximum line width applied to JavaScript and languages that extend it.

If unset, inherits the global line width.


operatorLinebreakOptional ​
public readonly operatorLinebreak: OperatorLinebreak;
  • Type: projen.javascript.biome_config.OperatorLinebreak
  • Default: after`.

When breaking binary expressions into multiple lines, whether to break them before or after the binary operator.

Defaults to after.


quotePropertiesOptional ​
public readonly quoteProperties: QuoteProperties;
  • Type: projen.javascript.biome_config.QuoteProperties
  • Default: asNeeded` in configuration

Controls whether quotes around object property names are preserved.

asNeeded removes quotes when the property name is valid without them, while preserve keeps quotes around property names that were quoted in the input. Defaults to asNeeded in configuration (as-needed on the CLI).


quoteStyleOptional ​
public readonly quoteStyle: QuoteStyle;
  • Type: projen.javascript.biome_config.QuoteStyle
  • Default: double`.

Selects the preferred quote style for JavaScript and TypeScript string literals.

Biome may use the alternate quote when that avoids additional escaping. Defaults to double.


semicolonsOptional ​
public readonly semicolons: Semicolons;
  • Type: projen.javascript.biome_config.Semicolons
  • Default: always`.

Prints semicolons after every statement or only where needed to avoid automatic semicolon insertion hazards.

Defaults to always.


trailingCommasOptional ​
public readonly trailingCommas: JsTrailingCommas;
  • Type: projen.javascript.biome_config.JsTrailingCommas
  • Default: all`.

Controls trailing commas in multiline comma-separated structures.

all adds trailing commas wherever syntax permits, including function parameters and calls. es5 adds them only in constructs supported by ES5, such as array and object literals, and excludes function parameters, function calls, and TypeScript type parameters. none removes trailing commas. Defaults to all.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean

Whether to add a trailing newline at the end of the file.

If unset, inherits the global trailing newline setting.


JsLinterConfiguration ​

Linter options specific to the JavaScript linter.

Initializer ​

import { javascript } from 'projen'

const jsLinterConfiguration: javascript.biome_config.JsLinterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables the linter for JavaScript and languages that extend it.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the linter for JavaScript and languages that extend it.


JsonAssistConfiguration ​

Assist options specific to the JSON linter.

Initializer ​

import { javascript } from 'projen'

const jsonAssistConfiguration: javascript.biome_config.JsonAssistConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables assist actions for JSON and languages that extend it.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables assist actions for JSON and languages that extend it.


JsonConfiguration ​

Options applied to JSON, JSONC, and recognized JSON-based configuration files.

Language-specific settings take precedence over corresponding global settings. Global settings apply when their language-specific counterparts are omitted, unless stated otherwise.

Initializer ​

import { javascript } from 'projen'

const jsonConfiguration: javascript.biome_config.JsonConfiguration = { ... }

Properties ​

NameTypeDescription
assist
projen.javascript.biome_config.JsonAssistConfigurationAssist options.
formatter
projen.javascript.biome_config.JsonFormatterConfigurationFormatting options.
linter
projen.javascript.biome_config.JsonLinterConfigurationLinting options.
parser
projen.javascript.biome_config.JsonParserConfigurationParsing options.

assistOptional ​
public readonly assist: JsonAssistConfiguration;
  • Type: projen.javascript.biome_config.JsonAssistConfiguration

Assist options.


formatterOptional ​
public readonly formatter: JsonFormatterConfiguration;
  • Type: projen.javascript.biome_config.JsonFormatterConfiguration

Formatting options.


linterOptional ​
public readonly linter: JsonLinterConfiguration;
  • Type: projen.javascript.biome_config.JsonLinterConfiguration

Linting options.


parserOptional ​
public readonly parser: JsonParserConfiguration;
  • Type: projen.javascript.biome_config.JsonParserConfiguration

Parsing options.


JsonFormatterConfiguration ​

Initializer ​

import { javascript } from 'projen'

const jsonFormatterConfiguration: javascript.biome_config.JsonFormatterConfiguration = { ... }

Properties ​

NameTypeDescription
bracketSpacing
booleanWhether to insert spaces inside braces in object literals.
delimiterSpacing
booleanControls spaces inside JSON square brackets when their content fits on one line.
enabled
booleanEnables or disables the formatter for JSON and languages that extend it.
expand
projen.javascript.biome_config.ExpandUses the same auto, always, and never behavior as the global expansion setting.
indentStyle
projen.javascript.biome_config.IndentStyleThe indent style applied to JSON and languages that extend it.
indentWidth
numberThe indentation width applied to JSON and languages that extend it.
lineEnding
projen.javascript.biome_config.LineEndingThe line ending applied to JSON and languages that extend it.
lineWidth
numberThe preferred maximum line width applied to JSON and languages that extend it.
trailingCommas
projen.javascript.biome_config.JsonTrailingCommasControls trailing commas in multiline JSON arrays and objects.
trailingNewline
booleanWhether to add a trailing newline at the end of the file.

bracketSpacingOptional ​
public readonly bracketSpacing: boolean;
  • Type: boolean

Whether to insert spaces inside braces in object literals.

If unset, inherits the global bracket spacing setting.


delimiterSpacingOptional ​
public readonly delimiterSpacing: boolean;
  • Type: boolean

Controls spaces inside JSON square brackets when their content fits on one line.

When enabled, [1, 2, 3] becomes [ 1, 2, 3 ]. Empty brackets are unchanged.

If unset, inherits the global delimiter spacing setting.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the formatter for JSON and languages that extend it.


expandOptional ​
public readonly expand: Expand;
  • Type: projen.javascript.biome_config.Expand

Uses the same auto, always, and never behavior as the global expansion setting.

If unset, inherits the global expansion setting.

When formatting package.json, Biome uses always unless configured otherwise.


indentStyleOptional ​
public readonly indentStyle: IndentStyle;
  • Type: projen.javascript.biome_config.IndentStyle

The indent style applied to JSON and languages that extend it.

If unset, inherits the global indentation style.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number

The indentation width applied to JSON and languages that extend it.

If unset, inherits the global indentation width.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding

The line ending applied to JSON and languages that extend it.

If unset, inherits the global line ending.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number

The preferred maximum line width applied to JSON and languages that extend it.

If unset, inherits the global line width.


trailingCommasOptional ​
public readonly trailingCommas: JsonTrailingCommas;
  • Type: projen.javascript.biome_config.JsonTrailingCommas
  • Default: none`.

Controls trailing commas in multiline JSON arrays and objects.

none removes trailing commas, while all adds them wherever the JSON formatter supports them. Use all only for JSON variants that allow trailing commas, and ensure json.parser.allowTrailingCommas is enabled or automatically detected for those files. Defaults to none.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean

Whether to add a trailing newline at the end of the file.

If unset, inherits the global trailing newline setting.


JsonLinterConfiguration ​

Linter options specific to the JSON linter.

Initializer ​

import { javascript } from 'projen'

const jsonLinterConfiguration: javascript.biome_config.JsonLinterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanEnables or disables the linter for JSON and languages that extend it.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the linter for JSON and languages that extend it.


JsonParserConfiguration ​

Options that change how the JSON parser behaves.

Initializer ​

import { javascript } from 'projen'

const jsonParserConfiguration: javascript.biome_config.JsonParserConfiguration = { ... }

Properties ​

NameTypeDescription
allowComments
booleanControls whether comments are allowed in files parsed as JSON.
allowTrailingCommas
booleanControls whether trailing commas are allowed in files parsed as JSON.

allowCommentsOptional ​
public readonly allowComments: boolean;
  • Type: boolean

Controls whether comments are allowed in files parsed as JSON.

When unset, Biome follows the file type's default behavior. An explicit value overrides that behavior, except that biome.jsonc always allows comments.


allowTrailingCommasOptional ​
public readonly allowTrailingCommas: boolean;
  • Type: boolean

Controls whether trailing commas are allowed in files parsed as JSON.

When unset, Biome follows the file type's default behavior. An explicit value overrides that behavior, except that biome.jsonc always allows trailing commas.


JsParserConfiguration ​

Options that change how the JavaScript parser behaves.

Initializer ​

import { javascript } from 'projen'

const jsParserConfiguration: javascript.biome_config.JsParserConfiguration = { ... }

Properties ​

NameTypeDescription
jsxEverywhere
booleanControls whether .js, .mjs, and .cjs files may contain JSX syntax. Disabling this option causes JSX in those files to raise a diagnostic. Defaults to true.
unsafeParameterDecoratorsEnabled
booleanEnables parsing decorators on class parameters.

jsxEverywhereOptional ​
public readonly jsxEverywhere: boolean;
  • Type: boolean
  • Default: true`.

Controls whether .js, .mjs, and .cjs files may contain JSX syntax. Disabling this option causes JSX in those files to raise a diagnostic. Defaults to true.


unsafeParameterDecoratorsEnabledOptional ​
public readonly unsafeParameterDecoratorsEnabled: boolean;
  • Type: boolean
  • Default: false`.

Enables parsing decorators on class parameters.

This syntax belongs to an old experimental proposal and may change. Defaults to false.


JsResolverConfiguration ​

Resolver options specific to JavaScript files.

Initializer ​

import { javascript } from 'projen'

const jsResolverConfiguration: javascript.biome_config.JsResolverConfiguration = { ... }

Properties ​

NameTypeDescription
experimentalPnpmCatalogs
booleanEnables pnpm workspace catalog resolution for JavaScript package manifests.

experimentalPnpmCatalogsOptional ​
public readonly experimentalPnpmCatalogs: boolean;
  • Type: boolean
  • Default: false`.

Enables pnpm workspace catalog resolution for JavaScript package manifests.

Opt-in:

  • Set javascript.resolver.experimentalPnpmCatalogs to true.

Scope:

  • Resolves catalog: and catalog:<name> dependency versions from package.json.
  • Applies to dependencies, devDependencies, and peerDependencies.

Fail-safe behavior:

  • If pnpm-workspace.yaml is missing, unreadable, or cannot be parsed, Biome silently falls back to the default behavior (as if this option were disabled).
  • Unknown keys and unsupported value shapes in pnpm-workspace.yaml are ignored.

Limitations:

  • Only pnpm-workspace.yaml is read.
  • Biome only reads top-level catalog / catalogs mappings and scalar string entries.

Defaults to false.


LinterConfiguration ​

Initializer ​

import { javascript } from 'projen'

const linterConfiguration: javascript.biome_config.LinterConfiguration = { ... }

Properties ​

NameTypeDescription
domains
projen.javascript.biome_config.RuleDomainsConfigures rules associated with a framework, library, project-wide analysis, or type analysis.
enabled
booleanEnables or disables the linter.
includes
string[]A list of glob patterns selecting files to lint.
rules
projen.javascript.biome_config.RulesThe lint-rule configuration.

domainsOptional ​
public readonly domains: RuleDomains;
  • Type: projen.javascript.biome_config.RuleDomains

Configures rules associated with a framework, library, project-wide analysis, or type analysis.

Keys are domain names and values are all, recommended, or none. Enabling rules from the project or types domains activates project and dependency scanning. The types domain also enables type-aware resolution.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean
  • Default: true`.

Enables or disables the linter.

Defaults to true.


includesOptional ​
public readonly includes: string[];
  • Type: string[]

A list of glob patterns selecting files to lint.

If omitted, all files selected by files.includes remain eligible for linting. An empty list selects no files. This option can only narrow the files selected by files.includes.


rulesOptional ​
public readonly rules: Rules;
  • Type: projen.javascript.biome_config.Rules

The lint-rule configuration.


MarkdownConfiguration ​

Options applied to Markdown files.

Initializer ​

import { javascript } from 'projen'

const markdownConfiguration: javascript.biome_config.MarkdownConfiguration = { ... }

Properties ​

NameTypeDescription
analyzeEmbeds
booleanRuns the linter and assist actions on the code inside fenced code blocks, frontmatter, and HTML blocks, with the rules and actions of the code's language.
formatter
projen.javascript.biome_config.MarkdownFormatterConfigurationFormatter options.
linter
projen.javascript.biome_config.MarkdownLinterConfigurationLinter options.
parser
projen.javascript.biome_config.MarkdownParserConfigurationParsing options.

analyzeEmbedsOptional ​
public readonly analyzeEmbeds: boolean;
  • Type: boolean
  • Default: false`.

Runs the linter and assist actions on the code inside fenced code blocks, frontmatter, and HTML blocks, with the rules and actions of the code's language.

Defaults to false.


formatterOptional ​
public readonly formatter: MarkdownFormatterConfiguration;
  • Type: projen.javascript.biome_config.MarkdownFormatterConfiguration

Formatter options.


linterOptional ​
public readonly linter: MarkdownLinterConfiguration;
  • Type: projen.javascript.biome_config.MarkdownLinterConfiguration

Linter options.


parserOptional ​
public readonly parser: MarkdownParserConfiguration;
  • Type: projen.javascript.biome_config.MarkdownParserConfiguration

Parsing options.


MarkdownFormatterConfiguration ​

Options that change how the Markdown formatter behaves.

Initializer ​

import { javascript } from 'projen'

const markdownFormatterConfiguration: javascript.biome_config.MarkdownFormatterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanControl the formatter for Markdown (and its super languages) files.
formatEmbeds
booleanFormats the code inside fenced code blocks, frontmatter, and HTML blocks with the formatter of the code's language.
indentStyle
projen.javascript.biome_config.IndentStyleThe indent style applied to Markdown files.
indentWidth
numberThe size of the indentation applied to Markdown files.
lineEnding
projen.javascript.biome_config.LineEndingThe type of line ending applied to Markdown (and its super languages) files.
lineWidth
numberWhat's the max width of a line applied to Markdown files.
proseWrap
projen.javascript.biome_config.ProseWrapControls whether Biome keeps, adds, or removes line breaks in Markdown paragraphs.
trailingNewline
booleanWhether to add a trailing newline at the end of the file.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Control the formatter for Markdown (and its super languages) files.


formatEmbedsOptional ​
public readonly formatEmbeds: boolean;
  • Type: boolean
  • Default: true`.

Formats the code inside fenced code blocks, frontmatter, and HTML blocks with the formatter of the code's language.

Defaults to true.

A block with a syntax error stays as written, and Biome still formats the rest of the file.

When this option is false, Biome keeps every block as written.


indentStyleOptional ​
public readonly indentStyle: IndentStyle;
  • Type: projen.javascript.biome_config.IndentStyle

The indent style applied to Markdown files.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number
  • Default: 2.

The size of the indentation applied to Markdown files.

Defaults to 2.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding

The type of line ending applied to Markdown (and its super languages) files.

auto uses CRLF on Windows and LF on other platforms.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number
  • Default: 80.

What's the max width of a line applied to Markdown files.

Defaults to 80.


proseWrapOptional ​
public readonly proseWrap: ProseWrap;
  • Type: projen.javascript.biome_config.ProseWrap

Controls whether Biome keeps, adds, or removes line breaks in Markdown paragraphs.

Manual line breaks are always kept. In Markdown, a manual line break is created by ending a line with two spaces or a backslash.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean
  • Default: true.

Whether to add a trailing newline at the end of the file.

Setting this option to false is highly discouraged because it could cause many problems with other tools:

Disable the option at your own risk.

Defaults to true.


MarkdownLinterConfiguration ​

Options that change how the Markdown linter behaves.

Initializer ​

import { javascript } from 'projen'

const markdownLinterConfiguration: javascript.biome_config.MarkdownLinterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanControl the linter for Markdown files.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Control the linter for Markdown files.


MarkdownParserConfiguration ​

Options that change how the Markdown parser behaves.

Initializer ​

import { javascript } from 'projen'

const markdownParserConfiguration: javascript.biome_config.MarkdownParserConfiguration = { ... }

Properties ​

NameTypeDescription
cjkFriendlyEmphasis
booleanRecognizes bold, italic, and strikethrough markers placed directly next to Chinese, Japanese, or Korean text. Defaults to false.
frontmatter
booleanEnables parsing frontmatter at the start of the file.
gfm
booleanEnables GitHub Flavored Markdown extensions.

cjkFriendlyEmphasisOptional ​
public readonly cjkFriendlyEmphasis: boolean;
  • Type: boolean
  • Default: false`.

Recognizes bold, italic, and strikethrough markers placed directly next to Chinese, Japanese, or Korean text. Defaults to false.

Standard Markdown doesn't treat **テスト。**テスト as bold text, because the closing ** is between a punctuation mark and a letter with no space around it. Languages that don't put spaces between words run into this often. When enabled, Biome follows the CommonMark CJK-friendly amendments and treats such text as bold or italic. The option applies to *, _, and ~~ markers. After a variation selector (an invisible character that picks a glyph style for the character before it), Biome classifies a marker by the character before the selector.

The option can also change markers that aren't next to Chinese, Japanese, or Korean text, because a marker that can now open or close formatting can take another marker's partner in the same paragraph, heading, or table cell. For example, standard Markdown shows **テスト。**テスト a** with テスト a in bold. With the option enabled, テスト。 is bold and the last ** is shown as written.

The formatter and the linter both use this reading of the document. Enable the option only when the tool that renders your Markdown also supports these amendments. Otherwise, Biome treats as bold some text that your renderer shows with literal **, and formatting can change what your renderer shows. For example, the option makes __ after a variation selector a bold marker, and the formatter rewrites it as **, which standard Markdown shows as bold even where it showed the original __ as written.


frontmatterOptional ​
public readonly frontmatter: boolean;
  • Type: boolean
  • Default: false`.

Enables parsing frontmatter at the start of the file.

Defaults to false.


gfmOptional ​
public readonly gfm: boolean;
  • Type: boolean
  • Default: true`.

Enables GitHub Flavored Markdown extensions.

Defaults to true.


OverrideAssistConfiguration ​

Initializer ​

import { javascript } from 'projen'

const overrideAssistConfiguration: javascript.biome_config.OverrideAssistConfiguration = { ... }

Properties ​

NameTypeDescription
actions
projen.javascript.biome_config.ActionsThe assist-action configuration for matched files.
enabled
booleanEnables or disables assist actions for matched files.

actionsOptional ​
public readonly actions: Actions;
  • Type: projen.javascript.biome_config.Actions

The assist-action configuration for matched files.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables assist actions for matched files.


OverrideFilesConfiguration ​

Initializer ​

import { javascript } from 'projen'

const overrideFilesConfiguration: javascript.biome_config.OverrideFilesConfiguration = { ... }

Properties ​

NameTypeDescription
maxSize
numberThe maximum source-file size in bytes for matched files.

maxSizeOptional ​
public readonly maxSize: number;
  • Type: number

The maximum source-file size in bytes for matched files.


OverrideFormatterConfiguration ​

Initializer ​

import { javascript } from 'projen'

const overrideFormatterConfiguration: javascript.biome_config.OverrideFormatterConfiguration = { ... }

Properties ​

NameTypeDescription
attributePosition
projen.javascript.biome_config.AttributePositionThe attribute position style in HTML-like languages.
bracketSameLine
booleanControls the placement of the closing bracket for multiline HTML and JSX opening tags.
bracketSpacing
booleanControls spaces inside braces in supported single-line structures.
delimiterSpacing
booleanControls spaces immediately inside supported delimiters when their content fits on one line.
enabled
booleanEnables or disables the formatter for matched files.
expand
projen.javascript.biome_config.ExpandControls whether arrays and objects are formatted on one line or multiple lines.
formatWithErrors
booleanAllows formatting matched files that contain syntax errors.
indentSize
numberThe indentation width.
indentStyle
projen.javascript.biome_config.IndentStyleUses tabs or spaces for indentation.
indentWidth
numberSets the indentation width.
lineEnding
projen.javascript.biome_config.LineEndingThe line ending.
lineWidth
numberSets the preferred maximum line width used when deciding where to wrap code.
trailingCommas
projen.javascript.biome_config.JsTrailingCommasPrints trailing commas wherever possible in multiline comma-separated structures.
trailingNewline
booleanWhether to add a trailing newline at the end of matched files.

attributePositionOptional ​
public readonly attributePosition: AttributePosition;
  • Type: projen.javascript.biome_config.AttributePosition

The attribute position style in HTML-like languages.


bracketSameLineOptional ​
public readonly bracketSameLine: boolean;
  • Type: boolean

Controls the placement of the closing bracket for multiline HTML and JSX opening tags.

Biome places the bracket at the end of the last attribute line when enabled and on its own line when disabled. This also affects self-closing HTML elements, but self-closing JSX elements are unaffected.


bracketSpacingOptional ​
public readonly bracketSpacing: boolean;
  • Type: boolean

Controls spaces inside braces in supported single-line structures.

The affected structures vary by language.


delimiterSpacingOptional ​
public readonly delimiterSpacing: boolean;
  • Type: boolean

Controls spaces immediately inside supported delimiters when their content fits on one line.

It doesn't add spaces before opening delimiters or inside empty delimiters.

The affected delimiters vary by language. If unset, uses the configured formatter setting.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the formatter for matched files.


expandOptional ​
public readonly expand: Expand;
  • Type: projen.javascript.biome_config.Expand

Controls whether arrays and objects are formatted on one line or multiple lines.

auto formats objects on multiple lines if the first property has a newline, and arrays on one line if they fit.

always formats arrays and objects on multiple lines.

never formats arrays and objects on one line if they fit.

If unset, uses the configured formatter setting.

When formatting package.json, Biome uses always unless configured otherwise.


formatWithErrorsOptional ​
public readonly formatWithErrors: boolean;
  • Type: boolean

Allows formatting matched files that contain syntax errors.


indentSizeOptional ​
public readonly indentSize: number;
  • Type: number

The indentation width.

Deprecated, use indentWidth instead.


indentStyleOptional ​
public readonly indentStyle: IndentStyle;
  • Type: projen.javascript.biome_config.IndentStyle

Uses tabs or spaces for indentation.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number

Sets the indentation width.

With space indentation, this is the number of spaces emitted per indentation level. With tab indentation, Biome emits one tab per level and uses this value as the tab's display width when calculating line length. Accepted values are 0 through 24.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding

The line ending.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number

Sets the preferred maximum line width used when deciding where to wrap code.

Some content, such as long unbreakable strings, may still exceed this width. Accepted values are 1 through 320.


trailingCommasOptional ​
public readonly trailingCommas: JsTrailingCommas;
  • Type: projen.javascript.biome_config.JsTrailingCommas

Prints trailing commas wherever possible in multiline comma-separated structures.

This is a legacy override option. Prefer javascript.formatter.trailingCommas.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean

Whether to add a trailing newline at the end of matched files.

Disabling this option can cause compatibility problems with other tools.


OverrideLinterConfiguration ​

Initializer ​

import { javascript } from 'projen'

const overrideLinterConfiguration: javascript.biome_config.OverrideLinterConfiguration = { ... }

Properties ​

NameTypeDescription
domains
projen.javascript.biome_config.RuleDomainsThe lint-domain configuration for matched files.
enabled
booleanEnables or disables the linter for matched files.
rules
projen.javascript.biome_config.RulesThe lint-rule configuration for matched files.

domainsOptional ​
public readonly domains: RuleDomains;
  • Type: projen.javascript.biome_config.RuleDomains

The lint-domain configuration for matched files.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Enables or disables the linter for matched files.


rulesOptional ​
public readonly rules: Rules;
  • Type: projen.javascript.biome_config.Rules

The lint-rule configuration for matched files.


OverridePattern ​

Initializer ​

import { javascript } from 'projen'

const overridePattern: javascript.biome_config.OverridePattern = { ... }

Properties ​

NameTypeDescription
assist
projen.javascript.biome_config.OverrideAssistConfigurationAssist settings for matched files.
css
projen.javascript.biome_config.CssConfigurationCSS-specific settings for matched files.
files
projen.javascript.biome_config.OverrideFilesConfigurationFile-handling settings for matched files.
formatter
projen.javascript.biome_config.OverrideFormatterConfigurationFormatter settings for matched files.
graphql
projen.javascript.biome_config.GraphqlConfigurationGraphQL-specific settings for matched files.
grit
projen.javascript.biome_config.GritConfigurationGritQL-specific settings for matched files.
html
projen.javascript.biome_config.HtmlConfigurationHTML-specific settings for matched files.
includes
string[]A list of glob patterns selecting the files to which this override applies.
javascript
projen.javascript.biome_config.JsConfigurationJavaScript-specific settings for matched files.
json
projen.javascript.biome_config.JsonConfigurationJSON-specific settings for matched files.
linter
projen.javascript.biome_config.OverrideLinterConfigurationLinter settings for matched files.
markdown
projen.javascript.biome_config.MarkdownConfigurationSpecific configuration for the Markdown language.
plugins
any[]Additional plugins for matched files.
yaml
projen.javascript.biome_config.YamlConfigurationSpecific configuration for the YAML language.

assistOptional ​
public readonly assist: OverrideAssistConfiguration;
  • Type: projen.javascript.biome_config.OverrideAssistConfiguration

Assist settings for matched files.


cssOptional ​
public readonly css: CssConfiguration;
  • Type: projen.javascript.biome_config.CssConfiguration

CSS-specific settings for matched files.


filesOptional ​
public readonly files: OverrideFilesConfiguration;
  • Type: projen.javascript.biome_config.OverrideFilesConfiguration

File-handling settings for matched files.


formatterOptional ​
public readonly formatter: OverrideFormatterConfiguration;
  • Type: projen.javascript.biome_config.OverrideFormatterConfiguration

Formatter settings for matched files.


graphqlOptional ​
public readonly graphql: GraphqlConfiguration;
  • Type: projen.javascript.biome_config.GraphqlConfiguration

GraphQL-specific settings for matched files.


gritOptional ​
public readonly grit: GritConfiguration;
  • Type: projen.javascript.biome_config.GritConfiguration

GritQL-specific settings for matched files.


htmlOptional ​
public readonly html: HtmlConfiguration;
  • Type: projen.javascript.biome_config.HtmlConfiguration

HTML-specific settings for matched files.


includesOptional ​
public readonly includes: string[];
  • Type: string[]

A list of glob patterns selecting the files to which this override applies.

If omitted, the override applies to every file. An empty list applies to no files.


javascriptOptional ​
public readonly javascript: JsConfiguration;
  • Type: projen.javascript.biome_config.JsConfiguration

JavaScript-specific settings for matched files.


jsonOptional ​
public readonly json: JsonConfiguration;
  • Type: projen.javascript.biome_config.JsonConfiguration

JSON-specific settings for matched files.


linterOptional ​
public readonly linter: OverrideLinterConfiguration;
  • Type: projen.javascript.biome_config.OverrideLinterConfiguration

Linter settings for matched files.


markdownOptional ​
public readonly markdown: MarkdownConfiguration;
  • Type: projen.javascript.biome_config.MarkdownConfiguration

Specific configuration for the Markdown language.


pluginsOptional ​
public readonly plugins: any[];
  • Type: any[]

Additional plugins for matched files.


yamlOptional ​
public readonly yaml: YamlConfiguration;
  • Type: projen.javascript.biome_config.YamlConfiguration

Specific configuration for the YAML language.


RuleDomains ​

Initializer ​

import { javascript } from 'projen'

const ruleDomains: javascript.biome_config.RuleDomains = { ... }

Properties ​

NameTypeDescription
astro
projen.javascript.biome_config.RuleDomainValueNo description.
drizzle
projen.javascript.biome_config.RuleDomainValueNo description.
next
projen.javascript.biome_config.RuleDomainValueNo description.
playwright
projen.javascript.biome_config.RuleDomainValueNo description.
project
projen.javascript.biome_config.RuleDomainValueNo description.
qwik
projen.javascript.biome_config.RuleDomainValueNo description.
react
projen.javascript.biome_config.RuleDomainValueNo description.
reactNative
projen.javascript.biome_config.RuleDomainValueNo description.
solid
projen.javascript.biome_config.RuleDomainValueNo description.
svelte
projen.javascript.biome_config.RuleDomainValueNo description.
tailwind
projen.javascript.biome_config.RuleDomainValueNo description.
tanstackQuery
projen.javascript.biome_config.RuleDomainValueNo description.
test
projen.javascript.biome_config.RuleDomainValueNo description.
turborepo
projen.javascript.biome_config.RuleDomainValueNo description.
types
projen.javascript.biome_config.RuleDomainValueNo description.
vue
projen.javascript.biome_config.RuleDomainValueNo description.

astroOptional ​
public readonly astro: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

drizzleOptional ​
public readonly drizzle: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

nextOptional ​
public readonly next: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

playwrightOptional ​
public readonly playwright: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

projectOptional ​
public readonly project: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

qwikOptional ​
public readonly qwik: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

reactOptional ​
public readonly react: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

reactNativeOptional ​
public readonly reactNative: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

solidOptional ​
public readonly solid: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

svelteOptional ​
public readonly svelte: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

tailwindOptional ​
public readonly tailwind: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

tanstackQueryOptional ​
public readonly tanstackQuery: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

testOptional ​
public readonly test: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

turborepoOptional ​
public readonly turborepo: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

typesOptional ​
public readonly types: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

vueOptional ​
public readonly vue: RuleDomainValue;
  • Type: projen.javascript.biome_config.RuleDomainValue

Rules ​

Initializer ​

import { javascript } from 'projen'

const rules: javascript.biome_config.Rules = { ... }

Properties ​

NameTypeDescription
a11Y
anyNo description.
complexity
anyNo description.
correctness
anyNo description.
nursery
anyNo description.
performance
anyNo description.
preset
projen.javascript.biome_config.PresetConfigSelects the baseline set of lint rules.
recommended
booleanEnables or disables Biome's recommended non-nursery rules. Defaults to true.
security
anyNo description.
style
anyNo description.
suspicious
anyNo description.

a11YOptional ​
public readonly a11Y: any;
  • Type: any

complexityOptional ​
public readonly complexity: any;
  • Type: any

correctnessOptional ​
public readonly correctness: any;
  • Type: any

nurseryOptional ​
public readonly nursery: any;
  • Type: any

performanceOptional ​
public readonly performance: any;
  • Type: any

presetOptional ​
public readonly preset: PresetConfig;
  • Type: projen.javascript.biome_config.PresetConfig
  • Default: recommended`.

Selects the baseline set of lint rules.

recommended enables Biome's recommended non-nursery rules, all enables all non-nursery rules, and none starts with no rules enabled. Group-level settings and explicit rule settings override this preset. Defaults to recommended.


recommendedOptional ​
public readonly recommended: boolean;
  • Type: boolean
  • Default: true`.

Enables or disables Biome's recommended non-nursery rules. Defaults to true.

Deprecated: This option will be removed in the next major version. Use linter.rules.preset instead, or run biome migrate to update the configuration.


securityOptional ​
public readonly security: any;
  • Type: any

styleOptional ​
public readonly style: any;
  • Type: any

suspiciousOptional ​
public readonly suspicious: any;
  • Type: any

Source ​

Configures one group of assist actions.

Initializer ​

import { javascript } from 'projen'

const source: javascript.biome_config.Source = { ... }

Properties ​

NameTypeDescription
noDuplicateClasses
anyRemove repeated CSS class names from HTML class attributes.
organizeImports
anyOrganize imports and exports in JavaScript and TypeScript files.
preset
projen.javascript.biome_config.PresetConfigSelects the baseline set of assist actions for this group.
recommended
booleanEnables or disables the recommended actions in this group.
useGraphqlSortedArguments
anySort the arguments of GraphQL fields and directives in natural order.
useGraphqlSortedDefinitions
anySort the named definitions in a GraphQL document.
useGraphqlSortedVariables
anySort the variable definitions of GraphQL operations in natural order.
useSortedAttributes
anySort HTML attributes and framework directives into a consistent order.
useSortedEnumMembers
anySort GraphQL enum values in natural order.
useSortedInterfaceMembers
anySort named members of a TypeScript interface.
useSortedKeys
anySort keys in a JSON object.
useSortedPackageJson
anyOrganize package.json fields according to established conventions. See https://biomejs.dev/assist/actions/use-sorted-package-json.
useSortedProperties
anySort CSS properties and nested rules into a consistent order.
useSortedSelectionSet
anySort selections inside GraphQL operations and fragments.
useSortedTypeFields
anySort fields in GraphQL type definitions by name.

noDuplicateClassesOptional ​
public readonly noDuplicateClasses: any;
  • Type: any

Remove repeated CSS class names from HTML class attributes.

See https://biomejs.dev/assist/actions/no-duplicate-classes


organizeImportsOptional ​
public readonly organizeImports: any;
  • Type: any

Organize imports and exports in JavaScript and TypeScript files.

See https://biomejs.dev/assist/actions/organize-imports


presetOptional ​
public readonly preset: PresetConfig;
  • Type: projen.javascript.biome_config.PresetConfig

Selects the baseline set of assist actions for this group.

recommended enables the group's recommended actions, all enables all actions in the group, and none starts with no actions enabled in the group. Explicit action settings override this group preset, which overrides assist.actions.preset for the group.


recommendedOptional ​
public readonly recommended: boolean;
  • Type: boolean

Enables or disables the recommended actions in this group.

The group's preset setting takes precedence when both options are set.


useGraphqlSortedArgumentsOptional ​
public readonly useGraphqlSortedArguments: any;
  • Type: any

Sort the arguments of GraphQL fields and directives in natural order.

See https://biomejs.dev/assist/actions/use-graphql-sorted-arguments


useGraphqlSortedDefinitionsOptional ​
public readonly useGraphqlSortedDefinitions: any;
  • Type: any

Sort the named definitions in a GraphQL document.

See https://biomejs.dev/assist/actions/use-graphql-sorted-definitions


useGraphqlSortedVariablesOptional ​
public readonly useGraphqlSortedVariables: any;
  • Type: any

Sort the variable definitions of GraphQL operations in natural order.

See https://biomejs.dev/assist/actions/use-graphql-sorted-variables


useSortedAttributesOptional ​
public readonly useSortedAttributes: any;
  • Type: any

Sort HTML attributes and framework directives into a consistent order.

See https://biomejs.dev/assist/actions/use-sorted-attributes


useSortedEnumMembersOptional ​
public readonly useSortedEnumMembers: any;
  • Type: any

Sort GraphQL enum values in natural order.

See https://biomejs.dev/assist/actions/use-sorted-enum-members


useSortedInterfaceMembersOptional ​
public readonly useSortedInterfaceMembers: any;
  • Type: any

Sort named members of a TypeScript interface.

See https://biomejs.dev/assist/actions/use-sorted-interface-members


useSortedKeysOptional ​
public readonly useSortedKeys: any;
  • Type: any

Sort keys in a JSON object.

See https://biomejs.dev/assist/actions/use-sorted-keys


useSortedPackageJsonOptional ​
public readonly useSortedPackageJson: any;
  • Type: any

Organize package.json fields according to established conventions. See https://biomejs.dev/assist/actions/use-sorted-package-json.


useSortedPropertiesOptional ​
public readonly useSortedProperties: any;
  • Type: any

Sort CSS properties and nested rules into a consistent order.

See https://biomejs.dev/assist/actions/use-sorted-properties


useSortedSelectionSetOptional ​
public readonly useSortedSelectionSet: any;
  • Type: any

Sort selections inside GraphQL operations and fragments.

See https://biomejs.dev/assist/actions/use-sorted-selection-set


useSortedTypeFieldsOptional ​
public readonly useSortedTypeFields: any;
  • Type: any

Sort fields in GraphQL type definitions by name.

See https://biomejs.dev/assist/actions/use-sorted-type-fields


TailwindConfiguration ​

Tells Biome where your code lists Tailwind CSS classes, so the Tailwind lint rules know which strings to check.

Initializer ​

import { javascript } from 'projen'

const tailwindConfiguration: javascript.biome_config.TailwindConfiguration = { ... }

Properties ​

NameTypeDescription
attributes
string[]Attributes whose values are Tailwind classes, such as class in <div class="px-2 py-2">.
mergeFunctions
string[]Functions that combine Tailwind classes, such as clsx and cn.
stylesheet
stringThe CSS file that holds your Tailwind CSS configuration, such as "./src/app.css". A relative path starts from the folder of the Biome configuration file.
variantFunctions
string[]Functions that describe a component's styles with an object, such as cva and tv.

attributesOptional ​
public readonly attributes: string[];
  • Type: string[]
  • Default: classandclassName`. In HTML, they are case-insensitive.

Attributes whose values are Tailwind classes, such as class in <div class="px-2 py-2">.

Defaults to class and className. In HTML, they are case-insensitive.


mergeFunctionsOptional ​
public readonly mergeFunctions: string[];
  • Type: string[]
  • Default: clsx, tw, twMerge, twJoin, cn, cc, cnb`, and

Functions that combine Tailwind classes, such as clsx and cn.

Biome checks every string passed to these functions, like both strings in cn("px-2", "py-2"). When an object is passed, Biome checks its keys: in cn({ "px-2": isActive }), it checks "px-2".

Properties of these functions are checked too, so listing tw also covers tw.div`px-2` and tw.div("px-2").

Defaults to clsx, tw, twMerge, twJoin, cn, cc, cnb, and ctl.


stylesheetOptional ​
public readonly stylesheet: string;
  • Type: string

The CSS file that holds your Tailwind CSS configuration, such as "./src/app.css". A relative path starts from the folder of the Biome configuration file.

Biome reads the @theme, @utility, and @custom-variant rules in this file and in the files it imports with @import, so that the Tailwind rules know your theme values, utilities, and variants.

To read the file, Biome scans your project when a Tailwind rule is enabled. Setting this option also turns on css.parser.tailwindDirectives, unless you set that option yourself.


variantFunctionsOptional ​
public readonly variantFunctions: string[];
  • Type: string[]
  • Default: cvaandtv`.

Functions that describe a component's styles with an object, such as cva and tv.

Biome checks every string passed directly to these functions. In an object passed to them, Biome checks the classes under these properties:

  • base, class, and className: classes that always apply.
  • variants: classes for each version of the component, such as each button size.
  • slots: classes for each part of the component, such as its icon.
  • compoundVariants and compoundSlots: only the class and className of each entry.

Other properties, such as defaultVariants, hold names rather than classes, so Biome skips them. For example, Biome checks "rounded", "px-2", and "px-4" here, but not "small":

cva("rounded", {
variants: {
size: { small: "px-2", large: "px-4" },
},
defaultVariants: { size: "small" },
});

Defaults to cva and tv.


VcsConfiguration ​

Configures how Biome integrates with a version control system.

Initializer ​

import { javascript } from 'projen'

const vcsConfiguration: javascript.biome_config.VcsConfiguration = { ... }

Properties ​

NameTypeDescription
clientKind
projen.javascript.biome_config.VcsClientKindSelects the version-control client.
defaultBranch
stringSets the base branch used by --changed when --since is not provided.
enabled
booleanEnables or disables version-control integration.
root
stringSets the directory where Biome looks for version-control files.
useIgnoreFile
booleanControls whether Biome applies patterns from .gitignore, Git's local .git/info/exclude, and supported .ignore files, including nested ignore files. Patterns in the root ignore file are resolved from vcs.root. Patterns in nested ignore files are resolved from the directory containing that file. Defaults to false.

clientKindOptional ​
public readonly clientKind: VcsClientKind;
  • Type: projen.javascript.biome_config.VcsClientKind

Selects the version-control client.

Currently, only git is supported.


defaultBranchOptional ​
public readonly defaultBranch: string;
  • Type: string

Sets the base branch used by --changed when --since is not provided.

If neither this option nor --since is set, commands using --changed fail because Biome cannot determine the comparison base.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean
  • Default: false`. Enabling integration

Enables or disables version-control integration.

Defaults to false. Enabling integration requires vcs.clientKind to be set.


rootOptional ​
public readonly root: string;
  • Type: string
  • Default: the directory containing biome.json or biome.jsonc. If no configuration is

Sets the directory where Biome looks for version-control files.

A relative value is resolved from the directory containing the current configuration file, while an absolute path is used directly.

Defaults to the directory containing biome.json or biome.jsonc. If no configuration is found, Biome uses the current working directory.

If neither directory is available, Biome disables version control integration and emits a diagnostic.


useIgnoreFileOptional ​
public readonly useIgnoreFile: boolean;
  • Type: boolean
  • Default: false`.

Controls whether Biome applies patterns from .gitignore, Git's local .git/info/exclude, and supported .ignore files, including nested ignore files. Patterns in the root ignore file are resolved from vcs.root. Patterns in nested ignore files are resolved from the directory containing that file. Defaults to false.


YamlConfiguration ​

Options applied to Yaml files.

Initializer ​

import { javascript } from 'projen'

const yamlConfiguration: javascript.biome_config.YamlConfiguration = { ... }

Properties ​

NameTypeDescription
formatter
projen.javascript.biome_config.YamlFormatterConfigurationFormatter options.
linter
projen.javascript.biome_config.YamlLinterConfigurationNo description.

formatterOptional ​
public readonly formatter: YamlFormatterConfiguration;
  • Type: projen.javascript.biome_config.YamlFormatterConfiguration

Formatter options.


linterOptional ​
public readonly linter: YamlLinterConfiguration;
  • Type: projen.javascript.biome_config.YamlLinterConfiguration

YamlFormatterConfiguration ​

Options that change how the Yaml formatter behaves.

Initializer ​

import { javascript } from 'projen'

const yamlFormatterConfiguration: javascript.biome_config.YamlFormatterConfiguration = { ... }

Properties ​

NameTypeDescription
bracketSpacing
booleanWhether to insert spaces inside non-empty flow mappings ({ key: value }) and sequences ([ item ]) that fit on one line.
enabled
booleanControl the formatter for Yaml (and its super languages) files.
indentWidth
numberThe size of the indentation applied to Yaml files.
lineEnding
projen.javascript.biome_config.LineEndingThe type of line ending applied to Yaml (and its super languages) files.
lineWidth
numberWhat's the max width of a line applied to Yaml files.
quoteStyle
projen.javascript.biome_config.QuoteStyleThe type of quotes used in YAML code.
trailingNewline
booleanWhether to add a trailing newline at the end of the file.

bracketSpacingOptional ​
public readonly bracketSpacing: boolean;
  • Type: boolean

Whether to insert spaces inside non-empty flow mappings ({ key: value }) and sequences ([ item ]) that fit on one line.

If unset, inherits the global bracket spacing setting. When neither is set, mappings have spaces and sequences do not.


enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Control the formatter for Yaml (and its super languages) files.


indentWidthOptional ​
public readonly indentWidth: number;
  • Type: number
  • Default: 2.

The size of the indentation applied to Yaml files.

Defaults to 2.


lineEndingOptional ​
public readonly lineEnding: LineEnding;
  • Type: projen.javascript.biome_config.LineEnding

The type of line ending applied to Yaml (and its super languages) files.

auto uses CRLF on Windows and LF on other platforms.


lineWidthOptional ​
public readonly lineWidth: number;
  • Type: number
  • Default: 80.

What's the max width of a line applied to Yaml files.

Defaults to 80.


quoteStyleOptional ​
public readonly quoteStyle: QuoteStyle;
  • Type: projen.javascript.biome_config.QuoteStyle
  • Default: double`.

The type of quotes used in YAML code.

Defaults to double.


trailingNewlineOptional ​
public readonly trailingNewline: boolean;
  • Type: boolean
  • Default: true.

Whether to add a trailing newline at the end of the file.

Setting this option to false is highly discouraged because it could cause many problems with other tools:

Disable the option at your own risk.

Defaults to true.


YamlLinterConfiguration ​

Options that change how the Yaml linter behaves.

Initializer ​

import { javascript } from 'projen'

const yamlLinterConfiguration: javascript.biome_config.YamlLinterConfiguration = { ... }

Properties ​

NameTypeDescription
enabled
booleanControl the linter for Yaml files.

enabledOptional ​
public readonly enabled: boolean;
  • Type: boolean

Control the linter for Yaml files.


Enums ​

ArrowParentheses ​

Members ​

NameDescription
ALWAYS
Always prints parentheses around arrow-function parameters.
AS_NEEDED
Omits parentheses when an arrow function has one parameter and the syntax permits it.

ALWAYS ​

Always prints parentheses around arrow-function parameters.

(always)


AS_NEEDED ​

Omits parentheses when an arrow function has one parameter and the syntax permits it.

(asNeeded)


AttributePosition ​

Controls attribute placement in HTML-like languages.

Members ​

NameDescription
AUTO
Places attributes automatically and wraps them when needed.
MULTILINE
Places each attribute on its own line when an element has multiple attributes.

AUTO ​

Places attributes automatically and wraps them when needed.

(auto)


MULTILINE ​

Places each attribute on its own line when an element has multiple attributes.

(multiline)


Expand ​

Members ​

NameDescription
AUTO
Objects are expanded when the first property has a leading newline.
ALWAYS
Objects and arrays are always expanded.
NEVER
Objects and arrays remain on one line if they fit.

AUTO ​

Objects are expanded when the first property has a leading newline.

Arrays remain on one line if they fit. (auto)


ALWAYS ​

Objects and arrays are always expanded.

(always)


NEVER ​

Objects and arrays remain on one line if they fit.

(never)


IndentStyle ​

Members ​

NameDescription
TAB
Uses tabs for indentation.
SPACE
Uses spaces for indentation.

TAB ​

Uses tabs for indentation.

(tab)


SPACE ​

Uses spaces for indentation.

(space)


JsonTrailingCommas ​

Controls trailing commas in multiline JSON arrays and objects.

Use all only for JSON variants that allow trailing commas, and ensure json.parser.allowTrailingCommas is enabled or automatically detected for those files.

Members ​

NameDescription
NONE
none.
ALL
all.

NONE ​

none.


ALL ​

all.


JsTrailingCommas ​

Print trailing commas wherever possible in multi-line comma-separated syntactic structures for JavaScript/TypeScript files.

Members ​

NameDescription
ALL
all.
ES5
es5.
NONE
none.

ALL ​

all.


ES5 ​

es5.


NONE ​

none.


JsxRuntime ​

How Biome's analyzer accounts for imports used by JSX.

Members ​

NameDescription
TRANSPARENT
An automatic or native JSX environment that doesn't require an in-scope factory import.
REACT_CLASSIC
A classic React environment that requires the React import, or custom JSX factory imports configured in tsconfig.json.

TRANSPARENT ​

An automatic or native JSX environment that doesn't require an in-scope factory import.

(transparent)


REACT_CLASSIC ​

A classic React environment that requires the React import, or custom JSX factory imports configured in tsconfig.json.

Corresponds to the react value for the jsx option in TypeScript's tsconfig.json.

This option should only be necessary if you cannot upgrade to a React version that supports the new JSX runtime. For more information about the old vs. new JSX runtime, please see: https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html (reactClassic)


LineEnding ​

Members ​

NameDescription
LF
Line Feed only (\n), common on Linux and macOS as well as inside git repos (lf).
CRLF
Carriage Return + Line Feed characters (\r\n), common on Windows (crlf).
CR
Carriage Return character only (\r), used very rarely (cr).
AUTO
Automatically use CRLF on Windows and LF on other platforms (auto).

LF ​

Line Feed only (\n), common on Linux and macOS as well as inside git repos (lf).


CRLF ​

Carriage Return + Line Feed characters (\r\n), common on Windows (crlf).


CR ​

Carriage Return character only (\r), used very rarely (cr).


AUTO ​

Automatically use CRLF on Windows and LF on other platforms (auto).


OperatorLinebreak ​

Members ​

NameDescription
AFTER
The operator is placed after the expression (after).
BEFORE
The operator is placed before the expression (before).

AFTER ​

The operator is placed after the expression (after).


BEFORE ​

The operator is placed before the expression (before).


PresetConfig ​

A preset configuration for enabling a set of rules.

Members ​

NameDescription
RECOMMENDED
recommended.
ALL
all.
NONE
none.

recommended.


ALL ​

all.


NONE ​

none.


ProseWrap ​

Controls whether Biome keeps, adds, or removes line breaks in Markdown paragraphs.

Manual line breaks are always kept. In Markdown, a manual line break is created by ending a line with two spaces or a backslash.

Members ​

NameDescription
PRESERVE
Keep line breaks as written in the source file.
ALWAYS
Wrap paragraphs to fit the configured lineWidth.
NEVER
Remove line breaks from paragraphs so that each paragraph is on one line.

PRESERVE ​

Keep line breaks as written in the source file.

This is the default. (preserve)


ALWAYS ​

Wrap paragraphs to fit the configured lineWidth.

(always)


NEVER ​

Remove line breaks from paragraphs so that each paragraph is on one line.

(never)


QuoteProperties ​

Members ​

NameDescription
AS_NEEDED
Removes quotes when the property name is valid without them.
PRESERVE
Preserves quotes around property names that were quoted in the input.

AS_NEEDED ​

Removes quotes when the property name is valid without them.

(asNeeded)


PRESERVE ​

Preserves quotes around property names that were quoted in the input.

(preserve)


QuoteStyle ​

Members ​

NameDescription
DOUBLE
double.
SINGLE
single.

DOUBLE ​

double.


SINGLE ​

single.


RuleDomainValue ​

Members ​

NameDescription
ALL
Enables all rules in the domain.
NONE
Disables the domain.
RECOMMENDED
Enables the domain's recommended non-nursery rules.

ALL ​

Enables all rules in the domain.

(all)


NONE ​

Disables the domain.

(none)


Enables the domain's recommended non-nursery rules.

(recommended)


SelfCloseVoidElements ​

Controls whether HTML void elements such as <img> and <input> include a slash before >.

Members ​

NameDescription
NEVER
Removes the slash, for example <img src="image.png">. (never).
ALWAYS
Adds the slash, for example <img src="image.png" />. (always).

NEVER ​

Removes the slash, for example <img src="image.png">. (never).


ALWAYS ​

Adds the slash, for example <img src="image.png" />. (always).


Semicolons ​

Members ​

NameDescription
ALWAYS
always.
AS_NEEDED
asNeeded.

ALWAYS ​

always.


AS_NEEDED ​

asNeeded.


VcsClientKind ​

Integration with Git as the version control client.

Members ​

NameDescription
GIT
git.

GIT ​

git.


WhitespaceSensitivity ​

Controls how the formatter treats whitespace around text and child elements in HTML, Vue, Svelte, and Astro markup.

The following two cases won't produce the same output:

htmloutput
with spaces1<b> 2 </b>31 2 3
without spaces1<b>2</b>3123

This happens because whitespace is significant in inline elements.

As a consequence of this, the formatter must format blocks that look like this (assume a small line width, <20):

<span>really long content</span>

as this, where the content hugs the tags:

<span
>really long content</span
>

Note that this is only necessary for inline elements. Block elements do not have this restriction.

Members ​

NameDescription
CSS
Treats whitespace as significant for elements that browsers display inline by default.
STRICT
Treats leading and trailing whitespace as significant for every element.
IGNORE
Treats whitespace as insignificant, allowing the formatter to add or remove it.

CSS ​

Treats whitespace as significant for elements that browsers display inline by default.

(css)


STRICT ​

Treats leading and trailing whitespace as significant for every element.

Existing whitespace is preserved as at least one character and absent whitespace is not added.

Example of text hugging the tags:

<b
>content</b
>
``` (strict)

---


##### `IGNORE` <a name="IGNORE" id="projen.javascript.biome_config.WhitespaceSensitivity.IGNORE"></a>

Treats whitespace as insignificant, allowing the formatter to add or remove it.

Use this only
when whitespace cannot affect rendered output. (ignore)

---