javascript.biome_config
Submodule
Structs
Actions
Initializer
import { javascript } from 'projen'
const actions: javascript.biome_config.Actions = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | It enables the assist actions recommended by Biome. |
| projen.javascript.biome_config.Source | No description. |
recommended
Optional
public readonly recommended: boolean;
- Type: boolean
It enables the assist actions recommended by Biome.
true
by default.
source
Optional
public readonly source: Source;
- Type: projen.javascript.biome_config.Source
AssistConfiguration
Initializer
import { javascript } from 'projen'
const assistConfiguration: javascript.biome_config.AssistConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.Actions | Whether Biome should fail in CLI if the assist were not applied to the code. |
| boolean | Whether Biome should enable assist via LSP and CLI. |
| string[] | A list of glob patterns. |
actions
Optional
public readonly actions: Actions;
- Type: projen.javascript.biome_config.Actions
Whether Biome should fail in CLI if the assist were not applied to the code.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Whether Biome should enable assist via LSP and CLI.
includes
Optional
public readonly includes: string[];
- Type: string[]
A list of glob patterns.
Biome will include files/folders that will match these patterns.
BiomeConfiguration
The configuration that is contained inside the file biome.json
.
Initializer
import { javascript } from 'projen'
const biomeConfiguration: javascript.biome_config.BiomeConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.AssistConfiguration | Specific configuration for assists. |
| projen.javascript.biome_config.CssConfiguration | Specific configuration for the Css language. |
| string[] | A list of paths to other JSON files, used to extends the current configuration. |
| projen.javascript.biome_config.FilesConfiguration | The configuration of the filesystem. |
| projen.javascript.biome_config.FormatterConfiguration | The configuration of the formatter. |
| projen.javascript.biome_config.GraphqlConfiguration | Specific configuration for the GraphQL language. |
| projen.javascript.biome_config.GritConfiguration | Specific configuration for the GraphQL language. |
| projen.javascript.biome_config.HtmlConfiguration | Specific configuration for the HTML language. |
| projen.javascript.biome_config.JsConfiguration | Specific configuration for the JavaScript language. |
| projen.javascript.biome_config.JsonConfiguration | Specific configuration for the Json language. |
| projen.javascript.biome_config.LinterConfiguration | The configuration for the linter. |
| projen.javascript.biome_config.OverridePattern[] | A list of granular patterns that should be applied only to a sub set of files. |
| string[] | List of plugins to load. |
| boolean | Indicates whether this configuration file is at the root of a Biome project. |
| string | A field for the JSON schema specification. |
| projen.javascript.biome_config.VcsConfiguration | The configuration of the VCS integration. |
assist
Optional
public readonly assist: AssistConfiguration;
- Type: projen.javascript.biome_config.AssistConfiguration
Specific configuration for assists.
css
Optional
public readonly css: CssConfiguration;
- Type: projen.javascript.biome_config.CssConfiguration
Specific configuration for the Css language.
extends
Optional
public readonly extends: string[];
- Type: string[]
A list of paths to other JSON files, used to extends the current configuration.
files
Optional
public readonly files: FilesConfiguration;
- Type: projen.javascript.biome_config.FilesConfiguration
The configuration of the filesystem.
formatter
Optional
public readonly formatter: FormatterConfiguration;
- Type: projen.javascript.biome_config.FormatterConfiguration
The configuration of the formatter.
graphql
Optional
public readonly graphql: GraphqlConfiguration;
- Type: projen.javascript.biome_config.GraphqlConfiguration
Specific configuration for the GraphQL language.
grit
Optional
public readonly grit: GritConfiguration;
- Type: projen.javascript.biome_config.GritConfiguration
Specific configuration for the GraphQL language.
html
Optional
public readonly html: HtmlConfiguration;
- Type: projen.javascript.biome_config.HtmlConfiguration
Specific configuration for the HTML language.
javascript
Optional
public readonly javascript: JsConfiguration;
- Type: projen.javascript.biome_config.JsConfiguration
Specific configuration for the JavaScript language.
json
Optional
public readonly json: JsonConfiguration;
- Type: projen.javascript.biome_config.JsonConfiguration
Specific configuration for the Json language.
linter
Optional
public readonly linter: LinterConfiguration;
- Type: projen.javascript.biome_config.LinterConfiguration
The configuration for the linter.
overrides
Optional
public readonly overrides: OverridePattern[];
- Type: projen.javascript.biome_config.OverridePattern[]
A list of granular patterns that should be applied only to a sub set of files.
plugins
Optional
public readonly plugins: string[];
- Type: string[]
List of plugins to load.
root
Optional
public readonly root: boolean;
- Type: boolean
Indicates whether this configuration file is at the root of a Biome project.
By default, this is true
.
schema
Optional
public readonly schema: string;
- Type: string
A field for the JSON schema specification.
vcs
Optional
public readonly vcs: VcsConfiguration;
- Type: projen.javascript.biome_config.VcsConfiguration
The configuration of the VCS integration.
CssAssistConfiguration
Options that changes how the CSS assist behaves.
Initializer
import { javascript } from 'projen'
const cssAssistConfiguration: javascript.biome_config.CssAssistConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the assist for CSS files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the assist for CSS files.
CssConfiguration
Options applied to CSS files.
Initializer
import { javascript } from 'projen'
const cssConfiguration: javascript.biome_config.CssConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.CssAssistConfiguration | CSS assist options. |
| projen.javascript.biome_config.CssFormatterConfiguration | CSS formatter options. |
| string[] | CSS globals. |
| projen.javascript.biome_config.CssLinterConfiguration | CSS linter options. |
| projen.javascript.biome_config.CssParserConfiguration | CSS parsing options. |
assist
Optional
public readonly assist: CssAssistConfiguration;
- Type: projen.javascript.biome_config.CssAssistConfiguration
CSS assist options.
formatter
Optional
public readonly formatter: CssFormatterConfiguration;
- Type: projen.javascript.biome_config.CssFormatterConfiguration
CSS formatter options.
globals
Optional
public readonly globals: string[];
- Type: string[]
CSS globals.
linter
Optional
public readonly linter: CssLinterConfiguration;
- Type: projen.javascript.biome_config.CssLinterConfiguration
CSS linter options.
parser
Optional
public readonly parser: CssParserConfiguration;
- Type: projen.javascript.biome_config.CssParserConfiguration
CSS parsing options.
CssFormatterConfiguration
Options that changes how the CSS formatter behaves.
Initializer
import { javascript } from 'projen'
const cssFormatterConfiguration: javascript.biome_config.CssFormatterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the formatter for CSS (and its super languages) files. |
| projen.javascript.biome_config.IndentStyle | The indent style applied to CSS (and its super languages) files. |
| number | The size of the indentation applied to CSS (and its super languages) files. |
| projen.javascript.biome_config.LineEnding | The type of line ending applied to CSS (and its super languages) files. |
| number | What's the max width of a line applied to CSS (and its super languages) files. |
| projen.javascript.biome_config.QuoteStyle | The type of quotes used in CSS code. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the formatter for CSS (and its super languages) files.
indentStyle
Optional
public readonly indentStyle: IndentStyle;
- Type: projen.javascript.biome_config.IndentStyle
The indent style applied to CSS (and its super languages) files.
indentWidth
Optional
public readonly indentWidth: number;
- Type: number
- Default: 2.
The size of the indentation applied to CSS (and its super languages) files.
Default to 2.
lineEnding
Optional
public readonly lineEnding: LineEnding;
- Type: projen.javascript.biome_config.LineEnding
The type of line ending applied to CSS (and its super languages) files.
lineWidth
Optional
public readonly lineWidth: number;
- Type: number
- Default: 80.
What's the max width of a line applied to CSS (and its super languages) files.
Defaults to 80.
quoteStyle
Optional
public readonly quoteStyle: QuoteStyle;
- Type: projen.javascript.biome_config.QuoteStyle
- Default: double.
The type of quotes used in CSS code.
Defaults to double.
CssLinterConfiguration
Options that changes how the CSS linter behaves.
Initializer
import { javascript } from 'projen'
const cssLinterConfiguration: javascript.biome_config.CssLinterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the linter for CSS files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the linter for CSS files.
CssParserConfiguration
Options that changes how the CSS parser behaves.
Initializer
import { javascript } from 'projen'
const cssParserConfiguration: javascript.biome_config.CssParserConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Allow comments to appear on incorrect lines in .css files. |
| boolean | Enables parsing of CSS Modules specific features. |
allowWrongLineComments
Optional
public readonly allowWrongLineComments: boolean;
- Type: boolean
Allow comments to appear on incorrect lines in .css
files.
cssModules
Optional
public readonly cssModules: boolean;
- Type: boolean
Enables parsing of CSS Modules specific features.
FilesConfiguration
The configuration of the filesystem.
Initializer
import { javascript } from 'projen'
const filesConfiguration: javascript.biome_config.FilesConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| string[] | Set of file and folder names that should be unconditionally ignored by Biome's scanner. |
| boolean | Tells Biome to not emit diagnostics when handling files that doesn't know. |
| string[] | A list of glob patterns. |
| number | The maximum allowed size for source code files in bytes. |
experimentalScannerIgnores
Optional
public readonly experimentalScannerIgnores: string[];
- Type: string[]
Set of file and folder names that should be unconditionally ignored by Biome's scanner.
Biome maintains an internal list of default ignore entries, which is based on user feedback and which may change in any release. This setting allows overriding this internal list completely.
This is considered an advanced feature that users should not need to tweak themselves, but they can as a last resort. This setting can only be configured in root configurations, and is ignored in nested configs.
Entries must be file or folder names. Specific paths and globs are not supported.
Examples where this may be useful:
```jsonc { "files": { "experimentalScannerIgnores": [ // You almost certainly don't want to scan your .git
// folder, which is why it's already ignored by default: ".git",
// But the scanner does scan node_modules
by default. If // you really don't want this, you can ignore it like // this: "node_modules",
// But it's probably better to ignore a specific dependency. // For instance, one that happens to be particularly slow to // scan: "RedisCommander.d.ts", ], } } ```
Please be aware that rules relying on the module graph or type inference information may be negatively affected if dependencies of your project aren't (fully) scanned.
ignoreUnknown
Optional
public readonly ignoreUnknown: boolean;
- Type: boolean
Tells Biome to not emit diagnostics when handling files that doesn't know.
includes
Optional
public readonly includes: string[];
- Type: string[]
A list of glob patterns.
Biome will handle only those files/folders that will match these patterns.
maxSize
Optional
public readonly maxSize: number;
- Type: number
- Default: 1 MiB
The maximum allowed size for source code files in bytes.
Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
FormatterConfiguration
Generic options applied to all files.
Initializer
import { javascript } from 'projen'
const formatterConfiguration: javascript.biome_config.FormatterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.AttributePosition | The attribute position style in HTML-ish languages. |
| boolean | Put the > of a multi-line HTML or JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). |
| boolean | Whether to insert spaces around brackets in object literals. |
| boolean | No description. |
| projen.javascript.biome_config.Expand | Whether to expand arrays and objects on multiple lines. |
| boolean | Stores whether formatting should be allowed to proceed if a given file has syntax errors. |
| string[] | A list of glob patterns. |
| projen.javascript.biome_config.IndentStyle | The indent style. |
| number | The size of the indentation, 2 by default. |
| projen.javascript.biome_config.LineEnding | The type of line ending. |
| number | What's the max width of a line. |
| boolean | Use any .editorconfig files to configure the formatter. Configuration in biome.json will override .editorconfig configuration. |
attributePosition
Optional
public readonly attributePosition: AttributePosition;
- Type: projen.javascript.biome_config.AttributePosition
- Default: auto.
The attribute position style in HTML-ish languages.
Defaults to auto.
bracketSameLine
Optional
public readonly bracketSameLine: boolean;
- Type: boolean
Put the >
of a multi-line HTML or JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).
bracketSpacing
Optional
public readonly bracketSpacing: boolean;
- Type: boolean
- Default: true.
Whether to insert spaces around brackets in object literals.
Defaults to true.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
expand
Optional
public readonly expand: Expand;
- Type: projen.javascript.biome_config.Expand
- Default: auto".
Whether to expand arrays and objects on multiple lines.
When set to auto
, object literals are formatted on multiple lines if the first property has a newline, and array literals are formatted on a single line if it fits in the line. When set to always
, these literals are formatted on multiple lines, regardless of length of the list. When set to never
, these literals are formatted on a single line if it fits in the line. When formatting package.json
, Biome will use always
unless configured otherwise. Defaults to "auto".
formatWithErrors
Optional
public readonly formatWithErrors: boolean;
- Type: boolean
Stores whether formatting should be allowed to proceed if a given file has syntax errors.
includes
Optional
public readonly includes: string[];
- Type: string[]
A list of glob patterns.
The formatter will include files/folders that will match these patterns.
indentStyle
Optional
public readonly indentStyle: IndentStyle;
- Type: projen.javascript.biome_config.IndentStyle
The indent style.
indentWidth
Optional
public readonly indentWidth: number;
- Type: number
The size of the indentation, 2 by default.
lineEnding
Optional
public readonly lineEnding: LineEnding;
- Type: projen.javascript.biome_config.LineEnding
The type of line ending.
lineWidth
Optional
public readonly lineWidth: number;
- Type: number
- Default: 80.
What's the max width of a line.
Defaults to 80.
useEditorconfig
Optional
public readonly useEditorconfig: boolean;
- Type: boolean
Use any .editorconfig
files to configure the formatter. Configuration in biome.json
will override .editorconfig
configuration.
Default: true
.
GraphqlAssistConfiguration
Options that changes how the GraphQL linter behaves.
Initializer
import { javascript } from 'projen'
const graphqlAssistConfiguration: javascript.biome_config.GraphqlAssistConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the formatter for GraphQL files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the formatter for GraphQL files.
GraphqlConfiguration
Options applied to GraphQL files.
Initializer
import { javascript } from 'projen'
const graphqlConfiguration: javascript.biome_config.GraphqlConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.GraphqlAssistConfiguration | Assist options. |
| projen.javascript.biome_config.GraphqlFormatterConfiguration | GraphQL formatter options. |
| projen.javascript.biome_config.GraphqlLinterConfiguration | No description. |
assist
Optional
public readonly assist: GraphqlAssistConfiguration;
- Type: projen.javascript.biome_config.GraphqlAssistConfiguration
Assist options.
formatter
Optional
public readonly formatter: GraphqlFormatterConfiguration;
- Type: projen.javascript.biome_config.GraphqlFormatterConfiguration
GraphQL formatter options.
linter
Optional
public readonly linter: GraphqlLinterConfiguration;
- Type: projen.javascript.biome_config.GraphqlLinterConfiguration
GraphqlFormatterConfiguration
Options that changes how the GraphQL formatter behaves.
Initializer
import { javascript } from 'projen'
const graphqlFormatterConfiguration: javascript.biome_config.GraphqlFormatterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Whether to insert spaces around brackets in object literals. |
| boolean | Control the formatter for GraphQL files. |
| projen.javascript.biome_config.IndentStyle | The indent style applied to GraphQL files. |
| number | The size of the indentation applied to GraphQL files. |
| projen.javascript.biome_config.LineEnding | The type of line ending applied to GraphQL files. |
| number | What's the max width of a line applied to GraphQL files. |
| projen.javascript.biome_config.QuoteStyle | The type of quotes used in GraphQL code. |
bracketSpacing
Optional
public readonly bracketSpacing: boolean;
- Type: boolean
- Default: true.
Whether to insert spaces around brackets in object literals.
Defaults to true.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the formatter for GraphQL files.
indentStyle
Optional
public readonly indentStyle: IndentStyle;
- Type: projen.javascript.biome_config.IndentStyle
The indent style applied to GraphQL files.
indentWidth
Optional
public readonly indentWidth: number;
- Type: number
- Default: 2.
The size of the indentation applied to GraphQL files.
Default to 2.
lineEnding
Optional
public readonly lineEnding: LineEnding;
- Type: projen.javascript.biome_config.LineEnding
The type of line ending applied to GraphQL files.
lineWidth
Optional
public readonly lineWidth: number;
- Type: number
- Default: 80.
What's the max width of a line applied to GraphQL files.
Defaults to 80.
quoteStyle
Optional
public readonly quoteStyle: QuoteStyle;
- Type: projen.javascript.biome_config.QuoteStyle
- Default: double.
The type of quotes used in GraphQL code.
Defaults to double.
GraphqlLinterConfiguration
Options that change how the GraphQL linter behaves.
Initializer
import { javascript } from 'projen'
const graphqlLinterConfiguration: javascript.biome_config.GraphqlLinterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the formatter for GraphQL files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the formatter for GraphQL files.
GritAssistConfiguration
Initializer
import { javascript } from 'projen'
const gritAssistConfiguration: javascript.biome_config.GritAssistConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the assist functionality for Grit files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the assist functionality for Grit files.
GritConfiguration
Options applied to GritQL files.
Initializer
import { javascript } from 'projen'
const gritConfiguration: javascript.biome_config.GritConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.GritAssistConfiguration | Assist options. |
| projen.javascript.biome_config.GritFormatterConfiguration | Formatting options. |
| projen.javascript.biome_config.GritLinterConfiguration | Formatting options. |
assist
Optional
public readonly assist: GritAssistConfiguration;
- Type: projen.javascript.biome_config.GritAssistConfiguration
Assist options.
formatter
Optional
public readonly formatter: GritFormatterConfiguration;
- Type: projen.javascript.biome_config.GritFormatterConfiguration
Formatting options.
linter
Optional
public readonly linter: GritLinterConfiguration;
- Type: projen.javascript.biome_config.GritLinterConfiguration
Formatting options.
GritFormatterConfiguration
Initializer
import { javascript } from 'projen'
const gritFormatterConfiguration: javascript.biome_config.GritFormatterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the formatter for Grit files. |
| projen.javascript.biome_config.IndentStyle | The indent style applied to Grit files. |
| number | The size of the indentation applied to Grit files. |
| projen.javascript.biome_config.LineEnding | The type of line ending applied to Grit files. |
| number | What's the max width of a line applied to Grit files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the formatter for Grit files.
indentStyle
Optional
public readonly indentStyle: IndentStyle;
- Type: projen.javascript.biome_config.IndentStyle
The indent style applied to Grit files.
indentWidth
Optional
public readonly indentWidth: number;
- Type: number
- Default: 2.
The size of the indentation applied to Grit files.
Default to 2.
lineEnding
Optional
public readonly lineEnding: LineEnding;
- Type: projen.javascript.biome_config.LineEnding
The type of line ending applied to Grit files.
lineWidth
Optional
public readonly lineWidth: number;
- Type: number
- Default: 80.
What's the max width of a line applied to Grit files.
Defaults to 80.
GritLinterConfiguration
Initializer
import { javascript } from 'projen'
const gritLinterConfiguration: javascript.biome_config.GritLinterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the linter for Grit files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the linter for Grit files.
HtmlConfiguration
Options applied to HTML files.
Initializer
import { javascript } from 'projen'
const htmlConfiguration: javascript.biome_config.HtmlConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.HtmlFormatterConfiguration | HTML formatter options. |
| any | HTML parsing options. |
formatter
Optional
public readonly formatter: HtmlFormatterConfiguration;
- Type: projen.javascript.biome_config.HtmlFormatterConfiguration
HTML formatter options.
parser
Optional
public readonly parser: any;
- Type: any
HTML parsing options.
HtmlFormatterConfiguration
Options that changes how the HTML formatter behaves.
Initializer
import { javascript } from 'projen'
const htmlFormatterConfiguration: javascript.biome_config.HtmlFormatterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.AttributePosition | The attribute position style in HTML elements. |
| boolean | Whether to hug the closing bracket of multiline HTML tags to the end of the last line, rather than being alone on the following line. |
| boolean | Control the formatter for HTML (and its super languages) files. |
| boolean | Whether to indent the <script> and <style> tags for HTML (and its super languages). |
| projen.javascript.biome_config.IndentStyle | The indent style applied to HTML (and its super languages) files. |
| number | The size of the indentation applied to HTML (and its super languages) files. |
| projen.javascript.biome_config.LineEnding | The type of line ending applied to HTML (and its super languages) files. |
| number | What's the max width of a line applied to HTML (and its super languages) files. |
| projen.javascript.biome_config.SelfCloseVoidElements | Whether void elements should be self-closed. |
| projen.javascript.biome_config.WhitespaceSensitivity | Whether to account for whitespace sensitivity when formatting HTML (and its super languages). |
attributePosition
Optional
public readonly attributePosition: AttributePosition;
- Type: projen.javascript.biome_config.AttributePosition
- Default: auto.
The attribute position style in HTML elements.
Defaults to auto.
bracketSameLine
Optional
public readonly bracketSameLine: boolean;
- Type: boolean
- Default: false.
Whether to hug the closing bracket of multiline HTML tags to the end of the last line, rather than being alone on the following line.
Defaults to false.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the formatter for HTML (and its super languages) files.
indentScriptAndStyle
Optional
public readonly indentScriptAndStyle: boolean;
- Type: boolean
- Default: false.
Whether to indent the <script>
and <style>
tags for HTML (and its super languages).
Defaults to false.
indentStyle
Optional
public readonly indentStyle: IndentStyle;
- Type: projen.javascript.biome_config.IndentStyle
The indent style applied to HTML (and its super languages) files.
indentWidth
Optional
public readonly indentWidth: number;
- Type: number
- Default: 2.
The size of the indentation applied to HTML (and its super languages) files.
Default to 2.
lineEnding
Optional
public readonly lineEnding: LineEnding;
- Type: projen.javascript.biome_config.LineEnding
The type of line ending applied to HTML (and its super languages) files.
lineWidth
Optional
public readonly lineWidth: number;
- Type: number
- Default: 80.
What's the max width of a line applied to HTML (and its super languages) files.
Defaults to 80.
selfCloseVoidElements
Optional
public readonly selfCloseVoidElements: SelfCloseVoidElements;
- Type: projen.javascript.biome_config.SelfCloseVoidElements
- Default: never.
Whether void elements should be self-closed.
Defaults to never.
whitespaceSensitivity
Optional
public readonly whitespaceSensitivity: WhitespaceSensitivity;
- Type: projen.javascript.biome_config.WhitespaceSensitivity
- Default: css".
Whether to account for whitespace sensitivity when formatting HTML (and its super languages).
Defaults to "css".
JsAssistConfiguration
Assist options specific to the JavaScript assist.
Initializer
import { javascript } from 'projen'
const jsAssistConfiguration: javascript.biome_config.JsAssistConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the assist for JavaScript (and its super languages) files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the assist for JavaScript (and its super languages) files.
JsConfiguration
A set of options applied to the JavaScript files.
Initializer
import { javascript } from 'projen'
const jsConfiguration: javascript.biome_config.JsConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.JsAssistConfiguration | Assist options. |
| projen.javascript.biome_config.JsFormatterConfiguration | Formatting options. |
| string[] | A list of global bindings that should be ignored by the analyzers. |
| projen.javascript.biome_config.JsxRuntime | Indicates the type of runtime or transformation used for interpreting JSX. |
| projen.javascript.biome_config.JsLinterConfiguration | Linter options. |
| projen.javascript.biome_config.JsParserConfiguration | Parsing options. |
assist
Optional
public readonly assist: JsAssistConfiguration;
- Type: projen.javascript.biome_config.JsAssistConfiguration
Assist options.
formatter
Optional
public readonly formatter: JsFormatterConfiguration;
- Type: projen.javascript.biome_config.JsFormatterConfiguration
Formatting options.
globals
Optional
public readonly globals: string[];
- Type: string[]
A list of global bindings that should be ignored by the analyzers.
If defined here, they should not emit diagnostics.
jsxRuntime
Optional
public readonly jsxRuntime: JsxRuntime;
- Type: projen.javascript.biome_config.JsxRuntime
Indicates the type of runtime or transformation used for interpreting JSX.
linter
Optional
public readonly linter: JsLinterConfiguration;
- Type: projen.javascript.biome_config.JsLinterConfiguration
Linter options.
parser
Optional
public readonly parser: JsParserConfiguration;
- Type: projen.javascript.biome_config.JsParserConfiguration
Parsing options.
JsFormatterConfiguration
Formatting options specific to the JavaScript files.
Initializer
import { javascript } from 'projen'
const jsFormatterConfiguration: javascript.biome_config.JsFormatterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.ArrowParentheses | Whether to add non-necessary parentheses to arrow functions. |
| projen.javascript.biome_config.AttributePosition | The attribute position style in JSX elements. |
| boolean | Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line, rather than being alone on the following line. |
| boolean | Whether to insert spaces around brackets in object literals. |
| boolean | Control the formatter for JavaScript (and its super languages) files. |
| projen.javascript.biome_config.Expand | Whether to expand arrays and objects on multiple lines. |
| projen.javascript.biome_config.IndentStyle | The indent style applied to JavaScript (and its super languages) files. |
| number | The size of the indentation applied to JavaScript (and its super languages) files. |
| projen.javascript.biome_config.QuoteStyle | The type of quotes used in JSX. |
| projen.javascript.biome_config.LineEnding | The type of line ending applied to JavaScript (and its super languages) files. |
| number | What's the max width of a line applied to JavaScript (and its super languages) files. |
| projen.javascript.biome_config.QuoteProperties | When properties in objects are quoted. |
| projen.javascript.biome_config.QuoteStyle | The type of quotes used in JavaScript code. |
| projen.javascript.biome_config.Semicolons | Whether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI. |
| projen.javascript.biome_config.TrailingCommas | Print trailing commas wherever possible in multi-line comma-separated syntactic structures. |
arrowParentheses
Optional
public readonly arrowParentheses: ArrowParentheses;
- Type: projen.javascript.biome_config.ArrowParentheses
- Default: always".
Whether to add non-necessary parentheses to arrow functions.
Defaults to "always".
attributePosition
Optional
public readonly attributePosition: AttributePosition;
- Type: projen.javascript.biome_config.AttributePosition
- Default: auto.
The attribute position style in JSX elements.
Defaults to auto.
bracketSameLine
Optional
public readonly bracketSameLine: boolean;
- Type: boolean
- Default: false.
Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line, rather than being alone on the following line.
Defaults to false.
bracketSpacing
Optional
public readonly bracketSpacing: boolean;
- Type: boolean
- Default: true.
Whether to insert spaces around brackets in object literals.
Defaults to true.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the formatter for JavaScript (and its super languages) files.
expand
Optional
public readonly expand: Expand;
- Type: projen.javascript.biome_config.Expand
- Default: auto".
Whether to expand arrays and objects on multiple lines.
When set to auto
, object literals are formatted on multiple lines if the first property has a newline, and array literals are formatted on a single line if it fits in the line. When set to always
, these literals are formatted on multiple lines, regardless of length of the list. When set to never
, these literals are formatted on a single line if it fits in the line. When formatting package.json
, Biome will use always
unless configured otherwise. Defaults to "auto".
indentStyle
Optional
public readonly indentStyle: IndentStyle;
- Type: projen.javascript.biome_config.IndentStyle
The indent style applied to JavaScript (and its super languages) files.
indentWidth
Optional
public readonly indentWidth: number;
- Type: number
- Default: 2.
The size of the indentation applied to JavaScript (and its super languages) files.
Default to 2.
jsxQuoteStyle
Optional
public readonly jsxQuoteStyle: QuoteStyle;
- Type: projen.javascript.biome_config.QuoteStyle
- Default: double.
The type of quotes used in JSX.
Defaults to double.
lineEnding
Optional
public readonly lineEnding: LineEnding;
- Type: projen.javascript.biome_config.LineEnding
The type of line ending applied to JavaScript (and its super languages) files.
lineWidth
Optional
public readonly lineWidth: number;
- Type: number
- Default: 80.
What's the max width of a line applied to JavaScript (and its super languages) files.
Defaults to 80.
quoteProperties
Optional
public readonly quoteProperties: QuoteProperties;
- Type: projen.javascript.biome_config.QuoteProperties
- Default: asNeeded.
When properties in objects are quoted.
Defaults to asNeeded.
quoteStyle
Optional
public readonly quoteStyle: QuoteStyle;
- Type: projen.javascript.biome_config.QuoteStyle
- Default: double.
The type of quotes used in JavaScript code.
Defaults to double.
semicolons
Optional
public readonly semicolons: Semicolons;
- Type: projen.javascript.biome_config.Semicolons
Whether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI.
trailingCommas
Optional
public readonly trailingCommas: TrailingCommas;
- Type: projen.javascript.biome_config.TrailingCommas
- Default: all".
Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
Defaults to "all".
JsLinterConfiguration
Linter options specific to the JavaScript linter.
Initializer
import { javascript } from 'projen'
const jsLinterConfiguration: javascript.biome_config.JsLinterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the linter for JavaScript (and its super languages) files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the linter for JavaScript (and its super languages) files.
JsonAssistConfiguration
Linter options specific to the JSON linter.
Initializer
import { javascript } from 'projen'
const jsonAssistConfiguration: javascript.biome_config.JsonAssistConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the assist for JSON (and its super languages) files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the assist for JSON (and its super languages) files.
JsonConfiguration
Options applied to JSON files.
Initializer
import { javascript } from 'projen'
const jsonConfiguration: javascript.biome_config.JsonConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.JsonAssistConfiguration | Assist options. |
| projen.javascript.biome_config.JsonFormatterConfiguration | Formatting options. |
| projen.javascript.biome_config.JsonLinterConfiguration | Linting options. |
| projen.javascript.biome_config.JsonParserConfiguration | Parsing options. |
assist
Optional
public readonly assist: JsonAssistConfiguration;
- Type: projen.javascript.biome_config.JsonAssistConfiguration
Assist options.
formatter
Optional
public readonly formatter: JsonFormatterConfiguration;
- Type: projen.javascript.biome_config.JsonFormatterConfiguration
Formatting options.
linter
Optional
public readonly linter: JsonLinterConfiguration;
- Type: projen.javascript.biome_config.JsonLinterConfiguration
Linting options.
parser
Optional
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
Name | Type | Description |
---|---|---|
| boolean | Whether to insert spaces around brackets in object literals. |
| boolean | Control the formatter for JSON (and its super languages) files. |
| projen.javascript.biome_config.Expand | Whether to expand arrays and objects on multiple lines. |
| projen.javascript.biome_config.IndentStyle | The indent style applied to JSON (and its super languages) files. |
| number | The size of the indentation applied to JSON (and its super languages) files. |
| projen.javascript.biome_config.LineEnding | The type of line ending applied to JSON (and its super languages) files. |
| number | What's the max width of a line applied to JSON (and its super languages) files. |
| projen.javascript.biome_config.TrailingCommas2 | Print trailing commas wherever possible in multi-line comma-separated syntactic structures. |
bracketSpacing
Optional
public readonly bracketSpacing: boolean;
- Type: boolean
- Default: true.
Whether to insert spaces around brackets in object literals.
Defaults to true.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the formatter for JSON (and its super languages) files.
expand
Optional
public readonly expand: Expand;
- Type: projen.javascript.biome_config.Expand
- Default: auto".
Whether to expand arrays and objects on multiple lines.
When set to auto
, object literals are formatted on multiple lines if the first property has a newline, and array literals are formatted on a single line if it fits in the line. When set to always
, these literals are formatted on multiple lines, regardless of length of the list. When set to never
, these literals are formatted on a single line if it fits in the line. When formatting package.json
, Biome will use always
unless configured otherwise. Defaults to "auto".
indentStyle
Optional
public readonly indentStyle: IndentStyle;
- Type: projen.javascript.biome_config.IndentStyle
The indent style applied to JSON (and its super languages) files.
indentWidth
Optional
public readonly indentWidth: number;
- Type: number
- Default: 2.
The size of the indentation applied to JSON (and its super languages) files.
Default to 2.
lineEnding
Optional
public readonly lineEnding: LineEnding;
- Type: projen.javascript.biome_config.LineEnding
The type of line ending applied to JSON (and its super languages) files.
lineWidth
Optional
public readonly lineWidth: number;
- Type: number
- Default: 80.
What's the max width of a line applied to JSON (and its super languages) files.
Defaults to 80.
trailingCommas
Optional
public readonly trailingCommas: TrailingCommas2;
- Type: projen.javascript.biome_config.TrailingCommas2
- Default: none".
Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
Defaults to "none".
JsonLinterConfiguration
Linter options specific to the JSON linter.
Initializer
import { javascript } from 'projen'
const jsonLinterConfiguration: javascript.biome_config.JsonLinterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Control the linter for JSON (and its super languages) files. |
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Control the linter for JSON (and its super languages) files.
JsonParserConfiguration
Options that changes how the JSON parser behaves.
Initializer
import { javascript } from 'projen'
const jsonParserConfiguration: javascript.biome_config.JsonParserConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Allow parsing comments in .json files. |
| boolean | Allow parsing trailing commas in .json files. |
allowComments
Optional
public readonly allowComments: boolean;
- Type: boolean
Allow parsing comments in .json
files.
allowTrailingCommas
Optional
public readonly allowTrailingCommas: boolean;
- Type: boolean
Allow parsing trailing commas in .json
files.
JsParserConfiguration
Options that changes how the JavaScript parser behaves.
Initializer
import { javascript } from 'projen'
const jsParserConfiguration: javascript.biome_config.JsParserConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| boolean | Enables parsing of Grit metavariables. |
| boolean | When enabled, files like .js /.mjs /.cjs may contain JSX syntax. |
| boolean | It enables the experimental and unsafe parsing of parameter decorators. |
gritMetavariables
Optional
public readonly gritMetavariables: boolean;
- Type: boolean
- Default: false`.
Enables parsing of Grit metavariables.
Defaults to false
.
jsxEverywhere
Optional
public readonly jsxEverywhere: boolean;
- Type: boolean
- Default: true`.
When enabled, files like .js
/.mjs
/.cjs
may contain JSX syntax.
Defaults to true
.
unsafeParameterDecoratorsEnabled
Optional
public readonly unsafeParameterDecoratorsEnabled: boolean;
- Type: boolean
It enables the experimental and unsafe parsing of parameter decorators.
These decorators belong to an old proposal, and they are subject to change.
LinterConfiguration
Initializer
import { javascript } from 'projen'
const linterConfiguration: javascript.biome_config.LinterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| {[ key: string ]: projen.javascript.biome_config.RuleDomainValue} | An object where the keys are the names of the domains, and the values are all , recommended , or none . |
| boolean | if false , it disables the feature and the linter won't be executed. |
| string[] | A list of glob patterns. |
| projen.javascript.biome_config.Rules | List of rules. |
domains
Optional
public readonly domains: {[ key: string ]: RuleDomainValue};
- Type: {[ key: string ]: projen.javascript.biome_config.RuleDomainValue}
An object where the keys are the names of the domains, and the values are all
, recommended
, or none
.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
if false
, it disables the feature and the linter won't be executed.
true
by default
includes
Optional
public readonly includes: string[];
- Type: string[]
A list of glob patterns.
The analyzer will handle only those files/folders that will match these patterns.
rules
Optional
public readonly rules: Rules;
- Type: projen.javascript.biome_config.Rules
List of rules.
OverrideAssistConfiguration
Initializer
import { javascript } from 'projen'
const overrideAssistConfiguration: javascript.biome_config.OverrideAssistConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.Actions | List of actions. |
| boolean | if false , it disables the feature and the assist won't be executed. |
actions
Optional
public readonly actions: Actions;
- Type: projen.javascript.biome_config.Actions
List of actions.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
if false
, it disables the feature and the assist won't be executed.
true
by default
OverrideFilesConfiguration
Initializer
import { javascript } from 'projen'
const overrideFilesConfiguration: javascript.biome_config.OverrideFilesConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| number | File size limit in bytes. |
maxSize
Optional
public readonly maxSize: number;
- Type: number
File size limit in bytes.
OverrideFormatterConfiguration
Initializer
import { javascript } from 'projen'
const overrideFormatterConfiguration: javascript.biome_config.OverrideFormatterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.AttributePosition | The attribute position style. |
| boolean | Put the > of a multi-line HTML or JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). |
| boolean | Whether to insert spaces around brackets in object literals. |
| boolean | No description. |
| projen.javascript.biome_config.Expand | Whether to expand arrays and objects on multiple lines. |
| boolean | Stores whether formatting should be allowed to proceed if a given file has syntax errors. |
| number | The size of the indentation, 2 by default (deprecated, use indent-width ). |
| projen.javascript.biome_config.IndentStyle | The indent style. |
| number | The size of the indentation, 2 by default. |
| projen.javascript.biome_config.LineEnding | The type of line ending. |
| number | What's the max width of a line. |
attributePosition
Optional
public readonly attributePosition: AttributePosition;
- Type: projen.javascript.biome_config.AttributePosition
The attribute position style.
bracketSameLine
Optional
public readonly bracketSameLine: boolean;
- Type: boolean
Put the >
of a multi-line HTML or JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).
bracketSpacing
Optional
public readonly bracketSpacing: boolean;
- Type: boolean
- Default: true.
Whether to insert spaces around brackets in object literals.
Defaults to true.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
expand
Optional
public readonly expand: Expand;
- Type: projen.javascript.biome_config.Expand
- Default: auto".
Whether to expand arrays and objects on multiple lines.
When set to auto
, object literals are formatted on multiple lines if the first property has a newline, and array literals are formatted on a single line if it fits in the line. When set to always
, these literals are formatted on multiple lines, regardless of length of the list. When set to never
, these literals are formatted on a single line if it fits in the line. When formatting package.json
, Biome will use always
unless configured otherwise. Defaults to "auto".
formatWithErrors
Optional
public readonly formatWithErrors: boolean;
- Type: boolean
Stores whether formatting should be allowed to proceed if a given file has syntax errors.
indentSize
Optional
public readonly indentSize: number;
- Type: number
The size of the indentation, 2 by default (deprecated, use indent-width
).
indentStyle
Optional
public readonly indentStyle: IndentStyle;
- Type: projen.javascript.biome_config.IndentStyle
The indent style.
indentWidth
Optional
public readonly indentWidth: number;
- Type: number
The size of the indentation, 2 by default.
lineEnding
Optional
public readonly lineEnding: LineEnding;
- Type: projen.javascript.biome_config.LineEnding
The type of line ending.
lineWidth
Optional
public readonly lineWidth: number;
- Type: number
- Default: 80.
What's the max width of a line.
Defaults to 80.
OverrideLinterConfiguration
Initializer
import { javascript } from 'projen'
const overrideLinterConfiguration: javascript.biome_config.OverrideLinterConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| {[ key: string ]: projen.javascript.biome_config.RuleDomainValue} | List of rules. |
| boolean | if false , it disables the feature and the linter won't be executed. |
| projen.javascript.biome_config.Rules | List of rules. |
domains
Optional
public readonly domains: {[ key: string ]: RuleDomainValue};
- Type: {[ key: string ]: projen.javascript.biome_config.RuleDomainValue}
List of rules.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
if false
, it disables the feature and the linter won't be executed.
true
by default
rules
Optional
public readonly rules: Rules;
- Type: projen.javascript.biome_config.Rules
List of rules.
OverridePattern
Initializer
import { javascript } from 'projen'
const overridePattern: javascript.biome_config.OverridePattern = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.OverrideAssistConfiguration | Specific configuration for the Json language. |
| projen.javascript.biome_config.CssConfiguration | Specific configuration for the CSS language. |
| projen.javascript.biome_config.OverrideFilesConfiguration | Specific configuration for the filesystem. |
| projen.javascript.biome_config.OverrideFormatterConfiguration | Specific configuration for the Json language. |
| projen.javascript.biome_config.GraphqlConfiguration | Specific configuration for the Graphql language. |
| projen.javascript.biome_config.GritConfiguration | Specific configuration for the GritQL language. |
| projen.javascript.biome_config.HtmlConfiguration | Specific configuration for the GritQL language. |
| string[] | A list of glob patterns. |
| projen.javascript.biome_config.JsConfiguration | Specific configuration for the JavaScript language. |
| projen.javascript.biome_config.JsonConfiguration | Specific configuration for the Json language. |
| projen.javascript.biome_config.OverrideLinterConfiguration | Specific configuration for the Json language. |
| string[] | Specific configuration for additional plugins. |
assist
Optional
public readonly assist: OverrideAssistConfiguration;
- Type: projen.javascript.biome_config.OverrideAssistConfiguration
Specific configuration for the Json language.
css
Optional
public readonly css: CssConfiguration;
- Type: projen.javascript.biome_config.CssConfiguration
Specific configuration for the CSS language.
files
Optional
public readonly files: OverrideFilesConfiguration;
- Type: projen.javascript.biome_config.OverrideFilesConfiguration
Specific configuration for the filesystem.
formatter
Optional
public readonly formatter: OverrideFormatterConfiguration;
- Type: projen.javascript.biome_config.OverrideFormatterConfiguration
Specific configuration for the Json language.
graphql
Optional
public readonly graphql: GraphqlConfiguration;
- Type: projen.javascript.biome_config.GraphqlConfiguration
Specific configuration for the Graphql language.
grit
Optional
public readonly grit: GritConfiguration;
- Type: projen.javascript.biome_config.GritConfiguration
Specific configuration for the GritQL language.
html
Optional
public readonly html: HtmlConfiguration;
- Type: projen.javascript.biome_config.HtmlConfiguration
Specific configuration for the GritQL language.
includes
Optional
public readonly includes: string[];
- Type: string[]
A list of glob patterns.
Biome will include files/folders that will match these patterns.
javascript
Optional
public readonly javascript: JsConfiguration;
- Type: projen.javascript.biome_config.JsConfiguration
Specific configuration for the JavaScript language.
json
Optional
public readonly json: JsonConfiguration;
- Type: projen.javascript.biome_config.JsonConfiguration
Specific configuration for the Json language.
linter
Optional
public readonly linter: OverrideLinterConfiguration;
- Type: projen.javascript.biome_config.OverrideLinterConfiguration
Specific configuration for the Json language.
plugins
Optional
public readonly plugins: string[];
- Type: string[]
Specific configuration for additional plugins.
Rules
Initializer
import { javascript } from 'projen'
const rules: javascript.biome_config.Rules = { ... }
Properties
Name | Type | Description |
---|---|---|
| any | No description. |
| any | No description. |
| any | No description. |
| any | No description. |
| any | No description. |
| boolean | It enables the lint rules recommended by Biome. |
| any | No description. |
| any | No description. |
| any | No description. |
a11Y
Optional
public readonly a11Y: any;
- Type: any
complexity
Optional
public readonly complexity: any;
- Type: any
correctness
Optional
public readonly correctness: any;
- Type: any
nursery
Optional
public readonly nursery: any;
- Type: any
performance
Optional
public readonly performance: any;
- Type: any
recommended
Optional
public readonly recommended: boolean;
- Type: boolean
It enables the lint rules recommended by Biome.
true
by default.
security
Optional
public readonly security: any;
- Type: any
style
Optional
public readonly style: any;
- Type: any
suspicious
Optional
public readonly suspicious: any;
- Type: any
Source
A list of rules that belong to this group.
Initializer
import { javascript } from 'projen'
const source: javascript.biome_config.Source = { ... }
Properties
Name | Type | Description |
---|---|---|
| any | Provides a code action to sort the imports and exports in the file using a built-in or custom order. |
| boolean | It enables the recommended rules for this group. |
| any | Enforce attribute sorting in JSX elements. |
| any | Sorts the keys of a JSON object in natural order. |
| any | Enforce ordering of CSS properties and nested rules. |
organizeImports
Optional
public readonly organizeImports: any;
- Type: any
Provides a code action to sort the imports and exports in the file using a built-in or custom order.
recommended
Optional
public readonly recommended: boolean;
- Type: boolean
It enables the recommended rules for this group.
useSortedAttributes
Optional
public readonly useSortedAttributes: any;
- Type: any
Enforce attribute sorting in JSX elements.
useSortedKeys
Optional
public readonly useSortedKeys: any;
- Type: any
Sorts the keys of a JSON object in natural order.
useSortedProperties
Optional
public readonly useSortedProperties: any;
- Type: any
Enforce ordering of CSS properties and nested rules.
VcsConfiguration
Set of properties to integrate Biome with a VCS software.
Initializer
import { javascript } from 'projen'
const vcsConfiguration: javascript.biome_config.VcsConfiguration = { ... }
Properties
Name | Type | Description |
---|---|---|
| projen.javascript.biome_config.VcsClientKind | The kind of client. |
| string | The main branch of the project. |
| boolean | Whether Biome should integrate itself with the VCS client. |
| string | The folder where Biome should check for VCS files. |
| boolean | Whether Biome should use the VCS ignore file. |
clientKind
Optional
public readonly clientKind: VcsClientKind;
- Type: projen.javascript.biome_config.VcsClientKind
The kind of client.
defaultBranch
Optional
public readonly defaultBranch: string;
- Type: string
The main branch of the project.
enabled
Optional
public readonly enabled: boolean;
- Type: boolean
Whether Biome should integrate itself with the VCS client.
root
Optional
public readonly root: string;
- Type: string
The folder where Biome should check for VCS files.
By default, Biome will use the same folder where biome.json
was found.
If Biome can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, Biome won't use the VCS integration, and a diagnostic will be emitted
useIgnoreFile
Optional
public readonly useIgnoreFile: boolean;
- Type: boolean
Whether Biome should use the VCS ignore file.
When [true], Biome will ignore the files specified in the ignore file.
Enums
ArrowParentheses
Members
Name | Description |
---|---|
| always. |
| asNeeded. |
ALWAYS
always.
AS_NEEDED
asNeeded.
AttributePosition
Members
Name | Description |
---|---|
| auto. |
| multiline. |
AUTO
auto.
MULTILINE
multiline.
Expand
Members
Name | Description |
---|---|
| auto. |
| always. |
| never. |
AUTO
auto.
ALWAYS
always.
NEVER
never.
IndentStyle
Members
Name | Description |
---|---|
| tab. |
| space. |
TAB
tab.
SPACE
space.
JsxRuntime
Indicates the type of runtime or transformation used for interpreting JSX.
Members
Name | Description |
---|---|
| transparent. |
| reactClassic. |
TRANSPARENT
transparent.
REACT_CLASSIC
reactClassic.
LineEnding
Members
Name | Description |
---|---|
| lf. |
| crlf. |
| cr. |
LF
lf.
CRLF
crlf.
CR
cr.
QuoteProperties
Members
Name | Description |
---|---|
| asNeeded. |
| preserve. |
AS_NEEDED
asNeeded.
PRESERVE
preserve.
QuoteStyle
Members
Name | Description |
---|---|
| double. |
| single. |
DOUBLE
double.
SINGLE
single.
RuleDomainValue
Members
Name | Description |
---|---|
| all. |
| none. |
| recommended. |
ALL
all.
NONE
none.
RECOMMENDED
recommended.
SelfCloseVoidElements
Controls whether void-elements should be self closed.
Members
Name | Description |
---|---|
| never. |
| always. |
NEVER
never.
ALWAYS
always.
Semicolons
Members
Name | Description |
---|---|
| always. |
| asNeeded. |
ALWAYS
always.
AS_NEEDED
asNeeded.
TrailingCommas
Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
Members
Name | Description |
---|---|
| all. |
| es5. |
| none. |
ALL
all.
ES5
es5.
NONE
none.
TrailingCommas2
Members
Name | Description |
---|---|
| none. |
| all. |
NONE
none.
ALL
all.
VcsClientKind
Integration with the git client as VCS.
Members
Name | Description |
---|---|
| git. |
GIT
git.
WhitespaceSensitivity
Whitespace sensitivity for HTML formatting.
The following two cases won't produce the same output:
| | html | output | | -------------- | :------------: | :----------: | | with spaces | 1<b> 2 </b>3
| 1 2 3 | | without spaces | 1<b>2</b>3
| 123 |
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): html <span>really long content</span>
as this, where the content hugs the tags: html <span >really long content</span >
Note that this is only necessary for inline elements. Block elements do not have this restriction.
Members
Name | Description |
---|---|
| css. |
| strict. |
| ignore. |
CSS
css.
STRICT
strict.
IGNORE
ignore.