Schema URL

Type: object

The configuration that is contained inside the file biome.json

Properties

$schema string | null

A field for the JSON schema specification

extends StringSet | null

A list of paths to other JSON files, used to extends the current configuration.

files FilesConfiguration | null

The configuration of the filesystem

formatter FormatterConfiguration | null

The configuration of the formatter

javascript JavascriptConfiguration | null

Specific configuration for the JavaScript language

json JsonConfiguration | null

Specific configuration for the Json language

linter LinterConfiguration | null

The configuration for the linter

organizeImports OrganizeImports | null

The configuration of the import sorting

overrides Overrides | null

A list of granular patterns that should be applied only to a sub set of files

vcs VcsConfiguration | null

The configuration of the VCS integration

Definitions

A11y object

A list of rules that belong to this group

all boolean | null

It enables ALL rules for this group.

noAccessKey RuleConfiguration | null

Enforce that the accessKey attribute is not used on any HTML element.

noAriaUnsupportedElements RuleConfiguration | null

Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.

noAutofocus RuleConfiguration | null

Enforce that autoFocus prop is not used on elements.

noBlankTarget RuleConfiguration | null

Disallow target="_blank" attribute without rel="noreferrer"

noDistractingElements RuleConfiguration | null

Enforces that no distracting elements are used.

noHeaderScope RuleConfiguration | null

The scope prop should be used only on elements.

noNoninteractiveElementToInteractiveRole RuleConfiguration | null

Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.

noNoninteractiveTabindex RuleConfiguration | null

Enforce that tabIndex is not assigned to non-interactive HTML elements.

noPositiveTabindex RuleConfiguration | null

Prevent the usage of positive integers on tabIndex property

noRedundantAlt RuleConfiguration | null

Enforce img alt prop does not contain the word "image", "picture", or "photo".

noRedundantRoles RuleConfiguration | null

Enforce explicit role property is not the same as implicit/default role property on an element.

noSvgWithoutTitle RuleConfiguration | null

Enforces the usage of the title element for the svg element.

recommended boolean | null

It enables the recommended rules for this group

useAltText RuleConfiguration | null

Enforce that all elements that require alternative text have meaningful information to relay back to the end user.

useAnchorContent RuleConfiguration | null

Enforce that anchors have content and that the content is accessible to screen readers.

useAriaPropsForRole RuleConfiguration | null

Enforce that elements with ARIA roles must have all required ARIA attributes for that role.

useButtonType RuleConfiguration | null

Enforces the usage of the attribute type for the element button

useHeadingContent RuleConfiguration | null

Enforce that heading elements (h1, h2, etc.) have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the aria-hidden prop.

useHtmlLang RuleConfiguration | null

Enforce that html element has lang attribute.

useIframeTitle RuleConfiguration | null

Enforces the usage of the attribute title for the element iframe.

useKeyWithClickEvents RuleConfiguration | null

Enforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress.

useKeyWithMouseEvents RuleConfiguration | null

Enforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur.

useMediaCaption RuleConfiguration | null

Enforces that audio and video elements must have a track for captions.

useValidAnchor RuleConfiguration | null

Enforce that all anchors are valid, and they are navigable elements.

useValidAriaProps RuleConfiguration | null

Ensures that ARIA properties aria-* are all valid.

useValidAriaValues RuleConfiguration | null

Enforce that ARIA state and property values are valid.

useValidLang RuleConfiguration | null

Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.

ArrowParentheses string
Complexity object

A list of rules that belong to this group

all boolean | null

It enables ALL rules for this group.

noBannedTypes RuleConfiguration | null

Disallow primitive type aliases and misleading types.

noExcessiveCognitiveComplexity RuleConfiguration | null

Disallow functions that exceed a given Cognitive Complexity score.

noExtraBooleanCast RuleConfiguration | null

Disallow unnecessary boolean casts

noForEach RuleConfiguration | null

Prefer for...of statement instead of Array.forEach.

noMultipleSpacesInRegularExpressionLiterals RuleConfiguration | null

Disallow unclear usage of consecutive space characters in regular expression literals

noStaticOnlyClass RuleConfiguration | null

This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.

noUselessCatch RuleConfiguration | null

Disallow unnecessary catch clauses.

noUselessConstructor RuleConfiguration | null

Disallow unnecessary constructors.

noUselessEmptyExport RuleConfiguration | null

Disallow empty exports that don't change anything in a module file.

noUselessFragments RuleConfiguration | null

Disallow unnecessary fragments

noUselessLabel RuleConfiguration | null

Disallow unnecessary labels.

noUselessRename RuleConfiguration | null

Disallow renaming import, export, and destructured assignments to the same name.

noUselessSwitchCase RuleConfiguration | null

Disallow useless case in switch statements.

noUselessThisAlias RuleConfiguration | null

Disallow useless this aliasing.

noUselessTypeConstraint RuleConfiguration | null

Disallow using any or unknown as type constraint.

noVoid RuleConfiguration | null

Disallow the use of void operators, which is not a familiar operator.

noWith RuleConfiguration | null

Disallow with statements in non-strict contexts.

recommended boolean | null

It enables the recommended rules for this group

useFlatMap RuleConfiguration | null

Promotes the use of .flatMap() when map().flat() are used together.

useLiteralKeys RuleConfiguration | null

Enforce the usage of a literal access to properties over computed property access.

useOptionalChain RuleConfiguration | null

Enforce using concise optional chain instead of chained logical expressions.

useSimpleNumberKeys RuleConfiguration | null

Disallow number literal object member names which are not base10 or uses underscore as separator

useSimplifiedLogicExpression RuleConfiguration | null

Discard redundant terms from logical expressions.

ComplexityOptions object

Options for the rule noExcessiveCognitiveComplexity.

maxAllowedComplexity integer required

The maximum complexity score that we allow. Anything higher is considered excessive.

format=uint8min=0
Correctness object

A list of rules that belong to this group

all boolean | null

It enables ALL rules for this group.

noChildrenProp RuleConfiguration | null

Prevent passing of children as props.

noConstAssign RuleConfiguration | null

Prevents from having const variables being re-assigned.

noConstantCondition RuleConfiguration | null

Disallow constant expressions in conditions

noConstructorReturn RuleConfiguration | null

Disallow returning a value from a constructor.

noEmptyPattern RuleConfiguration | null

Disallows empty destructuring patterns.

noGlobalObjectCalls RuleConfiguration | null

Disallow calling global object properties as functions

noInnerDeclarations RuleConfiguration | null

Disallow function and var declarations that are accessible outside their block.

noInvalidConstructorSuper RuleConfiguration | null

Prevents the incorrect use of super() inside classes. It also checks whether a call super() is missing from classes that extends other constructors.

noNewSymbol RuleConfiguration | null

Disallow new operators with the Symbol object.

noNonoctalDecimalEscape RuleConfiguration | null

Disallow \8 and \9 escape sequences in string literals.

noPrecisionLoss RuleConfiguration | null

Disallow literal numbers that lose precision

noRenderReturnValue RuleConfiguration | null

Prevent the usage of the return value of React.render.

noSelfAssign RuleConfiguration | null

Disallow assignments where both sides are exactly the same.

noSetterReturn RuleConfiguration | null

Disallow returning a value from a setter

noStringCaseMismatch RuleConfiguration | null

Disallow comparison of expressions modifying the string case with non-compliant value.

noSwitchDeclarations RuleConfiguration | null

Disallow lexical declarations in switch clauses.

noUndeclaredVariables RuleConfiguration | null

Prevents the usage of variables that haven't been declared inside the document.

noUnnecessaryContinue RuleConfiguration | null

Avoid using unnecessary continue.

noUnreachable RuleConfiguration | null

Disallow unreachable code

noUnreachableSuper RuleConfiguration | null

Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass

noUnsafeFinally RuleConfiguration | null

Disallow control flow statements in finally blocks.

noUnsafeOptionalChaining RuleConfiguration | null

Disallow the use of optional chaining in contexts where the undefined value is not allowed.

noUnusedLabels RuleConfiguration | null

Disallow unused labels.

noUnusedVariables RuleConfiguration | null

Disallow unused variables.

noVoidElementsWithChildren RuleConfiguration | null

This rules prevents void elements (AKA self-closing elements) from having children.

noVoidTypeReturn RuleConfiguration | null

Disallow returning a value from a function with the return type 'void'

recommended boolean | null

It enables the recommended rules for this group

useExhaustiveDependencies RuleConfiguration | null

Enforce all dependencies are correctly specified in a React hook.

useHookAtTopLevel RuleConfiguration | null

Enforce that all React hooks are being called from the Top Level component functions.

useIsNan RuleConfiguration | null

Require calls to isNaN() when checking for NaN.

useValidForDirection RuleConfiguration | null

Enforce "for" loop update clause moving the counter in the right direction.

useYield RuleConfiguration | null

Require generator functions to contain yield.

EnumMemberCase string | string | string

Supported cases for TypeScript enum member names.

FilesConfiguration object

The configuration of the filesystem

ignore StringSet | null

A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns.

ignoreUnknown boolean | null

Tells Biome to not emit diagnostics when handling files that doesn't know

include StringSet | null

A list of Unix shell style patterns. Biome will handle only those files/folders that will match these patterns.

maxSize integer | null

The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB

Default: null
format=uint64min=1
FormatterConfiguration object

Generic options applied to all files

enabled boolean | null
Default: true
formatWithErrors boolean | null

Stores whether formatting should be allowed to proceed if a given file has syntax errors

Default: false
ignore StringSet | null

A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.

include StringSet | null

A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.

indentSize integer | null

The size of the indentation, 2 by default (deprecated, use indent-width)

Default: 2
format=uint8min=0
indentStyle PlainIndentStyle | null

The indent style.

Default: "tab"
indentWidth integer | null

The size of the indentation, 2 by default

Default: 2
format=uint8min=0
lineWidth LineWidth | null

What's the max width of a line. Defaults to 80.

Default: 80
Hooks object
name string required

The name of the hook

closureIndex integer | null

The "position" of the closure function, starting from zero.

Example

format=uintmin=0
dependenciesIndex integer | null

The "position" of the array of dependencies, starting from zero.

format=uintmin=0
HooksOptions object

Options for the rule useExhaustiveDependencies and useHookAtTopLevel

hooks Hooks[] required

List of safe hooks

JavascriptConfiguration object

A set of options applied to the JavaScript files

formatter JavascriptFormatter | null

Formatting options

globals StringSet | null

A list of global bindings that should be ignored by the analyzers

If defined here, they should not emit diagnostics.

organize_imports JavascriptOrganizeImports | null
parser JavascriptParser | null

Parsing options

JavascriptFormatter object

Formatting options specific to the JavaScript files

arrowParentheses ArrowParentheses | null

Whether to add non-necessary parentheses to arrow functions. Defaults to "always".

enabled boolean | null

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

indentSize integer | null

The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.

format=uint8min=0
indentStyle PlainIndentStyle | null

The indent style applied to JavaScript (and its super languages) files.

indentWidth integer | null

The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.

format=uint8min=0
jsxQuoteStyle QuoteStyle | null

The type of quotes used in JSX. Defaults to double.

lineWidth LineWidth | null

What's the max width of a line, applied to JavaScript (and its super languages) files. Defaults to 80.

quoteProperties QuoteProperties | null

When properties in objects are quoted. Defaults to asNeeded.

quoteStyle QuoteStyle | null

The type of quotes used in JavaScript code. Defaults to double.

semicolons Semicolons | null

Whether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI.

trailingComma TrailingComma | null

Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all".

JavascriptOrganizeImports object
JavascriptParser object

Options that changes how the JavaScript parser behaves

unsafeParameterDecoratorsEnabled boolean | null

It enables the experimental and unsafe parsing of parameter decorators

These decorators belong to an old proposal, and they are subject to change.

JsonConfiguration object

Options applied to JSON files

formatter JsonFormatter | null

Formatting options

parser JsonParser | null

Parsing options

JsonFormatter object
enabled boolean | null

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

indentSize integer | null

The size of the indentation applied to JSON (and its super languages) files. Default to 2.

format=uint8min=0
indentStyle PlainIndentStyle | null

The indent style applied to JSON (and its super languages) files.

indentWidth integer | null

The size of the indentation applied to JSON (and its super languages) files. Default to 2.

format=uint8min=0
lineWidth LineWidth | null

What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80.

JsonParser object

Options that changes how the JSON parser behaves

allowComments boolean | null

Allow parsing comments in .json files

allowTrailingCommas boolean | null

Allow parsing trailing commas in .json files

LineWidth integer

Validated value for the line_width formatter options

The allowed range of values is 1..=320

LinterConfiguration object
enabled boolean | null

if false, it disables the feature and the linter won't be executed. true by default

Default: true
ignore StringSet | null

A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.

include StringSet | null

A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.

rules Rules | null

List of rules

Default:
{
  "recommended": true
}
NamingConventionOptions object

Rule's options.

enumMemberCase

Allowed cases for TypeScript enum member names.

All of: EnumMemberCase string | string | string
strictCase boolean

If false, then consecutive uppercase are allowed in camel and pascal cases. This does not affect other [Case].

Nursery object

A list of rules that belong to this group

all boolean | null

It enables ALL rules for this group.

noApproximativeNumericConstant RuleConfiguration | null

Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.

noDuplicateJsonKeys RuleConfiguration | null

Disallow two keys with the same name inside a JSON object.

noEmptyBlockStatements RuleConfiguration | null

Disallow empty block statements and static blocks.

noEmptyCharacterClassInRegex RuleConfiguration | null

Disallow empty character classes in regular expression literals.

noInteractiveElementToNoninteractiveRole RuleConfiguration | null

Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.

noInvalidNewBuiltin RuleConfiguration | null

Disallow new operators with global non-constructor functions.

noMisleadingInstantiator RuleConfiguration | null

Enforce proper usage of new and constructor.

noMisrefactoredShorthandAssign RuleConfiguration | null

Disallow shorthand assign when variable appears on both sides.

noThisInStatic RuleConfiguration | null

Disallow this and super in static contexts.

noUnusedImports RuleConfiguration | null

Disallow unused imports.

noUselessElse RuleConfiguration | null

Disallow else block when the if block breaks early.

noUselessLoneBlockStatements RuleConfiguration | null

Disallow unnecessary nested block statements.

recommended boolean | null

It enables the recommended rules for this group

useAriaActivedescendantWithTabindex RuleConfiguration | null

Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.

useArrowFunction RuleConfiguration | null

Use arrow functions over function expressions.

useAsConstAssertion RuleConfiguration | null

Enforce the use of as const over literal type and type annotation.

useGroupedTypeImport RuleConfiguration | null

Enforce the use of import type when an import only has specifiers with type qualifier.

useImportRestrictions RuleConfiguration | null

Disallows package private imports.

useShorthandAssign RuleConfiguration | null

Require assignment operator shorthand where possible.

OrganizeImports object
enabled boolean | null

Enables the organization of imports

Default: true
ignore StringSet | null

A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.

include StringSet | null

A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.

OverrideFormatterConfiguration object
enabled boolean | null
Default: null
formatWithErrors boolean | null

Stores whether formatting should be allowed to proceed if a given file has syntax errors

Default: null
indentSize integer | null

The size of the indentation, 2 by default (deprecated, use indent-width)

format=uint8min=0
indentStyle PlainIndentStyle | null

The indent style.

indentWidth integer | null

The size of the indentation, 2 by default

format=uint8min=0
lineWidth LineWidth | null

What's the max width of a line. Defaults to 80.

Default: 80
OverrideLinterConfiguration object
enabled boolean | null

if false, it disables the feature and the linter won't be executed. true by default

rules Rules | null

List of rules

OverrideOrganizeImportsConfiguration object
enabled boolean | null

if false, it disables the feature and the linter won't be executed. true by default

OverridePattern object

Specific configuration for the Json language

ignore StringSet | null

A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.

include StringSet | null

A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.

javascript JavascriptConfiguration | null

Specific configuration for the JavaScript language

json JsonConfiguration | null

Specific configuration for the Json language

Specific configuration for the Json language

organizeImports OverrideOrganizeImportsConfiguration | null

Specific configuration for the Json language

Overrides OverridePattern[]
Performance object

A list of rules that belong to this group

all boolean | null

It enables ALL rules for this group.

noAccumulatingSpread RuleConfiguration | null

Disallow the use of spread (...) syntax on accumulators.

noDelete RuleConfiguration | null

Disallow the use of the delete operator.

recommended boolean | null

It enables the recommended rules for this group

PlainIndentStyle string | string
PossibleOptions
QuoteProperties string
QuoteStyle string
RestrictedGlobalsOptions object

Options for the rule noRestrictedGlobals.

deniedGlobals array | null

A list of names that should trigger the rule

RuleConfiguration RulePlainConfiguration | RuleWithOptions
RulePlainConfiguration string
RuleWithOptions object
level string required
Values: "warn" "error" "off"
options PossibleOptions | null
Rules object
a11y A11y | null
all boolean | null

It enables ALL rules. The rules that belong to nursery won't be enabled.

complexity Complexity | null
correctness Correctness | null
nursery Nursery | null
performance Performance | null
recommended boolean | null

It enables the lint rules recommended by Biome. true by default.

security Security | null
style Style | null
suspicious Suspicious | null
Security object

A list of rules that belong to this group

all boolean | null

It enables ALL rules for this group.

noDangerouslySetInnerHtml RuleConfiguration | null

Prevent the usage of dangerous JSX props

noDangerouslySetInnerHtmlWithChildren RuleConfiguration | null

Report when a DOM element or a component uses both children and dangerouslySetInnerHTML prop.

recommended boolean | null

It enables the recommended rules for this group

Semicolons string
StringSet string[]
Style object

A list of rules that belong to this group

all boolean | null

It enables ALL rules for this group.

noArguments RuleConfiguration | null

Disallow the use of arguments

noCommaOperator RuleConfiguration | null

Disallow comma operator.

noImplicitBoolean RuleConfiguration | null

Disallow implicit true values on JSX boolean attributes

noInferrableTypes RuleConfiguration | null

Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.

noNamespace RuleConfiguration | null

Disallow the use of TypeScript's namespaces.

noNegationElse RuleConfiguration | null

Disallow negation in the condition of an if statement if it has an else clause.

noNonNullAssertion RuleConfiguration | null

Disallow non-null assertions using the ! postfix operator.

noParameterAssign RuleConfiguration | null

Disallow reassigning function parameters.

noParameterProperties RuleConfiguration | null

Disallow the use of parameter properties in class constructors.

noRestrictedGlobals RuleConfiguration | null

This rule allows you to specify global variable names that you don’t want to use in your application.

noShoutyConstants RuleConfiguration | null

Disallow the use of constants which its value is the upper-case version of its name.

noUnusedTemplateLiteral RuleConfiguration | null

Disallow template literals if interpolation and special-character handling are not needed

noVar RuleConfiguration | null

Disallow the use of var

recommended boolean | null

It enables the recommended rules for this group

useBlockStatements RuleConfiguration | null

Requires following curly brace conventions.

useCollapsedElseIf RuleConfiguration | null

Enforce using else if instead of nested if in else clauses.

useConst RuleConfiguration | null

Require const declarations for variables that are never reassigned after declared.

useDefaultParameterLast RuleConfiguration | null

Enforce default function parameters and optional function parameters to be last.

useEnumInitializers RuleConfiguration | null

Require that each enum member value be explicitly initialized.

useExponentiationOperator RuleConfiguration | null

Disallow the use of Math.pow in favor of the ** operator.

useFragmentSyntax RuleConfiguration | null

This rule enforces the use of <>...</> over ....

useLiteralEnumMembers RuleConfiguration | null

Require all enum members to be literal values.

useNamingConvention RuleConfiguration | null

Enforce naming conventions for everything across a codebase.

useNumericLiterals RuleConfiguration | null

Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals

useSelfClosingElements RuleConfiguration | null

Prevent extra closing tags for components without children

useShorthandArrayType RuleConfiguration | null

When expressing array types, this rule promotes the usage of T[] shorthand instead of Array.

useSingleCaseStatement RuleConfiguration | null

Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.

useSingleVarDeclarator RuleConfiguration | null

Disallow multiple variable declarations in the same variable statement

useTemplate RuleConfiguration | null

Prefer template literals over string concatenation.

useWhile RuleConfiguration | null

Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.

Suspicious object

A list of rules that belong to this group

all boolean | null

It enables ALL rules for this group.

noArrayIndexKey RuleConfiguration | null

Discourage the usage of Array index in keys.

noAssignInExpressions RuleConfiguration | null

Disallow assignments in expressions.

noAsyncPromiseExecutor RuleConfiguration | null

Disallows using an async function as a Promise executor.

noCatchAssign RuleConfiguration | null

Disallow reassigning exceptions in catch clauses.

noClassAssign RuleConfiguration | null

Disallow reassigning class members.

noCommentText RuleConfiguration | null

Prevent comments from being inserted as text nodes

noCompareNegZero RuleConfiguration | null

Disallow comparing against -0

noConfusingLabels RuleConfiguration | null

Disallow labeled statements that are not loops.

noConfusingVoidType RuleConfiguration | null

Disallow void type outside of generic or return types.

noConsoleLog RuleConfiguration | null

Disallow the use of console.log

noConstEnum RuleConfiguration | null

Disallow TypeScript const enum

noControlCharactersInRegex RuleConfiguration | null

Prevents from having control characters and some escape sequences that match control characters in regular expressions.

noDebugger RuleConfiguration | null

Disallow the use of debugger

noDoubleEquals RuleConfiguration | null

Require the use of === and !==

noDuplicateCase RuleConfiguration | null

Disallow duplicate case labels.

noDuplicateClassMembers RuleConfiguration | null

Disallow duplicate class members.

noDuplicateJsxProps RuleConfiguration | null

Prevents JSX properties to be assigned multiple times.

noDuplicateObjectKeys RuleConfiguration | null

Prevents object literals having more than one property declaration for the same name.

noDuplicateParameters RuleConfiguration | null

Disallow duplicate function parameter name.

noEmptyInterface RuleConfiguration | null

Disallow the declaration of empty interfaces.

noExplicitAny RuleConfiguration | null

Disallow the any type usage.

noExtraNonNullAssertion RuleConfiguration | null

Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.

noFallthroughSwitchClause RuleConfiguration | null

Disallow fallthrough of switch clauses.

noFunctionAssign RuleConfiguration | null

Disallow reassigning function declarations.

noGlobalIsFinite RuleConfiguration | null

Use Number.isFinite instead of global isFinite.

noGlobalIsNan RuleConfiguration | null

Use Number.isNaN instead of global isNaN.

noImportAssign RuleConfiguration | null

Disallow assigning to imported bindings

noLabelVar RuleConfiguration | null

Disallow labels that share a name with a variable

noPrototypeBuiltins RuleConfiguration | null

Disallow direct use of Object.prototype builtins.

noRedeclare RuleConfiguration | null

Disallow variable, function, class, and type redeclarations in the same scope.

noRedundantUseStrict RuleConfiguration | null

Prevents from having redundant "use strict".

noSelfCompare RuleConfiguration | null

Disallow comparisons where both sides are exactly the same.

noShadowRestrictedNames RuleConfiguration | null

Disallow identifiers from shadowing restricted names.

noSparseArray RuleConfiguration | null

Disallow sparse arrays

noUnsafeDeclarationMerging RuleConfiguration | null

Disallow unsafe declaration merging between interfaces and classes.

noUnsafeNegation RuleConfiguration | null

Disallow using unsafe negation.

recommended boolean | null

It enables the recommended rules for this group

useDefaultSwitchClauseLast RuleConfiguration | null

Enforce default clauses in switch statements to be last

useGetterReturn RuleConfiguration | null

Enforce get methods to always return a value.

useIsArray RuleConfiguration | null

Use Array.isArray() instead of instanceof Array.

useNamespaceKeyword RuleConfiguration | null

Require using the namespace keyword over the module keyword to declare TypeScript namespaces.

useValidTypeof RuleConfiguration | null

This rule verifies the result of typeof $expr unary expressions is being compared to valid values, either string literals containing valid type names or other typeof expressions

TrailingComma string | string | string

Print trailing commas wherever possible in multi-line comma-separated syntactic structures.

VcsClientKind string
VcsConfiguration object

Set of properties to integrate Biome with a VCS software.

clientKind VcsClientKind | null

The kind of client.

enabled boolean | null

Whether Biome should integrate itself with the VCS client

root string | null

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 boolean | null

Whether Biome should use the VCS ignore file. When [true], Biome will ignore the files specified in the ignore file.