Skip to main content

javascript.biomeConfig Submodule

Protocols

IA11y

  • Implemented By: projen.javascript.biomeConfig.IA11y

A list of rules that belong to this group.

Properties

NameTypeDescription
all
booleanIt enables ALL rules for this group.
noAccessKey
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce that the accessKey attribute is not used on any HTML element.
noAriaHiddenOnFocusable
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce that aria-hidden="true" is not set on focusable elements.
noAriaUnsupportedElements
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
noAutofocus
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce that autoFocus prop is not used on elements.
noBlankTarget
string | projen.javascript.biomeConfig.IRuleWithAllowDomainOptionsDisallow target="_blank" attribute without rel="noreferrer".
noDistractingElements
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforces that no distracting elements are used.
noHeaderScope
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsThe scope prop should be used only on <th> elements.
noInteractiveElementToNoninteractiveRole
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
noLabelWithoutControl
string | projen.javascript.biomeConfig.IRuleWithNoLabelWithoutControlOptionsEnforce that a label element or component has a text label and an associated input.
noNoninteractiveElementToInteractiveRole
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
noNoninteractiveTabindex
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce that tabIndex is not assigned to non-interactive HTML elements.
noPositiveTabindex
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPrevent the usage of positive integers on tabIndex property.
noRedundantAlt
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce img alt prop does not contain the word "image", "picture", or "photo".
noRedundantRoles
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce explicit role property is not the same as implicit/default role property on an element.
noSvgWithoutTitle
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforces the usage of the title element for the svg element.
recommended
booleanIt enables the recommended rules for this group.
useAltText
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce that all elements that require alternative text have meaningful information to relay back to the end user.
useAnchorContent
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce that anchors have content and that the content is accessible to screen readers.
useAriaActivedescendantWithTabindex
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
useAriaPropsForRole
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce that elements with ARIA roles must have all required ARIA attributes for that role.
useButtonType
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforces the usage of the attribute type for the element button.
useFocusableInteractive
string | projen.javascript.biomeConfig.IRuleWithNoOptionsElements with an interactive role and interaction handlers must be focusable.
useGenericFontNames
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow a missing generic family keyword within font families.
useHeadingContent
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce 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
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce that html element has lang attribute.
useIframeTitle
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforces the usage of the attribute title for the element iframe.
useKeyWithClickEvents
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress.
useKeyWithMouseEvents
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur.
useMediaCaption
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforces that audio and video elements must have a track for captions.
useSemanticElements
string | projen.javascript.biomeConfig.IRuleWithNoOptionsIt detects the use of role attributes in JSX elements and suggests using semantic elements instead.
useValidAnchor
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce that all anchors are valid, and they are navigable elements.
useValidAriaProps
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnsures that ARIA properties aria-* are all valid.
useValidAriaRole
string | projen.javascript.biomeConfig.IRuleWithValidAriaRoleOptionsElements with ARIA roles must use a valid, non-abstract ARIA role.
useValidAriaValues
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce that ARIA state and property values are valid.
useValidLang
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnsure that the attribute passed to the lang attribute is a correct ISO language and/or country.

allOptional
public readonly all: boolean;
  • Type: boolean

It enables ALL rules for this group.


noAccessKeyOptional
public readonly noAccessKey: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noAriaHiddenOnFocusableOptional
public readonly noAriaHiddenOnFocusable: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce that aria-hidden="true" is not set on focusable elements.


noAriaUnsupportedElementsOptional
public readonly noAriaUnsupportedElements: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noAutofocusOptional
public readonly noAutofocus: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce that autoFocus prop is not used on elements.


noBlankTargetOptional
public readonly noBlankTarget: string | IRuleWithAllowDomainOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithAllowDomainOptions

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


noDistractingElementsOptional
public readonly noDistractingElements: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforces that no distracting elements are used.


noHeaderScopeOptional
public readonly noHeaderScope: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

The scope prop should be used only on <th> elements.


noInteractiveElementToNoninteractiveRoleOptional
public readonly noInteractiveElementToNoninteractiveRole: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noLabelWithoutControlOptional
public readonly noLabelWithoutControl: string | IRuleWithNoLabelWithoutControlOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoLabelWithoutControlOptions

Enforce that a label element or component has a text label and an associated input.


noNoninteractiveElementToInteractiveRoleOptional
public readonly noNoninteractiveElementToInteractiveRole: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noNoninteractiveTabindexOptional
public readonly noNoninteractiveTabindex: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noPositiveTabindexOptional
public readonly noPositiveTabindex: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Prevent the usage of positive integers on tabIndex property.


noRedundantAltOptional
public readonly noRedundantAlt: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noRedundantRolesOptional
public readonly noRedundantRoles: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noSvgWithoutTitleOptional
public readonly noSvgWithoutTitle: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


recommendedOptional
public readonly recommended: boolean;
  • Type: boolean

It enables the recommended rules for this group.


useAltTextOptional
public readonly useAltText: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


useAnchorContentOptional
public readonly useAnchorContent: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useAriaActivedescendantWithTabindexOptional
public readonly useAriaActivedescendantWithTabindex: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useAriaPropsForRoleOptional
public readonly useAriaPropsForRole: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


useButtonTypeOptional
public readonly useButtonType: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforces the usage of the attribute type for the element button.


useFocusableInteractiveOptional
public readonly useFocusableInteractive: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Elements with an interactive role and interaction handlers must be focusable.


useGenericFontNamesOptional
public readonly useGenericFontNames: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow a missing generic family keyword within font families.


useHeadingContentOptional
public readonly useHeadingContent: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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.


useHtmlLangOptional
public readonly useHtmlLang: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforce that html element has lang attribute.


useIframeTitleOptional
public readonly useIframeTitle: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


useKeyWithClickEventsOptional
public readonly useKeyWithClickEvents: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


useKeyWithMouseEventsOptional
public readonly useKeyWithMouseEvents: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur.


useMediaCaptionOptional
public readonly useMediaCaption: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


useSemanticElementsOptional
public readonly useSemanticElements: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

It detects the use of role attributes in JSX elements and suggests using semantic elements instead.


useValidAnchorOptional
public readonly useValidAnchor: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


useValidAriaPropsOptional
public readonly useValidAriaProps: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Ensures that ARIA properties aria-* are all valid.


useValidAriaRoleOptional
public readonly useValidAriaRole: string | IRuleWithValidAriaRoleOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithValidAriaRoleOptions

Elements with ARIA roles must use a valid, non-abstract ARIA role.


useValidAriaValuesOptional
public readonly useValidAriaValues: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforce that ARIA state and property values are valid.


useValidLangOptional
public readonly useValidLang: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


IActions

  • Implemented By: projen.javascript.biomeConfig.IActions

Properties

NameTypeDescription
source
projen.javascript.biomeConfig.ISourceNo description.

sourceOptional
public readonly source: ISource;
  • Type: projen.javascript.biomeConfig.ISource

IAllowDomainOptions

  • Implemented By: projen.javascript.biomeConfig.IAllowDomainOptions

Properties

NameTypeDescription
allowDomains
string[]List of domains to allow target="_blank" without rel="noreferrer".

allowDomainsOptional
public readonly allowDomains: string[];
  • Type: string[]

List of domains to allow target="_blank" without rel="noreferrer".


IAssistsConfiguration

  • Implemented By: projen.javascript.biomeConfig.IAssistsConfiguration

Properties

NameTypeDescription
actions
projen.javascript.biomeConfig.IActionsWhether Biome should fail in CLI if the assists were not applied to the code.
enabled
booleanWhether Biome should enable assists via LSP.
ignore
string[]A list of Unix shell style patterns.
include
string[]A list of Unix shell style patterns.

actionsOptional
public readonly actions: IActions;
  • Type: projen.javascript.biomeConfig.IActions

Whether Biome should fail in CLI if the assists were not applied to the code.


enabledOptional
public readonly enabled: boolean;
  • Type: boolean

Whether Biome should enable assists via LSP.


ignoreOptional
public readonly ignore: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will ignore files/folders that will match these patterns.


includeOptional
public readonly include: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will include files/folders that will match these patterns.


IComplexity

  • Implemented By: projen.javascript.biomeConfig.IComplexity

A list of rules that belong to this group.

Properties

NameTypeDescription
all
booleanIt enables ALL rules for this group.
noBannedTypes
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow primitive type aliases and misleading types.
noEmptyTypeParameters
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow empty type parameters in type aliases and interfaces.
noExcessiveCognitiveComplexity
string | projen.javascript.biomeConfig.IRuleWithComplexityOptionsDisallow functions that exceed a given Cognitive Complexity score.
noExcessiveNestedTestSuites
string | projen.javascript.biomeConfig.IRuleWithNoOptionsThis rule enforces a maximum depth to nested describe() in test files.
noExtraBooleanCast
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unnecessary boolean casts.
noForEach
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrefer for...of statement instead of Array.forEach.
noMultipleSpacesInRegularExpressionLiterals
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unclear usage of consecutive space characters in regular expression literals.
noStaticOnlyClass
string | projen.javascript.biomeConfig.IRuleWithNoOptionsThis rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
noThisInStatic
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow this and super in static contexts.
noUselessCatch
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unnecessary catch clauses.
noUselessConstructor
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unnecessary constructors.
noUselessEmptyExport
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow empty exports that don't change anything in a module file.
noUselessFragments
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unnecessary fragments.
noUselessLabel
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unnecessary labels.
noUselessLoneBlockStatements
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unnecessary nested block statements.
noUselessRename
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow renaming import, export, and destructured assignments to the same name.
noUselessStringConcat
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unnecessary concatenation of string or template literals.
noUselessSwitchCase
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow useless case in switch statements.
noUselessTernary
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow ternary operators when simpler alternatives exist.
noUselessThisAlias
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow useless this aliasing.
noUselessTypeConstraint
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow using any or unknown as type constraint.
noUselessUndefinedInitialization
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow initializing variables to undefined.
noVoid
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of void operators, which is not a familiar operator.
noWith
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow with statements in non-strict contexts.
recommended
booleanIt enables the recommended rules for this group.
useArrowFunction
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsUse arrow functions over function expressions.
useDateNow
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsUse Date.now() to get the number of milliseconds since the Unix Epoch.
useFlatMap
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPromotes the use of .flatMap() when map().flat() are used together.
useLiteralKeys
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce the usage of a literal access to properties over computed property access.
useOptionalChain
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce using concise optional chain instead of chained logical expressions.
useRegexLiterals
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce the use of the regular expression literals instead of the RegExp constructor if possible.
useSimpleNumberKeys
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow number literal object member names which are not base10 or uses underscore as separator.
useSimplifiedLogicExpression
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDiscard redundant terms from logical expressions.

allOptional
public readonly all: boolean;
  • Type: boolean

It enables ALL rules for this group.


noBannedTypesOptional
public readonly noBannedTypes: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow primitive type aliases and misleading types.


noEmptyTypeParametersOptional
public readonly noEmptyTypeParameters: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow empty type parameters in type aliases and interfaces.


noExcessiveCognitiveComplexityOptional
public readonly noExcessiveCognitiveComplexity: string | IRuleWithComplexityOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithComplexityOptions

Disallow functions that exceed a given Cognitive Complexity score.


noExcessiveNestedTestSuitesOptional
public readonly noExcessiveNestedTestSuites: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

This rule enforces a maximum depth to nested describe() in test files.


noExtraBooleanCastOptional
public readonly noExtraBooleanCast: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unnecessary boolean casts.


noForEachOptional
public readonly noForEach: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noMultipleSpacesInRegularExpressionLiteralsOptional
public readonly noMultipleSpacesInRegularExpressionLiterals: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unclear usage of consecutive space characters in regular expression literals.


noStaticOnlyClassOptional
public readonly noStaticOnlyClass: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noThisInStaticOptional
public readonly noThisInStatic: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow this and super in static contexts.


noUselessCatchOptional
public readonly noUselessCatch: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unnecessary catch clauses.


noUselessConstructorOptional
public readonly noUselessConstructor: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unnecessary constructors.


noUselessEmptyExportOptional
public readonly noUselessEmptyExport: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noUselessFragmentsOptional
public readonly noUselessFragments: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unnecessary fragments.


noUselessLabelOptional
public readonly noUselessLabel: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unnecessary labels.


noUselessLoneBlockStatementsOptional
public readonly noUselessLoneBlockStatements: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unnecessary nested block statements.


noUselessRenameOptional
public readonly noUselessRename: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noUselessStringConcatOptional
public readonly noUselessStringConcat: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unnecessary concatenation of string or template literals.


noUselessSwitchCaseOptional
public readonly noUselessSwitchCase: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow useless case in switch statements.


noUselessTernaryOptional
public readonly noUselessTernary: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow ternary operators when simpler alternatives exist.


noUselessThisAliasOptional
public readonly noUselessThisAlias: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow useless this aliasing.


noUselessTypeConstraintOptional
public readonly noUselessTypeConstraint: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow using any or unknown as type constraint.


noUselessUndefinedInitializationOptional
public readonly noUselessUndefinedInitialization: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow initializing variables to undefined.


noVoidOptional
public readonly noVoid: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noWithOptional
public readonly noWith: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow with statements in non-strict contexts.


recommendedOptional
public readonly recommended: boolean;
  • Type: boolean

It enables the recommended rules for this group.


useArrowFunctionOptional
public readonly useArrowFunction: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Use arrow functions over function expressions.


useDateNowOptional
public readonly useDateNow: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Use Date.now() to get the number of milliseconds since the Unix Epoch.


useFlatMapOptional
public readonly useFlatMap: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useLiteralKeysOptional
public readonly useLiteralKeys: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useOptionalChainOptional
public readonly useOptionalChain: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce using concise optional chain instead of chained logical expressions.


useRegexLiteralsOptional
public readonly useRegexLiterals: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce the use of the regular expression literals instead of the RegExp constructor if possible.


useSimpleNumberKeysOptional
public readonly useSimpleNumberKeys: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useSimplifiedLogicExpressionOptional
public readonly useSimplifiedLogicExpression: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Discard redundant terms from logical expressions.


IComplexityOptions

  • Implemented By: projen.javascript.biomeConfig.IComplexityOptions

Options for the rule noExcessiveCognitiveComplexity.

Properties

NameTypeDescription
maxAllowedComplexity
numberThe maximum complexity score that we allow.

maxAllowedComplexityOptional
public readonly maxAllowedComplexity: number;
  • Type: number

The maximum complexity score that we allow.

Anything higher is considered excessive.


IConfiguration

  • Implemented By: projen.javascript.biomeConfig.IConfiguration

The configuration that is contained inside the file biome.json.

Properties

NameTypeDescription
assists
projen.javascript.biomeConfig.IAssistsConfigurationSpecific configuration for assists.
css
projen.javascript.biomeConfig.ICssConfigurationSpecific configuration for the Css language.
extends
string[]A list of paths to other JSON files, used to extends the current configuration.
files
projen.javascript.biomeConfig.IFilesConfigurationThe configuration of the filesystem.
formatter
projen.javascript.biomeConfig.IFormatterConfigurationThe configuration of the formatter.
graphql
projen.javascript.biomeConfig.IGraphqlConfigurationSpecific configuration for the GraphQL language.
javascript
projen.javascript.biomeConfig.IJavascriptConfigurationSpecific configuration for the JavaScript language.
json
projen.javascript.biomeConfig.IJsonConfigurationSpecific configuration for the Json language.
linter
projen.javascript.biomeConfig.ILinterConfigurationThe configuration for the linter.
organizeImports
projen.javascript.biomeConfig.IOrganizeImportsThe configuration of the import sorting.
overrides
projen.javascript.biomeConfig.IOverridePattern[]A list of granular patterns that should be applied only to a sub set of files.
vcs
projen.javascript.biomeConfig.IVcsConfigurationThe configuration of the VCS integration.

assistsOptional
public readonly assists: IAssistsConfiguration;
  • Type: projen.javascript.biomeConfig.IAssistsConfiguration

Specific configuration for assists.


cssOptional
public readonly css: ICssConfiguration;
  • Type: projen.javascript.biomeConfig.ICssConfiguration

Specific configuration for the Css language.


extendsOptional
public readonly extends: string[];
  • Type: string[]

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


filesOptional
public readonly files: IFilesConfiguration;
  • Type: projen.javascript.biomeConfig.IFilesConfiguration

The configuration of the filesystem.


formatterOptional
public readonly formatter: IFormatterConfiguration;
  • Type: projen.javascript.biomeConfig.IFormatterConfiguration

The configuration of the formatter.


graphqlOptional
public readonly graphql: IGraphqlConfiguration;
  • Type: projen.javascript.biomeConfig.IGraphqlConfiguration

Specific configuration for the GraphQL language.


javascriptOptional
public readonly javascript: IJavascriptConfiguration;
  • Type: projen.javascript.biomeConfig.IJavascriptConfiguration

Specific configuration for the JavaScript language.


jsonOptional
public readonly json: IJsonConfiguration;
  • Type: projen.javascript.biomeConfig.IJsonConfiguration

Specific configuration for the Json language.


linterOptional
public readonly linter: ILinterConfiguration;
  • Type: projen.javascript.biomeConfig.ILinterConfiguration

The configuration for the linter.


organizeImportsOptional
public readonly organizeImports: IOrganizeImports;
  • Type: projen.javascript.biomeConfig.IOrganizeImports

The configuration of the import sorting.


overridesOptional
public readonly overrides: IOverridePattern[];
  • Type: projen.javascript.biomeConfig.IOverridePattern[]

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


vcsOptional
public readonly vcs: IVcsConfiguration;
  • Type: projen.javascript.biomeConfig.IVcsConfiguration

The configuration of the VCS integration.


IConsistentArrayTypeOptions

  • Implemented By: projen.javascript.biomeConfig.IConsistentArrayTypeOptions

Properties

NameTypeDescription
syntax
stringNo description.

syntaxOptional
public readonly syntax: string;
  • Type: string

IConsistentMemberAccessibilityOptions

  • Implemented By: projen.javascript.biomeConfig.IConsistentMemberAccessibilityOptions

Properties

NameTypeDescription
accessibility
stringNo description.

accessibilityOptional
public readonly accessibility: string;
  • Type: string

IConvention

  • Implemented By: projen.javascript.biomeConfig.IConvention

Properties

NameTypeDescription
formats
string[]String cases to enforce.
match
stringRegular expression to enforce.
selector
projen.javascript.biomeConfig.ISelectorDeclarations concerned by this convention.

formatsOptional
public readonly formats: string[];
  • Type: string[]

String cases to enforce.


matchOptional
public readonly match: string;
  • Type: string

Regular expression to enforce.


selectorOptional
public readonly selector: ISelector;
  • Type: projen.javascript.biomeConfig.ISelector

Declarations concerned by this convention.


ICorrectness

  • Implemented By: projen.javascript.biomeConfig.ICorrectness

A list of rules that belong to this group.

Properties

NameTypeDescription
all
booleanIt enables ALL rules for this group.
noChildrenProp
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevent passing of children as props.
noConstantCondition
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow constant expressions in conditions.
noConstantMathMinMaxClamp
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
noConstAssign
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPrevents from having const variables being re-assigned.
noConstructorReturn
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow returning a value from a constructor.
noEmptyCharacterClassInRegex
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow empty character classes in regular expression literals.
noEmptyPattern
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallows empty destructuring patterns.
noFlatMapIdentity
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow to use unnecessary callback on flatMap.
noGlobalObjectCalls
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow calling global object properties as functions.
noInnerDeclarations
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow function and var declarations that are accessible outside their block.
noInvalidBuiltinInstantiation
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnsure that builtins are correctly instantiated.
noInvalidConstructorSuper
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevents the incorrect use of super() inside classes.
noInvalidDirectionInLinearGradient
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow non-standard direction values for linear gradient functions.
noInvalidGridAreas
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallows invalid named grid areas in CSS Grid Layouts.
noInvalidNewBuiltin
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow new operators with global non-constructor functions.
noInvalidPositionAtImportRule
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of.
noInvalidUseBeforeDeclaration
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of variables and function parameters before their declaration.
noNewSymbol
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow new operators with the Symbol object.
noNodejsModules
string | projen.javascript.biomeConfig.IRuleWithNoOptionsForbid the use of Node.js builtin modules.
noNonoctalDecimalEscape
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow \8 and \9 escape sequences in string literals.
noPrecisionLoss
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow literal numbers that lose precision.
noRenderReturnValue
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevent the usage of the return value of React.render.
noSelfAssign
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow assignments where both sides are exactly the same.
noSetterReturn
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow returning a value from a setter.
noStringCaseMismatch
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow comparison of expressions modifying the string case with non-compliant value.
noSwitchDeclarations
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow lexical declarations in switch clauses.
noUndeclaredDependencies
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of dependencies that aren't specified in the package.json.
noUndeclaredVariables
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevents the usage of variables that haven't been declared inside the document.
noUnknownFunction
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unknown CSS value functions.
noUnknownMediaFeatureName
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unknown media feature names.
noUnknownProperty
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unknown properties.
noUnknownUnit
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unknown CSS units.
noUnmatchableAnbSelector
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unmatchable An+B selectors.
noUnnecessaryContinue
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsAvoid using unnecessary continue.
noUnreachable
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unreachable code.
noUnreachableSuper
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnsures 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
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow control flow statements in finally blocks.
noUnsafeOptionalChaining
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of optional chaining in contexts where the undefined value is not allowed.
noUnusedFunctionParameters
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unused function parameters.
noUnusedImports
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unused imports.
noUnusedLabels
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unused labels.
noUnusedPrivateClassMembers
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unused private class members.
noUnusedVariables
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unused variables.
noVoidElementsWithChildren
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsThis rules prevents void elements (AKA self-closing elements) from having children.
noVoidTypeReturn
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow returning a value from a function with the return type 'void'.
recommended
booleanIt enables the recommended rules for this group.
useArrayLiterals
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow Array constructors.
useExhaustiveDependencies
string | projen.javascript.biomeConfig.IRuleWithUseExhaustiveDependenciesOptionsEnforce all dependencies are correctly specified in a React hook.
useHookAtTopLevel
string | projen.javascript.biomeConfig.IRuleWithDeprecatedHooksOptionsEnforce that all React hooks are being called from the Top Level component functions.
useImportExtensions
string | projen.javascript.biomeConfig.IRuleWithUseImportExtensionsOptionsEnforce file extensions for relative imports.
useIsNan
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsRequire calls to isNaN() when checking for NaN.
useJsxKeyInIterable
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow missing key props in iterators/collection literals.
useValidForDirection
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce "for" loop update clause moving the counter in the right direction.
useYield
string | projen.javascript.biomeConfig.IRuleWithNoOptionsRequire generator functions to contain yield.

allOptional
public readonly all: boolean;
  • Type: boolean

It enables ALL rules for this group.


noChildrenPropOptional
public readonly noChildrenProp: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Prevent passing of children as props.


noConstantConditionOptional
public readonly noConstantCondition: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow constant expressions in conditions.


noConstantMathMinMaxClampOptional
public readonly noConstantMathMinMaxClamp: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.


noConstAssignOptional
public readonly noConstAssign: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Prevents from having const variables being re-assigned.


noConstructorReturnOptional
public readonly noConstructorReturn: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow returning a value from a constructor.


noEmptyCharacterClassInRegexOptional
public readonly noEmptyCharacterClassInRegex: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow empty character classes in regular expression literals.


noEmptyPatternOptional
public readonly noEmptyPattern: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallows empty destructuring patterns.


noFlatMapIdentityOptional
public readonly noFlatMapIdentity: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow to use unnecessary callback on flatMap.


noGlobalObjectCallsOptional
public readonly noGlobalObjectCalls: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow calling global object properties as functions.


noInnerDeclarationsOptional
public readonly noInnerDeclarations: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noInvalidBuiltinInstantiationOptional
public readonly noInvalidBuiltinInstantiation: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Ensure that builtins are correctly instantiated.


noInvalidConstructorSuperOptional
public readonly noInvalidConstructorSuper: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Prevents the incorrect use of super() inside classes.

It also checks whether a call super() is missing from classes that extends other constructors.


noInvalidDirectionInLinearGradientOptional
public readonly noInvalidDirectionInLinearGradient: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow non-standard direction values for linear gradient functions.


noInvalidGridAreasOptional
public readonly noInvalidGridAreas: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallows invalid named grid areas in CSS Grid Layouts.


noInvalidNewBuiltinOptional
public readonly noInvalidNewBuiltin: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow new operators with global non-constructor functions.


noInvalidPositionAtImportRuleOptional
public readonly noInvalidPositionAtImportRule: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of.


noInvalidUseBeforeDeclarationOptional
public readonly noInvalidUseBeforeDeclaration: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of variables and function parameters before their declaration.


noNewSymbolOptional
public readonly noNewSymbol: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow new operators with the Symbol object.


noNodejsModulesOptional
public readonly noNodejsModules: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Forbid the use of Node.js builtin modules.


noNonoctalDecimalEscapeOptional
public readonly noNonoctalDecimalEscape: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noPrecisionLossOptional
public readonly noPrecisionLoss: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow literal numbers that lose precision.


noRenderReturnValueOptional
public readonly noRenderReturnValue: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noSelfAssignOptional
public readonly noSelfAssign: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow assignments where both sides are exactly the same.


noSetterReturnOptional
public readonly noSetterReturn: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow returning a value from a setter.


noStringCaseMismatchOptional
public readonly noStringCaseMismatch: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noSwitchDeclarationsOptional
public readonly noSwitchDeclarations: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow lexical declarations in switch clauses.


noUndeclaredDependenciesOptional
public readonly noUndeclaredDependencies: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of dependencies that aren't specified in the package.json.


noUndeclaredVariablesOptional
public readonly noUndeclaredVariables: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noUnknownFunctionOptional
public readonly noUnknownFunction: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unknown CSS value functions.


noUnknownMediaFeatureNameOptional
public readonly noUnknownMediaFeatureName: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unknown media feature names.


noUnknownPropertyOptional
public readonly noUnknownProperty: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unknown properties.


noUnknownUnitOptional
public readonly noUnknownUnit: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unknown CSS units.


noUnmatchableAnbSelectorOptional
public readonly noUnmatchableAnbSelector: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unmatchable An+B selectors.


noUnnecessaryContinueOptional
public readonly noUnnecessaryContinue: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Avoid using unnecessary continue.


noUnreachableOptional
public readonly noUnreachable: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unreachable code.


noUnreachableSuperOptional
public readonly noUnreachableSuper: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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.


noUnsafeFinallyOptional
public readonly noUnsafeFinally: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow control flow statements in finally blocks.


noUnsafeOptionalChainingOptional
public readonly noUnsafeOptionalChaining: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noUnusedFunctionParametersOptional
public readonly noUnusedFunctionParameters: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unused function parameters.


noUnusedImportsOptional
public readonly noUnusedImports: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unused imports.


noUnusedLabelsOptional
public readonly noUnusedLabels: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unused labels.


noUnusedPrivateClassMembersOptional
public readonly noUnusedPrivateClassMembers: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unused private class members.


noUnusedVariablesOptional
public readonly noUnusedVariables: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unused variables.


noVoidElementsWithChildrenOptional
public readonly noVoidElementsWithChildren: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noVoidTypeReturnOptional
public readonly noVoidTypeReturn: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


recommendedOptional
public readonly recommended: boolean;
  • Type: boolean

It enables the recommended rules for this group.


useArrayLiteralsOptional
public readonly useArrayLiterals: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow Array constructors.


useExhaustiveDependenciesOptional
public readonly useExhaustiveDependencies: string | IRuleWithUseExhaustiveDependenciesOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithUseExhaustiveDependenciesOptions

Enforce all dependencies are correctly specified in a React hook.


useHookAtTopLevelOptional
public readonly useHookAtTopLevel: string | IRuleWithDeprecatedHooksOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithDeprecatedHooksOptions

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


useImportExtensionsOptional
public readonly useImportExtensions: string | IRuleWithUseImportExtensionsOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithUseImportExtensionsOptions

Enforce file extensions for relative imports.


useIsNanOptional
public readonly useIsNan: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Require calls to isNaN() when checking for NaN.


useJsxKeyInIterableOptional
public readonly useJsxKeyInIterable: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow missing key props in iterators/collection literals.


useValidForDirectionOptional
public readonly useValidForDirection: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


useYieldOptional
public readonly useYield: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Require generator functions to contain yield.


ICssAssists

  • Implemented By: projen.javascript.biomeConfig.ICssAssists

Options that changes how the CSS assists behaves.

Properties

NameTypeDescription
enabled
booleanControl the assists for CSS files.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

Control the assists for CSS files.


ICssConfiguration

  • Implemented By: projen.javascript.biomeConfig.ICssConfiguration

Options applied to CSS files.

Properties

NameTypeDescription
assists
projen.javascript.biomeConfig.ICssAssistsCSS assists options.
formatter
projen.javascript.biomeConfig.ICssFormatterCSS formatter options.
linter
projen.javascript.biomeConfig.ICssLinterCSS linter options.
parser
projen.javascript.biomeConfig.ICssParserCSS parsing options.

assistsOptional
public readonly assists: ICssAssists;
  • Type: projen.javascript.biomeConfig.ICssAssists

CSS assists options.


formatterOptional
public readonly formatter: ICssFormatter;
  • Type: projen.javascript.biomeConfig.ICssFormatter

CSS formatter options.


linterOptional
public readonly linter: ICssLinter;
  • Type: projen.javascript.biomeConfig.ICssLinter

CSS linter options.


parserOptional
public readonly parser: ICssParser;
  • Type: projen.javascript.biomeConfig.ICssParser

CSS parsing options.


ICssFormatter

  • Implemented By: projen.javascript.biomeConfig.ICssFormatter

Options that changes how the CSS formatter behaves.

Properties

NameTypeDescription
enabled
booleanControl the formatter for CSS (and its super languages) files.
indentStyle
stringThe indent style applied to CSS (and its super languages) files.
indentWidth
numberThe size of the indentation applied to CSS (and its super languages) files.
lineEnding
stringThe type of line ending applied to CSS (and its super languages) files.
lineWidth
numberWhat's the max width of a line applied to CSS (and its super languages) files.
quoteStyle
stringThe type of quotes used in CSS code.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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


indentStyleOptional
public readonly indentStyle: string;
  • Type: string

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


indentWidthOptional
public readonly indentWidth: number;
  • Type: number

The size of the indentation applied to CSS (and its super languages) files.

Default to 2.


lineEndingOptional
public readonly lineEnding: string;
  • Type: string

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


lineWidthOptional
public readonly lineWidth: number;
  • Type: number

What's the max width of a line applied to CSS (and its super languages) files.

Defaults to 80.


quoteStyleOptional
public readonly quoteStyle: string;
  • Type: string

The type of quotes used in CSS code.

Defaults to double.


ICssLinter

  • Implemented By: projen.javascript.biomeConfig.ICssLinter

Options that changes how the CSS linter behaves.

Properties

NameTypeDescription
enabled
booleanControl the linter for CSS files.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

Control the linter for CSS files.


ICssParser

  • Implemented By: projen.javascript.biomeConfig.ICssParser

Options that changes how the CSS parser behaves.

Properties

NameTypeDescription
allowWrongLineComments
booleanAllow comments to appear on incorrect lines in .css files.
cssModules
booleanEnables parsing of CSS Modules specific features.

allowWrongLineCommentsOptional
public readonly allowWrongLineComments: boolean;
  • Type: boolean

Allow comments to appear on incorrect lines in .css files.


cssModulesOptional
public readonly cssModules: boolean;
  • Type: boolean

Enables parsing of CSS Modules specific features.


ICustomRestrictedTypeOptions

  • Implemented By: projen.javascript.biomeConfig.ICustomRestrictedTypeOptions

Properties

NameTypeDescription
message
stringNo description.
use
stringNo description.

messageOptional
public readonly message: string;
  • Type: string

useOptional
public readonly use: string;
  • Type: string

IDeprecatedHooksOptions

  • Implemented By: projen.javascript.biomeConfig.IDeprecatedHooksOptions

Options for the useHookAtTopLevel rule have been deprecated, since we now use the React hook naming convention to determine whether a function is a hook.

IFilenamingConventionOptions

  • Implemented By: projen.javascript.biomeConfig.IFilenamingConventionOptions

Rule's options.

Properties

NameTypeDescription
filenameCases
string[]Allowed cases for file names.
requireAscii
booleanIf false, then non-ASCII characters are allowed.
strictCase
booleanIf false, then consecutive uppercase are allowed in camel and pascal cases.

filenameCasesOptional
public readonly filenameCases: string[];
  • Type: string[]

Allowed cases for file names.


requireAsciiOptional
public readonly requireAscii: boolean;
  • Type: boolean

If false, then non-ASCII characters are allowed.


strictCaseOptional
public readonly strictCase: boolean;
  • Type: boolean

If false, then consecutive uppercase are allowed in camel and pascal cases.

This does not affect other [Case].


IFilesConfiguration

  • Implemented By: projen.javascript.biomeConfig.IFilesConfiguration

The configuration of the filesystem.

Properties

NameTypeDescription
ignore
string[]A list of Unix shell style patterns.
ignoreUnknown
booleanTells Biome to not emit diagnostics when handling files that doesn't know.
include
string[]A list of Unix shell style patterns.
maxSize
numberThe maximum allowed size for source code files in bytes.

ignoreOptional
public readonly ignore: string[];
  • Type: string[]

A list of Unix shell style patterns.

Biome will ignore files/folders that will match these patterns.


ignoreUnknownOptional
public readonly ignoreUnknown: boolean;
  • Type: boolean

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


includeOptional
public readonly include: string[];
  • Type: string[]

A list of Unix shell style patterns.

Biome will handle only those files/folders that will match these patterns.


maxSizeOptional
public readonly maxSize: number;
  • Type: number

The maximum allowed size for source code files in bytes.

Files above this limit will be ignored for performance reasons. Defaults to 1 MiB


IFormatterConfiguration

  • Implemented By: projen.javascript.biomeConfig.IFormatterConfiguration

Generic options applied to all files.

Properties

NameTypeDescription
attributePosition
stringThe attribute position style in HTMLish languages.
bracketSpacing
booleanWhether to insert spaces around brackets in object literals.
enabled
booleanNo description.
formatWithErrors
booleanStores whether formatting should be allowed to proceed if a given file has syntax errors.
ignore
string[]A list of Unix shell style patterns.
include
string[]A list of Unix shell style patterns.
indentSize
numberThe size of the indentation, 2 by default (deprecated, use indent-width).
indentStyle
stringThe indent style.
indentWidth
numberThe size of the indentation, 2 by default.
lineEnding
stringThe type of line ending.
lineWidth
numberWhat's the max width of a line.
useEditorconfig
booleanUse any .editorconfig files to configure the formatter. Configuration in biome.json will override .editorconfig configuration. Default: false.

attributePositionOptional
public readonly attributePosition: string;
  • Type: string

The attribute position style in HTMLish languages.

By default auto.


bracketSpacingOptional
public readonly bracketSpacing: boolean;
  • Type: boolean

Whether to insert spaces around brackets in object literals.

Defaults to true.


enabledOptional
public readonly enabled: boolean;
  • Type: boolean

formatWithErrorsOptional
public readonly formatWithErrors: boolean;
  • Type: boolean

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


ignoreOptional
public readonly ignore: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will ignore files/folders that will match these patterns.


includeOptional
public readonly include: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will include files/folders that will match these patterns.


indentSizeOptional
public readonly indentSize: number;
  • Type: number

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


indentStyleOptional
public readonly indentStyle: string;
  • Type: string

The indent style.


indentWidthOptional
public readonly indentWidth: number;
  • Type: number

The size of the indentation, 2 by default.


lineEndingOptional
public readonly lineEnding: string;
  • Type: string

The type of line ending.


lineWidthOptional
public readonly lineWidth: number;
  • Type: number

What's the max width of a line.

Defaults to 80.


useEditorconfigOptional
public readonly useEditorconfig: boolean;
  • Type: boolean

Use any .editorconfig files to configure the formatter. Configuration in biome.json will override .editorconfig configuration. Default: false.


IGraphqlConfiguration

  • Implemented By: projen.javascript.biomeConfig.IGraphqlConfiguration

Options applied to GraphQL files.

Properties

NameTypeDescription
formatter
projen.javascript.biomeConfig.IGraphqlFormatterGraphQL formatter options.
linter
projen.javascript.biomeConfig.IGraphqlLinterNo description.

formatterOptional
public readonly formatter: IGraphqlFormatter;
  • Type: projen.javascript.biomeConfig.IGraphqlFormatter

GraphQL formatter options.


linterOptional
public readonly linter: IGraphqlLinter;
  • Type: projen.javascript.biomeConfig.IGraphqlLinter

IGraphqlFormatter

  • Implemented By: projen.javascript.biomeConfig.IGraphqlFormatter

Options that changes how the GraphQL formatter behaves.

Properties

NameTypeDescription
bracketSpacing
booleanWhether to insert spaces around brackets in object literals.
enabled
booleanControl the formatter for GraphQL files.
indentStyle
stringThe indent style applied to GraphQL files.
indentWidth
numberThe size of the indentation applied to GraphQL files.
lineEnding
stringThe type of line ending applied to GraphQL files.
lineWidth
numberWhat's the max width of a line applied to GraphQL files.
quoteStyle
stringThe type of quotes used in GraphQL code.

bracketSpacingOptional
public readonly bracketSpacing: boolean;
  • Type: boolean

Whether to insert spaces around brackets in object literals.

Defaults to true.


enabledOptional
public readonly enabled: boolean;
  • Type: boolean

Control the formatter for GraphQL files.


indentStyleOptional
public readonly indentStyle: string;
  • Type: string

The indent style applied to GraphQL files.


indentWidthOptional
public readonly indentWidth: number;
  • Type: number

The size of the indentation applied to GraphQL files.

Default to 2.


lineEndingOptional
public readonly lineEnding: string;
  • Type: string

The type of line ending applied to GraphQL files.


lineWidthOptional
public readonly lineWidth: number;
  • Type: number

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

Defaults to 80.


quoteStyleOptional
public readonly quoteStyle: string;
  • Type: string

The type of quotes used in GraphQL code.

Defaults to double.


IGraphqlLinter

  • Implemented By: projen.javascript.biomeConfig.IGraphqlLinter

Options that changes how the GraphQL linter behaves.

Properties

NameTypeDescription
enabled
booleanControl the formatter for GraphQL files.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

Control the formatter for GraphQL files.


IHook

  • Implemented By: projen.javascript.biomeConfig.IHook

Properties

NameTypeDescription
closureIndex
numberThe "position" of the closure function, starting from zero.
dependenciesIndex
numberThe "position" of the array of dependencies, starting from zero.
name
stringThe name of the hook.
stableResult
boolean | number[]Whether the result of the hook is stable.

closureIndexOptional
public readonly closureIndex: number;
  • Type: number

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

For example, for React's useEffect() hook, the closure index is 0.


dependenciesIndexOptional
public readonly dependenciesIndex: number;
  • Type: number

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

For example, for React's useEffect() hook, the dependencies index is 1.


nameOptional
public readonly name: string;
  • Type: string

The name of the hook.


stableResultOptional
public readonly stableResult: boolean | number[];
  • Type: boolean | number[]

Whether the result of the hook is stable.

Set to true to mark the identity of the hook's return value as stable, or use a number/an array of numbers to mark the "positions" in the return array as stable.

For example, for React's useRef() hook the value would be true, while for useState() it would be [1].


IJavascriptAssists

  • Implemented By: projen.javascript.biomeConfig.IJavascriptAssists

Linter options specific to the JavaScript linter.

Properties

NameTypeDescription
enabled
booleanControl the linter for JavaScript (and its super languages) files.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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


IJavascriptConfiguration

  • Implemented By: projen.javascript.biomeConfig.IJavascriptConfiguration

A set of options applied to the JavaScript files.

Properties

NameTypeDescription
assists
projen.javascript.biomeConfig.IJavascriptAssistsAssists options.
formatter
projen.javascript.biomeConfig.IJavascriptFormatterFormatting options.
globals
string[]A list of global bindings that should be ignored by the analyzers.
jsxRuntime
stringIndicates the type of runtime or transformation used for interpreting JSX.
linter
projen.javascript.biomeConfig.IJavascriptLinterLinter options.
organizeImports
projen.javascript.biomeConfig.IJavascriptOrganizeImportsNo description.
parser
projen.javascript.biomeConfig.IJavascriptParserParsing options.

assistsOptional
public readonly assists: IJavascriptAssists;
  • Type: projen.javascript.biomeConfig.IJavascriptAssists

Assists options.


formatterOptional
public readonly formatter: IJavascriptFormatter;
  • Type: projen.javascript.biomeConfig.IJavascriptFormatter

Formatting options.


globalsOptional
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.


jsxRuntimeOptional
public readonly jsxRuntime: string;
  • Type: string

Indicates the type of runtime or transformation used for interpreting JSX.


linterOptional
public readonly linter: IJavascriptLinter;
  • Type: projen.javascript.biomeConfig.IJavascriptLinter

Linter options.


organizeImportsOptional
public readonly organizeImports: IJavascriptOrganizeImports;
  • Type: projen.javascript.biomeConfig.IJavascriptOrganizeImports

parserOptional
public readonly parser: IJavascriptParser;
  • Type: projen.javascript.biomeConfig.IJavascriptParser

Parsing options.


IJavascriptFormatter

  • Implemented By: projen.javascript.biomeConfig.IJavascriptFormatter

Formatting options specific to the JavaScript files.

Properties

NameTypeDescription
arrowParentheses
stringWhether to add non-necessary parentheses to arrow functions.
attributePosition
stringThe attribute position style in jsx elements.
bracketSameLine
booleanWhether 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.
bracketSpacing
booleanWhether to insert spaces around brackets in object literals.
enabled
booleanControl the formatter for JavaScript (and its super languages) files.
indentSize
numberThe size of the indentation applied to JavaScript (and its super languages) files.
indentStyle
stringThe indent style applied to JavaScript (and its super languages) files.
indentWidth
numberThe size of the indentation applied to JavaScript (and its super languages) files.
jsxQuoteStyle
stringThe type of quotes used in JSX.
lineEnding
stringThe type of line ending applied to JavaScript (and its super languages) files.
lineWidth
numberWhat's the max width of a line applied to JavaScript (and its super languages) files.
quoteProperties
stringWhen properties in objects are quoted.
quoteStyle
stringThe type of quotes used in JavaScript code.
semicolons
stringWhether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI.
trailingComma
stringPrint trailing commas wherever possible in multi-line comma-separated syntactic structures.
trailingCommas
stringPrint trailing commas wherever possible in multi-line comma-separated syntactic structures.

arrowParenthesesOptional
public readonly arrowParentheses: string;
  • Type: string

Whether to add non-necessary parentheses to arrow functions.

Defaults to "always".


attributePositionOptional
public readonly attributePosition: string;
  • Type: string

The attribute position style in jsx elements.

Defaults to auto.


bracketSameLineOptional
public readonly bracketSameLine: boolean;
  • Type: 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.

Defaults to false.


bracketSpacingOptional
public readonly bracketSpacing: boolean;
  • Type: boolean

Whether to insert spaces around brackets in object literals.

Defaults to true.


enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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


indentSizeOptional
public readonly indentSize: number;
  • Type: number

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

Default to 2.


indentStyleOptional
public readonly indentStyle: string;
  • Type: string

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


indentWidthOptional
public readonly indentWidth: number;
  • Type: number

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

Default to 2.


jsxQuoteStyleOptional
public readonly jsxQuoteStyle: string;
  • Type: string

The type of quotes used in JSX.

Defaults to double.


lineEndingOptional
public readonly lineEnding: string;
  • Type: string

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


lineWidthOptional
public readonly lineWidth: number;
  • Type: number

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

Defaults to 80.


quotePropertiesOptional
public readonly quoteProperties: string;
  • Type: string

When properties in objects are quoted.

Defaults to asNeeded.


quoteStyleOptional
public readonly quoteStyle: string;
  • Type: string

The type of quotes used in JavaScript code.

Defaults to double.


semicolonsOptional
public readonly semicolons: string;
  • Type: string

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


trailingCommaOptional
public readonly trailingComma: string;
  • Type: string

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

Defaults to "all".


trailingCommasOptional
public readonly trailingCommas: string;
  • Type: string

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

Defaults to "all".


IJavascriptLinter

  • Implemented By: projen.javascript.biomeConfig.IJavascriptLinter

Linter options specific to the JavaScript linter.

Properties

NameTypeDescription
enabled
booleanControl the linter for JavaScript (and its super languages) files.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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


IJavascriptOrganizeImports

  • Implemented By: projen.javascript.biomeConfig.IJavascriptOrganizeImports

IJavascriptParser

  • Implemented By: projen.javascript.biomeConfig.IJavascriptParser

Options that changes how the JavaScript parser behaves.

Properties

NameTypeDescription
unsafeParameterDecoratorsEnabled
booleanIt enables the experimental and unsafe parsing of parameter decorators.

unsafeParameterDecoratorsEnabledOptional
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.


IJsonAssists

  • Implemented By: projen.javascript.biomeConfig.IJsonAssists

Linter options specific to the JSON linter.

Properties

NameTypeDescription
enabled
booleanControl the linter for JSON (and its super languages) files.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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


IJsonConfiguration

  • Implemented By: projen.javascript.biomeConfig.IJsonConfiguration

Options applied to JSON files.

Properties

NameTypeDescription
assists
projen.javascript.biomeConfig.IJsonAssistsAssists options.
formatter
projen.javascript.biomeConfig.IJsonFormatterFormatting options.
linter
projen.javascript.biomeConfig.IJsonLinterLinting options.
parser
projen.javascript.biomeConfig.IJsonParserParsing options.

assistsOptional
public readonly assists: IJsonAssists;
  • Type: projen.javascript.biomeConfig.IJsonAssists

Assists options.


formatterOptional
public readonly formatter: IJsonFormatter;
  • Type: projen.javascript.biomeConfig.IJsonFormatter

Formatting options.


linterOptional
public readonly linter: IJsonLinter;
  • Type: projen.javascript.biomeConfig.IJsonLinter

Linting options.


parserOptional
public readonly parser: IJsonParser;
  • Type: projen.javascript.biomeConfig.IJsonParser

Parsing options.


IJsonFormatter

  • Implemented By: projen.javascript.biomeConfig.IJsonFormatter

Properties

NameTypeDescription
enabled
booleanControl the formatter for JSON (and its super languages) files.
indentSize
numberThe size of the indentation applied to JSON (and its super languages) files.
indentStyle
stringThe indent style applied to JSON (and its super languages) files.
indentWidth
numberThe size of the indentation applied to JSON (and its super languages) files.
lineEnding
stringThe type of line ending applied to JSON (and its super languages) files.
lineWidth
numberWhat's the max width of a line applied to JSON (and its super languages) files.
trailingCommas
stringPrint trailing commas wherever possible in multi-line comma-separated syntactic structures.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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


indentSizeOptional
public readonly indentSize: number;
  • Type: number

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

Default to 2.


indentStyleOptional
public readonly indentStyle: string;
  • Type: string

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


indentWidthOptional
public readonly indentWidth: number;
  • Type: number

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

Default to 2.


lineEndingOptional
public readonly lineEnding: string;
  • Type: string

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


lineWidthOptional
public readonly lineWidth: number;
  • Type: number

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

Defaults to 80.


trailingCommasOptional
public readonly trailingCommas: string;
  • Type: string

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

Defaults to "none".


IJsonLinter

  • Implemented By: projen.javascript.biomeConfig.IJsonLinter

Linter options specific to the JSON linter.

Properties

NameTypeDescription
enabled
booleanControl the linter for JSON (and its super languages) files.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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


IJsonParser

  • Implemented By: projen.javascript.biomeConfig.IJsonParser

Options that changes how the JSON parser behaves.

Properties

NameTypeDescription
allowComments
booleanAllow parsing comments in .json files.
allowTrailingCommas
booleanAllow parsing trailing commas in .json files.

allowCommentsOptional
public readonly allowComments: boolean;
  • Type: boolean

Allow parsing comments in .json files.


allowTrailingCommasOptional
public readonly allowTrailingCommas: boolean;
  • Type: boolean

Allow parsing trailing commas in .json files.


ILinterConfiguration

  • Implemented By: projen.javascript.biomeConfig.ILinterConfiguration

Properties

NameTypeDescription
enabled
booleanif false, it disables the feature and the linter won't be executed.
ignore
string[]A list of Unix shell style patterns.
include
string[]A list of Unix shell style patterns.
rules
projen.javascript.biomeConfig.IRulesList of rules.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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

true by default


ignoreOptional
public readonly ignore: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will ignore files/folders that will match these patterns.


includeOptional
public readonly include: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will include files/folders that will match these patterns.


rulesOptional
public readonly rules: IRules;
  • Type: projen.javascript.biomeConfig.IRules

List of rules.


INamingConventionOptions

  • Implemented By: projen.javascript.biomeConfig.INamingConventionOptions

Rule's options.

Properties

NameTypeDescription
conventions
projen.javascript.biomeConfig.IConvention[]Custom conventions.
enumMemberCase
stringAllowed cases for TypeScript enum member names.
requireAscii
booleanIf false, then non-ASCII characters are allowed.
strictCase
booleanIf false, then consecutive uppercase are allowed in camel and pascal cases.

conventionsOptional
public readonly conventions: IConvention[];
  • Type: projen.javascript.biomeConfig.IConvention[]

Custom conventions.


enumMemberCaseOptional
public readonly enumMemberCase: string;
  • Type: string

Allowed cases for TypeScript enum member names.


requireAsciiOptional
public readonly requireAscii: boolean;
  • Type: boolean

If false, then non-ASCII characters are allowed.


strictCaseOptional
public readonly strictCase: boolean;
  • Type: boolean

If false, then consecutive uppercase are allowed in camel and pascal cases.

This does not affect other [Case].


INoConsoleOptions

  • Implemented By: projen.javascript.biomeConfig.INoConsoleOptions

Properties

NameTypeDescription
allow
string[]Allowed calls on the console object.

allowRequired
public readonly allow: string[];
  • Type: string[]

Allowed calls on the console object.


INoDoubleEqualsOptions

  • Implemented By: projen.javascript.biomeConfig.INoDoubleEqualsOptions

Rule's options.

Properties

NameTypeDescription
ignoreNull
booleanIf true, an exception is made when comparing with null, as it's often relied on to check both for null or undefined.

ignoreNullOptional
public readonly ignoreNull: boolean;
  • Type: boolean

If true, an exception is made when comparing with null, as it's often relied on to check both for null or undefined.

If false, no such exception will be made.


INoLabelWithoutControlOptions

  • Implemented By: projen.javascript.biomeConfig.INoLabelWithoutControlOptions

Properties

NameTypeDescription
inputComponents
string[]Array of component names that should be considered the same as an input element.
labelAttributes
string[]Array of attributes that should be treated as the label accessible text content.
labelComponents
string[]Array of component names that should be considered the same as a label element.

inputComponentsOptional
public readonly inputComponents: string[];
  • Type: string[]

Array of component names that should be considered the same as an input element.


labelAttributesOptional
public readonly labelAttributes: string[];
  • Type: string[]

Array of attributes that should be treated as the label accessible text content.


labelComponentsOptional
public readonly labelComponents: string[];
  • Type: string[]

Array of component names that should be considered the same as a label element.


INoRestrictedTypesOptions

  • Implemented By: projen.javascript.biomeConfig.INoRestrictedTypesOptions

Properties

NameTypeDescription
types
{[ key: string ]: string | projen.javascript.biomeConfig.ICustomRestrictedTypeOptions}No description.

typesOptional
public readonly types: {[ key: string ]: string | ICustomRestrictedTypeOptions};
  • Type: {[ key: string ]: string | projen.javascript.biomeConfig.ICustomRestrictedTypeOptions}

INoSecretsOptions

  • Implemented By: projen.javascript.biomeConfig.INoSecretsOptions

Properties

NameTypeDescription
entropyThreshold
numberSet entropy threshold (default is 41).

entropyThresholdOptional
public readonly entropyThreshold: number;
  • Type: number

Set entropy threshold (default is 41).


INursery

  • Implemented By: projen.javascript.biomeConfig.INursery

A list of rules that belong to this group.

Properties

NameTypeDescription
all
booleanIt enables ALL rules for this group.
noCommonJs
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow use of CommonJs module system in favor of ESM style imports.
noDescendingSpecificity
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow a lower specificity selector from coming after a higher specificity selector.
noDocumentCookie
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow direct assignments to document.cookie.
noDocumentImportInPage
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevents importing next/document outside of pages/_document.jsx in Next.js projects.
noDuplicateCustomProperties
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow duplicate custom properties within declaration blocks.
noDuplicatedFields
string | projen.javascript.biomeConfig.IRuleWithNoOptionsNo duplicated fields in GraphQL operations.
noDuplicateElseIf
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow duplicate conditions in if-else-if chains.
noDuplicateProperties
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow duplicate properties within declaration blocks.
noDynamicNamespaceImportAccess
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow accessing namespace imports dynamically.
noEnum
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow TypeScript enum.
noExportedImports
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow exporting an imported variable.
noHeadElement
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevent usage of <head> element in a Next.js project.
noHeadImportInDocument
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevent using the next/head module in pages/_document.js on Next.js projects.
noImgElement
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevent usage of <img> element in a Next.js project.
noIrregularWhitespace
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallows the use of irregular whitespace characters.
noMissingVarFunction
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow missing var function for css variables.
noNestedTernary
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow nested ternary expressions.
noOctalEscape
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow octal escape sequences in string literals.
noProcessEnv
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of process.env.
noRestrictedImports
string | projen.javascript.biomeConfig.IRuleWithRestrictedImportsOptionsDisallow specified modules when loaded by import or require.
noRestrictedTypes
string | projen.javascript.biomeConfig.IRuleWithNoRestrictedTypesOptionsDisallow user defined types.
noSecrets
string | projen.javascript.biomeConfig.IRuleWithNoSecretsOptionsDisallow usage of sensitive data such as API keys and tokens.
noStaticElementInteractions
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce that static, visible elements (such as <div>) that have click handlers use the valid role attribute.
noSubstr
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce the use of String.slice() over String.substr() and String.substring().
noTemplateCurlyInString
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow template literal placeholder syntax in regular strings.
noUnknownPseudoClass
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unknown pseudo-class selectors.
noUnknownPseudoElement
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unknown pseudo-element selectors.
noUnknownTypeSelector
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unknown type selectors.
noUselessEscapeInRegex
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow unnecessary escape sequence in regular expression literals.
noUselessStringRaw
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unnecessary String.raw function in template string literals without any escape sequence.
noValueAtRule
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow use of.
recommended
booleanIt enables the recommended rules for this group.
useAdjacentOverloadSignatures
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of overload signatures that are not next to each other.
useAriaPropsSupportedByRole
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce that ARIA properties are valid for the roles that are supported by the element.
useAtIndex
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsUse at() instead of integer index access.
useCollapsedIf
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce using single if instead of nested if clauses.
useComponentExportOnlyModules
string | projen.javascript.biomeConfig.IRuleWithUseComponentExportOnlyModulesOptionsEnforce declaring components only within modules that export React Components exclusively.
useConsistentCurlyBraces
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsThis rule enforces consistent use of curly braces inside JSX attributes and JSX children.
useConsistentMemberAccessibility
string | projen.javascript.biomeConfig.IRuleWithConsistentMemberAccessibilityOptionsRequire consistent accessibility modifiers on class properties and methods.
useDeprecatedReason
string | projen.javascript.biomeConfig.IRuleWithNoOptionsRequire specifying the reason argument when using.
useExplicitType
string | projen.javascript.biomeConfig.IRuleWithNoOptionsRequire explicit return types on functions and class methods.
useGoogleFontDisplay
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforces the use of a recommended display strategy with Google Fonts.
useGuardForIn
string | projen.javascript.biomeConfig.IRuleWithNoOptionsRequire for-in loops to include an if statement.
useImportRestrictions
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallows package private imports.
useSortedClasses
string | projen.javascript.biomeConfig.IRuleWithUtilityClassSortingOptionsEnforce the sorting of CSS utility classes.
useStrictMode
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce the use of the directive "use strict" in script files.
useTrimStartEnd
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().
useValidAutocomplete
string | projen.javascript.biomeConfig.IRuleWithUseValidAutocompleteOptionsUse valid values for the autocomplete attribute on input elements.

allOptional
public readonly all: boolean;
  • Type: boolean

It enables ALL rules for this group.


noCommonJsOptional
public readonly noCommonJs: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow use of CommonJs module system in favor of ESM style imports.


noDescendingSpecificityOptional
public readonly noDescendingSpecificity: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow a lower specificity selector from coming after a higher specificity selector.


noDocumentCookieOptional
public readonly noDocumentCookie: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow direct assignments to document.cookie.


noDocumentImportInPageOptional
public readonly noDocumentImportInPage: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Prevents importing next/document outside of pages/_document.jsx in Next.js projects.


noDuplicateCustomPropertiesOptional
public readonly noDuplicateCustomProperties: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow duplicate custom properties within declaration blocks.


noDuplicatedFieldsOptional
public readonly noDuplicatedFields: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

No duplicated fields in GraphQL operations.


noDuplicateElseIfOptional
public readonly noDuplicateElseIf: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow duplicate conditions in if-else-if chains.


noDuplicatePropertiesOptional
public readonly noDuplicateProperties: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow duplicate properties within declaration blocks.


noDynamicNamespaceImportAccessOptional
public readonly noDynamicNamespaceImportAccess: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow accessing namespace imports dynamically.


noEnumOptional
public readonly noEnum: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow TypeScript enum.


noExportedImportsOptional
public readonly noExportedImports: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow exporting an imported variable.


noHeadElementOptional
public readonly noHeadElement: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Prevent usage of <head> element in a Next.js project.


noHeadImportInDocumentOptional
public readonly noHeadImportInDocument: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Prevent using the next/head module in pages/_document.js on Next.js projects.


noImgElementOptional
public readonly noImgElement: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Prevent usage of <img> element in a Next.js project.


noIrregularWhitespaceOptional
public readonly noIrregularWhitespace: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallows the use of irregular whitespace characters.


noMissingVarFunctionOptional
public readonly noMissingVarFunction: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow missing var function for css variables.


noNestedTernaryOptional
public readonly noNestedTernary: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow nested ternary expressions.


noOctalEscapeOptional
public readonly noOctalEscape: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow octal escape sequences in string literals.


noProcessEnvOptional
public readonly noProcessEnv: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of process.env.


noRestrictedImportsOptional
public readonly noRestrictedImports: string | IRuleWithRestrictedImportsOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithRestrictedImportsOptions

Disallow specified modules when loaded by import or require.


noRestrictedTypesOptional
public readonly noRestrictedTypes: string | IRuleWithNoRestrictedTypesOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoRestrictedTypesOptions

Disallow user defined types.


noSecretsOptional
public readonly noSecrets: string | IRuleWithNoSecretsOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoSecretsOptions

Disallow usage of sensitive data such as API keys and tokens.


noStaticElementInteractionsOptional
public readonly noStaticElementInteractions: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforce that static, visible elements (such as <div>) that have click handlers use the valid role attribute.


noSubstrOptional
public readonly noSubstr: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce the use of String.slice() over String.substr() and String.substring().


noTemplateCurlyInStringOptional
public readonly noTemplateCurlyInString: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow template literal placeholder syntax in regular strings.


noUnknownPseudoClassOptional
public readonly noUnknownPseudoClass: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unknown pseudo-class selectors.


noUnknownPseudoElementOptional
public readonly noUnknownPseudoElement: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unknown pseudo-element selectors.


noUnknownTypeSelectorOptional
public readonly noUnknownTypeSelector: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unknown type selectors.


noUselessEscapeInRegexOptional
public readonly noUselessEscapeInRegex: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow unnecessary escape sequence in regular expression literals.


noUselessStringRawOptional
public readonly noUselessStringRaw: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unnecessary String.raw function in template string literals without any escape sequence.


noValueAtRuleOptional
public readonly noValueAtRule: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow use of.


recommendedOptional
public readonly recommended: boolean;
  • Type: boolean

It enables the recommended rules for this group.


useAdjacentOverloadSignaturesOptional
public readonly useAdjacentOverloadSignatures: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of overload signatures that are not next to each other.


useAriaPropsSupportedByRoleOptional
public readonly useAriaPropsSupportedByRole: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforce that ARIA properties are valid for the roles that are supported by the element.


useAtIndexOptional
public readonly useAtIndex: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Use at() instead of integer index access.


useCollapsedIfOptional
public readonly useCollapsedIf: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce using single if instead of nested if clauses.


useComponentExportOnlyModulesOptional
public readonly useComponentExportOnlyModules: string | IRuleWithUseComponentExportOnlyModulesOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithUseComponentExportOnlyModulesOptions

Enforce declaring components only within modules that export React Components exclusively.


useConsistentCurlyBracesOptional
public readonly useConsistentCurlyBraces: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

This rule enforces consistent use of curly braces inside JSX attributes and JSX children.


useConsistentMemberAccessibilityOptional
public readonly useConsistentMemberAccessibility: string | IRuleWithConsistentMemberAccessibilityOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithConsistentMemberAccessibilityOptions

Require consistent accessibility modifiers on class properties and methods.


useDeprecatedReasonOptional
  • Deprecated: directive
public readonly useDeprecatedReason: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Require specifying the reason argument when using.


useExplicitTypeOptional
public readonly useExplicitType: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Require explicit return types on functions and class methods.


useGoogleFontDisplayOptional
public readonly useGoogleFontDisplay: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforces the use of a recommended display strategy with Google Fonts.


useGuardForInOptional
public readonly useGuardForIn: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Require for-in loops to include an if statement.


useImportRestrictionsOptional
public readonly useImportRestrictions: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallows package private imports.


useSortedClassesOptional
public readonly useSortedClasses: string | IRuleWithUtilityClassSortingOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithUtilityClassSortingOptions

Enforce the sorting of CSS utility classes.


useStrictModeOptional
public readonly useStrictMode: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce the use of the directive "use strict" in script files.


useTrimStartEndOptional
public readonly useTrimStartEnd: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().


useValidAutocompleteOptional
public readonly useValidAutocomplete: string | IRuleWithUseValidAutocompleteOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithUseValidAutocompleteOptions

Use valid values for the autocomplete attribute on input elements.


IOrganizeImports

  • Implemented By: projen.javascript.biomeConfig.IOrganizeImports

Properties

NameTypeDescription
enabled
booleanEnables the organization of imports.
ignore
string[]A list of Unix shell style patterns.
include
string[]A list of Unix shell style patterns.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

Enables the organization of imports.


ignoreOptional
public readonly ignore: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will ignore files/folders that will match these patterns.


includeOptional
public readonly include: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will include files/folders that will match these patterns.


IOverrideFormatterConfiguration

  • Implemented By: projen.javascript.biomeConfig.IOverrideFormatterConfiguration

Properties

NameTypeDescription
attributePosition
stringThe attribute position style.
bracketSpacing
booleanWhether to insert spaces around brackets in object literals.
enabled
booleanNo description.
formatWithErrors
booleanStores whether formatting should be allowed to proceed if a given file has syntax errors.
indentSize
numberThe size of the indentation, 2 by default (deprecated, use indent-width).
indentStyle
stringThe indent style.
indentWidth
numberThe size of the indentation, 2 by default.
lineEnding
stringThe type of line ending.
lineWidth
numberWhat's the max width of a line.

attributePositionOptional
public readonly attributePosition: string;
  • Type: string

The attribute position style.


bracketSpacingOptional
public readonly bracketSpacing: boolean;
  • Type: boolean

Whether to insert spaces around brackets in object literals.

Defaults to true.


enabledOptional
public readonly enabled: boolean;
  • Type: boolean

formatWithErrorsOptional
public readonly formatWithErrors: boolean;
  • Type: boolean

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


indentSizeOptional
public readonly indentSize: number;
  • Type: number

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


indentStyleOptional
public readonly indentStyle: string;
  • Type: string

The indent style.


indentWidthOptional
public readonly indentWidth: number;
  • Type: number

The size of the indentation, 2 by default.


lineEndingOptional
public readonly lineEnding: string;
  • Type: string

The type of line ending.


lineWidthOptional
public readonly lineWidth: number;
  • Type: number

What's the max width of a line.

Defaults to 80.


IOverrideLinterConfiguration

  • Implemented By: projen.javascript.biomeConfig.IOverrideLinterConfiguration

Properties

NameTypeDescription
enabled
booleanif false, it disables the feature and the linter won't be executed.
rules
projen.javascript.biomeConfig.IRulesList of rules.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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

true by default


rulesOptional
public readonly rules: IRules;
  • Type: projen.javascript.biomeConfig.IRules

List of rules.


IOverrideOrganizeImportsConfiguration

  • Implemented By: projen.javascript.biomeConfig.IOverrideOrganizeImportsConfiguration

Properties

NameTypeDescription
enabled
booleanif false, it disables the feature and the linter won't be executed.

enabledOptional
public readonly enabled: boolean;
  • Type: boolean

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

true by default


IOverridePattern

  • Implemented By: projen.javascript.biomeConfig.IOverridePattern

Properties

NameTypeDescription
css
projen.javascript.biomeConfig.ICssConfigurationSpecific configuration for the Css language.
formatter
projen.javascript.biomeConfig.IOverrideFormatterConfigurationSpecific configuration for the Json language.
graphql
projen.javascript.biomeConfig.IGraphqlConfigurationSpecific configuration for the Graphql language.
ignore
string[]A list of Unix shell style patterns.
include
string[]A list of Unix shell style patterns.
javascript
projen.javascript.biomeConfig.IJavascriptConfigurationSpecific configuration for the JavaScript language.
json
projen.javascript.biomeConfig.IJsonConfigurationSpecific configuration for the Json language.
linter
projen.javascript.biomeConfig.IOverrideLinterConfigurationSpecific configuration for the Json language.
organizeImports
projen.javascript.biomeConfig.IOverrideOrganizeImportsConfigurationSpecific configuration for the Json language.

cssOptional
public readonly css: ICssConfiguration;
  • Type: projen.javascript.biomeConfig.ICssConfiguration

Specific configuration for the Css language.


formatterOptional
public readonly formatter: IOverrideFormatterConfiguration;
  • Type: projen.javascript.biomeConfig.IOverrideFormatterConfiguration

Specific configuration for the Json language.


graphqlOptional
public readonly graphql: IGraphqlConfiguration;
  • Type: projen.javascript.biomeConfig.IGraphqlConfiguration

Specific configuration for the Graphql language.


ignoreOptional
public readonly ignore: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will ignore files/folders that will match these patterns.


includeOptional
public readonly include: string[];
  • Type: string[]

A list of Unix shell style patterns.

The formatter will include files/folders that will match these patterns.


javascriptOptional
public readonly javascript: IJavascriptConfiguration;
  • Type: projen.javascript.biomeConfig.IJavascriptConfiguration

Specific configuration for the JavaScript language.


jsonOptional
public readonly json: IJsonConfiguration;
  • Type: projen.javascript.biomeConfig.IJsonConfiguration

Specific configuration for the Json language.


linterOptional
public readonly linter: IOverrideLinterConfiguration;
  • Type: projen.javascript.biomeConfig.IOverrideLinterConfiguration

Specific configuration for the Json language.


organizeImportsOptional
public readonly organizeImports: IOverrideOrganizeImportsConfiguration;
  • Type: projen.javascript.biomeConfig.IOverrideOrganizeImportsConfiguration

Specific configuration for the Json language.


IPerformance

  • Implemented By: projen.javascript.biomeConfig.IPerformance

A list of rules that belong to this group.

Properties

NameTypeDescription
all
booleanIt enables ALL rules for this group.
noAccumulatingSpread
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of spread (...) syntax on accumulators.
noBarrelFile
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of barrel file.
noDelete
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow the use of the delete operator.
noReExportAll
string | projen.javascript.biomeConfig.IRuleWithNoOptionsAvoid re-export all.
recommended
booleanIt enables the recommended rules for this group.
useTopLevelRegex
string | projen.javascript.biomeConfig.IRuleWithNoOptionsRequire regex literals to be declared at the top level.

allOptional
public readonly all: boolean;
  • Type: boolean

It enables ALL rules for this group.


noAccumulatingSpreadOptional
public readonly noAccumulatingSpread: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noBarrelFileOptional
public readonly noBarrelFile: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of barrel file.


noDeleteOptional
public readonly noDelete: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow the use of the delete operator.


noReExportAllOptional
public readonly noReExportAll: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Avoid re-export all.


recommendedOptional
public readonly recommended: boolean;
  • Type: boolean

It enables the recommended rules for this group.


useTopLevelRegexOptional
public readonly useTopLevelRegex: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Require regex literals to be declared at the top level.


IRestrictedGlobalsOptions

  • Implemented By: projen.javascript.biomeConfig.IRestrictedGlobalsOptions

Options for the rule noRestrictedGlobals.

Properties

NameTypeDescription
deniedGlobals
string[]A list of names that should trigger the rule.

deniedGlobalsOptional
public readonly deniedGlobals: string[];
  • Type: string[]

A list of names that should trigger the rule.


IRestrictedImportsOptions

  • Implemented By: projen.javascript.biomeConfig.IRestrictedImportsOptions

Options for the rule noRestrictedImports.

Properties

NameTypeDescription
paths
{[ key: string ]: string}A list of names that should trigger the rule.

pathsOptional
public readonly paths: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

A list of names that should trigger the rule.


IRules

  • Implemented By: projen.javascript.biomeConfig.IRules

Properties

NameTypeDescription
a11y
projen.javascript.biomeConfig.IA11yNo description.
all
booleanIt enables ALL rules.
complexity
projen.javascript.biomeConfig.IComplexityNo description.
correctness
projen.javascript.biomeConfig.ICorrectnessNo description.
nursery
projen.javascript.biomeConfig.INurseryNo description.
performance
projen.javascript.biomeConfig.IPerformanceNo description.
recommended
booleanIt enables the lint rules recommended by Biome.
security
projen.javascript.biomeConfig.ISecurityNo description.
style
projen.javascript.biomeConfig.IStyleNo description.
suspicious
projen.javascript.biomeConfig.ISuspiciousNo description.

a11yOptional
public readonly a11y: IA11y;
  • Type: projen.javascript.biomeConfig.IA11y

allOptional
public readonly all: boolean;
  • Type: boolean

It enables ALL rules.

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


complexityOptional
public readonly complexity: IComplexity;
  • Type: projen.javascript.biomeConfig.IComplexity

correctnessOptional
public readonly correctness: ICorrectness;
  • Type: projen.javascript.biomeConfig.ICorrectness

nurseryOptional
public readonly nursery: INursery;
  • Type: projen.javascript.biomeConfig.INursery

performanceOptional
public readonly performance: IPerformance;
  • Type: projen.javascript.biomeConfig.IPerformance

recommendedOptional
public readonly recommended: boolean;
  • Type: boolean

It enables the lint rules recommended by Biome.

true by default.


securityOptional
public readonly security: ISecurity;
  • Type: projen.javascript.biomeConfig.ISecurity

styleOptional
public readonly style: IStyle;
  • Type: projen.javascript.biomeConfig.IStyle

suspiciousOptional
public readonly suspicious: ISuspicious;
  • Type: projen.javascript.biomeConfig.ISuspicious

IRuleWithAllowDomainOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithAllowDomainOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.
options
projen.javascript.biomeConfig.IAllowDomainOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


optionsOptional
public readonly options: IAllowDomainOptions;
  • Type: projen.javascript.biomeConfig.IAllowDomainOptions

Rule's options.


IRuleWithComplexityOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithComplexityOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.IComplexityOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: IComplexityOptions;
  • Type: projen.javascript.biomeConfig.IComplexityOptions

Rule's options.


IRuleWithConsistentArrayTypeOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithConsistentArrayTypeOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.
options
projen.javascript.biomeConfig.IConsistentArrayTypeOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


optionsOptional
public readonly options: IConsistentArrayTypeOptions;
  • Type: projen.javascript.biomeConfig.IConsistentArrayTypeOptions

Rule's options.


IRuleWithConsistentMemberAccessibilityOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithConsistentMemberAccessibilityOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.IConsistentMemberAccessibilityOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: IConsistentMemberAccessibilityOptions;
  • Type: projen.javascript.biomeConfig.IConsistentMemberAccessibilityOptions

Rule's options.


IRuleWithDeprecatedHooksOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithDeprecatedHooksOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.IDeprecatedHooksOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: IDeprecatedHooksOptions;
  • Type: projen.javascript.biomeConfig.IDeprecatedHooksOptions

Rule's options.


IRuleWithFilenamingConventionOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithFilenamingConventionOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.IFilenamingConventionOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: IFilenamingConventionOptions;
  • Type: projen.javascript.biomeConfig.IFilenamingConventionOptions

Rule's options.


IRuleWithFixNoOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithFixNoOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


IRuleWithNamingConventionOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithNamingConventionOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.
options
projen.javascript.biomeConfig.INamingConventionOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


optionsOptional
public readonly options: INamingConventionOptions;
  • Type: projen.javascript.biomeConfig.INamingConventionOptions

Rule's options.


IRuleWithNoConsoleOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithNoConsoleOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.
options
projen.javascript.biomeConfig.INoConsoleOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


optionsOptional
public readonly options: INoConsoleOptions;
  • Type: projen.javascript.biomeConfig.INoConsoleOptions

Rule's options.


IRuleWithNoDoubleEqualsOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithNoDoubleEqualsOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.
options
projen.javascript.biomeConfig.INoDoubleEqualsOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


optionsOptional
public readonly options: INoDoubleEqualsOptions;
  • Type: projen.javascript.biomeConfig.INoDoubleEqualsOptions

Rule's options.


IRuleWithNoLabelWithoutControlOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithNoLabelWithoutControlOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.INoLabelWithoutControlOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: INoLabelWithoutControlOptions;
  • Type: projen.javascript.biomeConfig.INoLabelWithoutControlOptions

Rule's options.


IRuleWithNoOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithNoOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


IRuleWithNoRestrictedTypesOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithNoRestrictedTypesOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.
options
projen.javascript.biomeConfig.INoRestrictedTypesOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


optionsOptional
public readonly options: INoRestrictedTypesOptions;
  • Type: projen.javascript.biomeConfig.INoRestrictedTypesOptions

Rule's options.


IRuleWithNoSecretsOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithNoSecretsOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.INoSecretsOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: INoSecretsOptions;
  • Type: projen.javascript.biomeConfig.INoSecretsOptions

Rule's options.


IRuleWithRestrictedGlobalsOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithRestrictedGlobalsOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.IRestrictedGlobalsOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: IRestrictedGlobalsOptions;
  • Type: projen.javascript.biomeConfig.IRestrictedGlobalsOptions

Rule's options.


IRuleWithRestrictedImportsOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithRestrictedImportsOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.IRestrictedImportsOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: IRestrictedImportsOptions;
  • Type: projen.javascript.biomeConfig.IRestrictedImportsOptions

Rule's options.


IRuleWithUseComponentExportOnlyModulesOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithUseComponentExportOnlyModulesOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.IUseComponentExportOnlyModulesOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: IUseComponentExportOnlyModulesOptions;
  • Type: projen.javascript.biomeConfig.IUseComponentExportOnlyModulesOptions

Rule's options.


IRuleWithUseExhaustiveDependenciesOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithUseExhaustiveDependenciesOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.IUseExhaustiveDependenciesOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: IUseExhaustiveDependenciesOptions;
  • Type: projen.javascript.biomeConfig.IUseExhaustiveDependenciesOptions

Rule's options.


IRuleWithUseImportExtensionsOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithUseImportExtensionsOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.
options
projen.javascript.biomeConfig.IUseImportExtensionsOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


optionsOptional
public readonly options: IUseImportExtensionsOptions;
  • Type: projen.javascript.biomeConfig.IUseImportExtensionsOptions

Rule's options.


IRuleWithUseValidAutocompleteOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithUseValidAutocompleteOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
options
projen.javascript.biomeConfig.IUseValidAutocompleteOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


optionsOptional
public readonly options: IUseValidAutocompleteOptions;
  • Type: projen.javascript.biomeConfig.IUseValidAutocompleteOptions

Rule's options.


IRuleWithUtilityClassSortingOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithUtilityClassSortingOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.
options
projen.javascript.biomeConfig.IUtilityClassSortingOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


optionsOptional
public readonly options: IUtilityClassSortingOptions;
  • Type: projen.javascript.biomeConfig.IUtilityClassSortingOptions

Rule's options.


IRuleWithValidAriaRoleOptions

  • Implemented By: projen.javascript.biomeConfig.IRuleWithValidAriaRoleOptions

Properties

NameTypeDescription
level
stringThe severity of the emitted diagnostics by the rule.
fix
stringThe kind of the code actions emitted by the rule.
options
projen.javascript.biomeConfig.IValidAriaRoleOptionsRule's options.

levelRequired
public readonly level: string;
  • Type: string

The severity of the emitted diagnostics by the rule.


fixOptional
public readonly fix: string;
  • Type: string

The kind of the code actions emitted by the rule.


optionsOptional
public readonly options: IValidAriaRoleOptions;
  • Type: projen.javascript.biomeConfig.IValidAriaRoleOptions

Rule's options.


ISecurity

  • Implemented By: projen.javascript.biomeConfig.ISecurity

A list of rules that belong to this group.

Properties

NameTypeDescription
all
booleanIt enables ALL rules for this group.
noDangerouslySetInnerHtml
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevent the usage of dangerous JSX props.
noDangerouslySetInnerHtmlWithChildren
string | projen.javascript.biomeConfig.IRuleWithNoOptionsReport when a DOM element or a component uses both children and dangerouslySetInnerHTML prop.
noGlobalEval
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of global eval().
recommended
booleanIt enables the recommended rules for this group.

allOptional
public readonly all: boolean;
  • Type: boolean

It enables ALL rules for this group.


noDangerouslySetInnerHtmlOptional
public readonly noDangerouslySetInnerHtml: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Prevent the usage of dangerous JSX props.


noDangerouslySetInnerHtmlWithChildrenOptional
public readonly noDangerouslySetInnerHtmlWithChildren: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noGlobalEvalOptional
public readonly noGlobalEval: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of global eval().


recommendedOptional
public readonly recommended: boolean;
  • Type: boolean

It enables the recommended rules for this group.


ISelector

  • Implemented By: projen.javascript.biomeConfig.ISelector

Properties

NameTypeDescription
kind
stringDeclaration kind.
modifiers
string[]Modifiers used on the declaration.
scope
stringScope of the declaration.

kindOptional
public readonly kind: string;
  • Type: string

Declaration kind.


modifiersOptional
public readonly modifiers: string[];
  • Type: string[]

Modifiers used on the declaration.


scopeOptional
public readonly scope: string;
  • Type: string

Scope of the declaration.


ISource

  • Implemented By: projen.javascript.biomeConfig.ISource

A list of rules that belong to this group.

Properties

NameTypeDescription
sortJsxProps
stringEnforce props sorting in JSX elements.
useSortedKeys
stringSorts the keys of a JSON object in natural order.

sortJsxPropsOptional
public readonly sortJsxProps: string;
  • Type: string

Enforce props sorting in JSX elements.


useSortedKeysOptional
public readonly useSortedKeys: string;
  • Type: string

Sorts the keys of a JSON object in natural order.


IStyle

  • Implemented By: projen.javascript.biomeConfig.IStyle

A list of rules that belong to this group.

Properties

NameTypeDescription
all
booleanIt enables ALL rules for this group.
noArguments
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of arguments.
noCommaOperator
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow comma operator.
noDefaultExport
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow default exports.
noDoneCallback
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow using a callback in asynchronous tests and hooks.
noImplicitBoolean
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow implicit true values on JSX boolean attributes.
noInferrableTypes
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow type annotations for variables, parameters, and class properties initialized with a literal expression.
noNamespace
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of TypeScript's namespaces.
noNamespaceImport
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of namespace imports.
noNegationElse
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow negation in the condition of an if statement if it has an else clause.
noNonNullAssertion
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow non-null assertions using the !
noParameterAssign
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow reassigning function parameters.
noParameterProperties
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the use of parameter properties in class constructors.
noRestrictedGlobals
string | projen.javascript.biomeConfig.IRuleWithRestrictedGlobalsOptionsThis rule allows you to specify global variable names that you don’t want to use in your application.
noShoutyConstants
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow the use of constants which its value is the upper-case version of its name.
noUnusedTemplateLiteral
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow template literals if interpolation and special-character handling are not needed.
noUselessElse
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow else block when the if block breaks early.
noVar
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow the use of var.
noYodaExpression
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow the use of yoda expressions.
recommended
booleanIt enables the recommended rules for this group.
useAsConstAssertion
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce the use of as const over literal type and type annotation.
useBlockStatements
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsRequires following curly brace conventions.
useCollapsedElseIf
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce using else if instead of nested if in else clauses.
useConsistentArrayType
string | projen.javascript.biomeConfig.IRuleWithConsistentArrayTypeOptionsRequire consistently using either T[] or Array<T>.
useConsistentBuiltinInstantiation
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce the use of new for all builtins, except String, Number and Boolean.
useConst
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsRequire const declarations for variables that are only assigned once.
useDefaultParameterLast
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce default function parameters and optional function parameters to be last.
useDefaultSwitchClause
string | projen.javascript.biomeConfig.IRuleWithNoOptionsRequire the default clause in switch statements.
useEnumInitializers
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsRequire that each enum member value be explicitly initialized.
useExplicitLengthCheck
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
useExponentiationOperator
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow the use of Math.pow in favor of the ** operator.
useExportType
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPromotes the use of export type for types.
useFilenamingConvention
string | projen.javascript.biomeConfig.IRuleWithFilenamingConventionOptionsEnforce naming conventions for JavaScript and TypeScript filenames.
useForOf
string | projen.javascript.biomeConfig.IRuleWithNoOptionsThis rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.
useFragmentSyntax
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsThis rule enforces the use of <>...</> over <Fragment>...</Fragment>.
useImportType
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPromotes the use of import type for types.
useLiteralEnumMembers
string | projen.javascript.biomeConfig.IRuleWithNoOptionsRequire all enum members to be literal values.
useNamingConvention
string | projen.javascript.biomeConfig.IRuleWithNamingConventionOptionsEnforce naming conventions for everything across a codebase.
useNodeAssertStrict
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPromotes the usage of node:assert/strict over node:assert.
useNodejsImportProtocol
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforces using the node: protocol for Node.js builtin modules.
useNumberNamespace
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsUse the Number properties instead of global ones.
useNumericLiterals
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals.
useSelfClosingElements
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPrevent extra closing tags for components without children.
useShorthandArrayType
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsWhen expressing array types, this rule promotes the usage of T[] shorthand instead of Array<T>.
useShorthandAssign
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsRequire assignment operator shorthand where possible.
useShorthandFunctionType
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce using function types instead of object type with call signatures.
useSingleCaseStatement
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.
useSingleVarDeclarator
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow multiple variable declarations in the same variable statement.
useTemplate
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPrefer template literals over string concatenation.
useThrowNewError
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsRequire new when throwing an error.
useThrowOnlyError
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow throwing non-Error values.
useWhile
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce the use of while loops instead of for loops when the initializer and update expressions are not needed.

allOptional
public readonly all: boolean;
  • Type: boolean

It enables ALL rules for this group.


noArgumentsOptional
public readonly noArguments: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of arguments.


noCommaOperatorOptional
public readonly noCommaOperator: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow comma operator.


noDefaultExportOptional
public readonly noDefaultExport: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow default exports.


noDoneCallbackOptional
public readonly noDoneCallback: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow using a callback in asynchronous tests and hooks.


noImplicitBooleanOptional
public readonly noImplicitBoolean: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow implicit true values on JSX boolean attributes.


noInferrableTypesOptional
public readonly noInferrableTypes: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noNamespaceOptional
public readonly noNamespace: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of TypeScript's namespaces.


noNamespaceImportOptional
public readonly noNamespaceImport: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of namespace imports.


noNegationElseOptional
public readonly noNegationElse: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noNonNullAssertionOptional
public readonly noNonNullAssertion: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow non-null assertions using the !

postfix operator.


noParameterAssignOptional
public readonly noParameterAssign: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow reassigning function parameters.


noParameterPropertiesOptional
public readonly noParameterProperties: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the use of parameter properties in class constructors.


noRestrictedGlobalsOptional
public readonly noRestrictedGlobals: string | IRuleWithRestrictedGlobalsOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithRestrictedGlobalsOptions

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


noShoutyConstantsOptional
public readonly noShoutyConstants: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noUnusedTemplateLiteralOptional
public readonly noUnusedTemplateLiteral: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noUselessElseOptional
public readonly noUselessElse: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow else block when the if block breaks early.


noVarOptional
public readonly noVar: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow the use of var.


noYodaExpressionOptional
public readonly noYodaExpression: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow the use of yoda expressions.


recommendedOptional
public readonly recommended: boolean;
  • Type: boolean

It enables the recommended rules for this group.


useAsConstAssertionOptional
public readonly useAsConstAssertion: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useBlockStatementsOptional
public readonly useBlockStatements: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Requires following curly brace conventions.


useCollapsedElseIfOptional
public readonly useCollapsedElseIf: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useConsistentArrayTypeOptional
public readonly useConsistentArrayType: string | IRuleWithConsistentArrayTypeOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithConsistentArrayTypeOptions

Require consistently using either T[] or Array<T>.


useConsistentBuiltinInstantiationOptional
public readonly useConsistentBuiltinInstantiation: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce the use of new for all builtins, except String, Number and Boolean.


useConstOptional
public readonly useConst: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Require const declarations for variables that are only assigned once.


useDefaultParameterLastOptional
public readonly useDefaultParameterLast: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useDefaultSwitchClauseOptional
public readonly useDefaultSwitchClause: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Require the default clause in switch statements.


useEnumInitializersOptional
public readonly useEnumInitializers: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Require that each enum member value be explicitly initialized.


useExplicitLengthCheckOptional
public readonly useExplicitLengthCheck: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.


useExponentiationOperatorOptional
public readonly useExponentiationOperator: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useExportTypeOptional
public readonly useExportType: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Promotes the use of export type for types.


useFilenamingConventionOptional
public readonly useFilenamingConvention: string | IRuleWithFilenamingConventionOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFilenamingConventionOptions

Enforce naming conventions for JavaScript and TypeScript filenames.


useForOfOptional
public readonly useForOf: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.


useFragmentSyntaxOptional
public readonly useFragmentSyntax: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useImportTypeOptional
public readonly useImportType: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Promotes the use of import type for types.


useLiteralEnumMembersOptional
public readonly useLiteralEnumMembers: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Require all enum members to be literal values.


useNamingConventionOptional
public readonly useNamingConvention: string | IRuleWithNamingConventionOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNamingConventionOptions

Enforce naming conventions for everything across a codebase.


useNodeAssertStrictOptional
public readonly useNodeAssertStrict: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Promotes the usage of node:assert/strict over node:assert.


useNodejsImportProtocolOptional
public readonly useNodejsImportProtocol: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforces using the node: protocol for Node.js builtin modules.


useNumberNamespaceOptional
public readonly useNumberNamespace: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Use the Number properties instead of global ones.


useNumericLiteralsOptional
public readonly useNumericLiterals: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useSelfClosingElementsOptional
public readonly useSelfClosingElements: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Prevent extra closing tags for components without children.


useShorthandArrayTypeOptional
public readonly useShorthandArrayType: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useShorthandAssignOptional
public readonly useShorthandAssign: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Require assignment operator shorthand where possible.


useShorthandFunctionTypeOptional
public readonly useShorthandFunctionType: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce using function types instead of object type with call signatures.


useSingleCaseStatementOptional
public readonly useSingleCaseStatement: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useSingleVarDeclaratorOptional
public readonly useSingleVarDeclarator: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow multiple variable declarations in the same variable statement.


useTemplateOptional
public readonly useTemplate: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Prefer template literals over string concatenation.


useThrowNewErrorOptional
public readonly useThrowNewError: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Require new when throwing an error.


useThrowOnlyErrorOptional
public readonly useThrowOnlyError: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow throwing non-Error values.


useWhileOptional
public readonly useWhile: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


ISuggestedExtensionMapping

  • Implemented By: projen.javascript.biomeConfig.ISuggestedExtensionMapping

Properties

NameTypeDescription
component
stringExtension that should be used for component file imports.
module
stringExtension that should be used for module imports.

componentOptional
public readonly component: string;
  • Type: string

Extension that should be used for component file imports.


moduleOptional
public readonly module: string;
  • Type: string

Extension that should be used for module imports.


ISuspicious

  • Implemented By: projen.javascript.biomeConfig.ISuspicious

A list of rules that belong to this group.

Properties

NameTypeDescription
all
booleanIt enables ALL rules for this group.
noApproximativeNumericConstant
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsUse standard constants instead of approximated literals.
noArrayIndexKey
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDiscourage the usage of Array index in keys.
noAssignInExpressions
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow assignments in expressions.
noAsyncPromiseExecutor
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallows using an async function as a Promise executor.
noCatchAssign
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow reassigning exceptions in catch clauses.
noClassAssign
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow reassigning class members.
noCommentText
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPrevent comments from being inserted as text nodes.
noCompareNegZero
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow comparing against -0.
noConfusingLabels
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow labeled statements that are not loops.
noConfusingVoidType
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow void type outside of generic or return types.
noConsole
string | projen.javascript.biomeConfig.IRuleWithNoConsoleOptionsDisallow the use of console.
noConsoleLog
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow the use of console.log.
noConstEnum
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow TypeScript const enum.
noControlCharactersInRegex
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevents from having control characters and some escape sequences that match control characters in regular expressions.
noDebugger
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow the use of debugger.
noDoubleEquals
string | projen.javascript.biomeConfig.IRuleWithNoDoubleEqualsOptionsRequire the use of === and !==.
noDuplicateAtImportRules
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow duplicate.
noDuplicateCase
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow duplicate case labels.
noDuplicateClassMembers
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow duplicate class members.
noDuplicateFontNames
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow duplicate names within font families.
noDuplicateJsxProps
string | projen.javascript.biomeConfig.IRuleWithNoOptionsPrevents JSX properties to be assigned multiple times.
noDuplicateObjectKeys
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow two keys with the same name inside objects.
noDuplicateParameters
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow duplicate function parameter name.
noDuplicateSelectorsKeyframeBlock
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow duplicate selectors within keyframe blocks.
noDuplicateTestHooks
string | projen.javascript.biomeConfig.IRuleWithNoOptionsA describe block should not contain duplicate hooks.
noEmptyBlock
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow CSS empty blocks.
noEmptyBlockStatements
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow empty block statements and static blocks.
noEmptyInterface
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow the declaration of empty interfaces.
noEvolvingTypes
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow variables from evolving into any type through reassignments.
noExplicitAny
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow the any type usage.
noExportsInTest
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow using export or module.exports in files containing tests.
noExtraNonNullAssertion
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPrevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
noFallthroughSwitchClause
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow fallthrough of switch clauses.
noFocusedTests
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow focused tests.
noFunctionAssign
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow reassigning function declarations.
noGlobalAssign
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow assignments to native objects and read-only global variables.
noGlobalIsFinite
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsUse Number.isFinite instead of global isFinite.
noGlobalIsNan
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsUse Number.isNaN instead of global isNaN.
noImplicitAnyLet
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow use of implicit any type on variable declarations.
noImportantInKeyframe
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow invalid !important within keyframe declarations.
noImportAssign
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow assigning to imported bindings.
noLabelVar
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow labels that share a name with a variable.
noMisleadingCharacterClass
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow characters made with multiple code points in character class syntax.
noMisleadingInstantiator
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce proper usage of new and constructor.
noMisplacedAssertion
string | projen.javascript.biomeConfig.IRuleWithNoOptionsChecks that the assertion function, for example expect, is placed inside an it() function call.
noMisrefactoredShorthandAssign
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow shorthand assign when variable appears on both sides.
noPrototypeBuiltins
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow direct use of Object.prototype builtins.
noReactSpecificProps
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPrevents React-specific JSX properties from being used.
noRedeclare
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow variable, function, class, and type redeclarations in the same scope.
noRedundantUseStrict
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsPrevents from having redundant "use strict".
noSelfCompare
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow comparisons where both sides are exactly the same.
noShadowRestrictedNames
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow identifiers from shadowing restricted names.
noShorthandPropertyOverrides
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow shorthand properties that override related longhand properties.
noSkippedTests
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow disabled tests.
noSparseArray
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow sparse arrays.
noSuspiciousSemicolonInJsx
string | projen.javascript.biomeConfig.IRuleWithNoOptionsIt detects possible "wrong" semicolons inside JSX elements.
noThenProperty
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow then property.
noUnsafeDeclarationMerging
string | projen.javascript.biomeConfig.IRuleWithNoOptionsDisallow unsafe declaration merging between interfaces and classes.
noUnsafeNegation
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsDisallow using unsafe negation.
recommended
booleanIt enables the recommended rules for this group.
useAwait
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnsure async functions utilize await.
useDefaultSwitchClauseLast
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce default clauses in switch statements to be last.
useErrorMessage
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce passing a message value when creating a built-in error.
useGetterReturn
string | projen.javascript.biomeConfig.IRuleWithNoOptionsEnforce get methods to always return a value.
useIsArray
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsUse Array.isArray() instead of instanceof Array.
useNamespaceKeyword
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsRequire using the namespace keyword over the module keyword to declare TypeScript namespaces.
useNumberToFixedDigitsArgument
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsEnforce using the digits argument with Number#toFixed().
useValidTypeof
string | projen.javascript.biomeConfig.IRuleWithFixNoOptionsThis 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.

allOptional
public readonly all: boolean;
  • Type: boolean

It enables ALL rules for this group.


noApproximativeNumericConstantOptional
public readonly noApproximativeNumericConstant: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Use standard constants instead of approximated literals.


noArrayIndexKeyOptional
public readonly noArrayIndexKey: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Discourage the usage of Array index in keys.


noAssignInExpressionsOptional
public readonly noAssignInExpressions: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow assignments in expressions.


noAsyncPromiseExecutorOptional
public readonly noAsyncPromiseExecutor: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallows using an async function as a Promise executor.


noCatchAssignOptional
public readonly noCatchAssign: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow reassigning exceptions in catch clauses.


noClassAssignOptional
public readonly noClassAssign: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow reassigning class members.


noCommentTextOptional
public readonly noCommentText: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Prevent comments from being inserted as text nodes.


noCompareNegZeroOptional
public readonly noCompareNegZero: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow comparing against -0.


noConfusingLabelsOptional
public readonly noConfusingLabels: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow labeled statements that are not loops.


noConfusingVoidTypeOptional
public readonly noConfusingVoidType: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow void type outside of generic or return types.


noConsoleOptional
public readonly noConsole: string | IRuleWithNoConsoleOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoConsoleOptions

Disallow the use of console.


noConsoleLogOptional
public readonly noConsoleLog: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow the use of console.log.


noConstEnumOptional
public readonly noConstEnum: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow TypeScript const enum.


noControlCharactersInRegexOptional
public readonly noControlCharactersInRegex: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noDebuggerOptional
public readonly noDebugger: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow the use of debugger.


noDoubleEqualsOptional
public readonly noDoubleEquals: string | IRuleWithNoDoubleEqualsOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoDoubleEqualsOptions

Require the use of === and !==.


noDuplicateAtImportRulesOptional
public readonly noDuplicateAtImportRules: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow duplicate.


noDuplicateCaseOptional
public readonly noDuplicateCase: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow duplicate case labels.


noDuplicateClassMembersOptional
public readonly noDuplicateClassMembers: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow duplicate class members.


noDuplicateFontNamesOptional
public readonly noDuplicateFontNames: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow duplicate names within font families.


noDuplicateJsxPropsOptional
public readonly noDuplicateJsxProps: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Prevents JSX properties to be assigned multiple times.


noDuplicateObjectKeysOptional
public readonly noDuplicateObjectKeys: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow two keys with the same name inside objects.


noDuplicateParametersOptional
public readonly noDuplicateParameters: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow duplicate function parameter name.


noDuplicateSelectorsKeyframeBlockOptional
public readonly noDuplicateSelectorsKeyframeBlock: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow duplicate selectors within keyframe blocks.


noDuplicateTestHooksOptional
public readonly noDuplicateTestHooks: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

A describe block should not contain duplicate hooks.


noEmptyBlockOptional
public readonly noEmptyBlock: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow CSS empty blocks.


noEmptyBlockStatementsOptional
public readonly noEmptyBlockStatements: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow empty block statements and static blocks.


noEmptyInterfaceOptional
public readonly noEmptyInterface: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow the declaration of empty interfaces.


noEvolvingTypesOptional
public readonly noEvolvingTypes: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow variables from evolving into any type through reassignments.


noExplicitAnyOptional
public readonly noExplicitAny: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow the any type usage.


noExportsInTestOptional
public readonly noExportsInTest: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow using export or module.exports in files containing tests.


noExtraNonNullAssertionOptional
public readonly noExtraNonNullAssertion: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


noFallthroughSwitchClauseOptional
public readonly noFallthroughSwitchClause: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow fallthrough of switch clauses.


noFocusedTestsOptional
public readonly noFocusedTests: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow focused tests.


noFunctionAssignOptional
public readonly noFunctionAssign: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow reassigning function declarations.


noGlobalAssignOptional
public readonly noGlobalAssign: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow assignments to native objects and read-only global variables.


noGlobalIsFiniteOptional
public readonly noGlobalIsFinite: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Use Number.isFinite instead of global isFinite.


noGlobalIsNanOptional
public readonly noGlobalIsNan: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Use Number.isNaN instead of global isNaN.


noImplicitAnyLetOptional
public readonly noImplicitAnyLet: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow use of implicit any type on variable declarations.


noImportantInKeyframeOptional
public readonly noImportantInKeyframe: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow invalid !important within keyframe declarations.


noImportAssignOptional
public readonly noImportAssign: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow assigning to imported bindings.


noLabelVarOptional
public readonly noLabelVar: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow labels that share a name with a variable.


noMisleadingCharacterClassOptional
public readonly noMisleadingCharacterClass: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow characters made with multiple code points in character class syntax.


noMisleadingInstantiatorOptional
public readonly noMisleadingInstantiator: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforce proper usage of new and constructor.


noMisplacedAssertionOptional
public readonly noMisplacedAssertion: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Checks that the assertion function, for example expect, is placed inside an it() function call.


noMisrefactoredShorthandAssignOptional
public readonly noMisrefactoredShorthandAssign: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow shorthand assign when variable appears on both sides.


noPrototypeBuiltinsOptional
public readonly noPrototypeBuiltins: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow direct use of Object.prototype builtins.


noReactSpecificPropsOptional
public readonly noReactSpecificProps: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Prevents React-specific JSX properties from being used.


noRedeclareOptional
public readonly noRedeclare: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

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


noRedundantUseStrictOptional
public readonly noRedundantUseStrict: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Prevents from having redundant "use strict".


noSelfCompareOptional
public readonly noSelfCompare: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow comparisons where both sides are exactly the same.


noShadowRestrictedNamesOptional
public readonly noShadowRestrictedNames: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow identifiers from shadowing restricted names.


noShorthandPropertyOverridesOptional
public readonly noShorthandPropertyOverrides: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow shorthand properties that override related longhand properties.


noSkippedTestsOptional
public readonly noSkippedTests: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow disabled tests.


noSparseArrayOptional
public readonly noSparseArray: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow sparse arrays.


noSuspiciousSemicolonInJsxOptional
public readonly noSuspiciousSemicolonInJsx: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

It detects possible "wrong" semicolons inside JSX elements.


noThenPropertyOptional
public readonly noThenProperty: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow then property.


noUnsafeDeclarationMergingOptional
public readonly noUnsafeDeclarationMerging: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Disallow unsafe declaration merging between interfaces and classes.


noUnsafeNegationOptional
public readonly noUnsafeNegation: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Disallow using unsafe negation.


recommendedOptional
public readonly recommended: boolean;
  • Type: boolean

It enables the recommended rules for this group.


useAwaitOptional
public readonly useAwait: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Ensure async functions utilize await.


useDefaultSwitchClauseLastOptional
public readonly useDefaultSwitchClauseLast: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforce default clauses in switch statements to be last.


useErrorMessageOptional
public readonly useErrorMessage: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforce passing a message value when creating a built-in error.


useGetterReturnOptional
public readonly useGetterReturn: string | IRuleWithNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithNoOptions

Enforce get methods to always return a value.


useIsArrayOptional
public readonly useIsArray: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Use Array.isArray() instead of instanceof Array.


useNamespaceKeywordOptional
public readonly useNamespaceKeyword: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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


useNumberToFixedDigitsArgumentOptional
public readonly useNumberToFixedDigitsArgument: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

Enforce using the digits argument with Number#toFixed().


useValidTypeofOptional
public readonly useValidTypeof: string | IRuleWithFixNoOptions;
  • Type: string | projen.javascript.biomeConfig.IRuleWithFixNoOptions

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.


IUseComponentExportOnlyModulesOptions

  • Implemented By: projen.javascript.biomeConfig.IUseComponentExportOnlyModulesOptions

Properties

NameTypeDescription
allowConstantExport
booleanAllows the export of constants.
allowExportNames
string[]A list of names that can be additionally exported from the module This option is for exports that do not hinder React Fast Refresh, such as meta in Remix.

allowConstantExportOptional
public readonly allowConstantExport: boolean;
  • Type: boolean

Allows the export of constants.

This option is for environments that support it, such as Vite


allowExportNamesOptional
public readonly allowExportNames: string[];
  • Type: string[]

A list of names that can be additionally exported from the module This option is for exports that do not hinder React Fast Refresh, such as meta in Remix.


IUseExhaustiveDependenciesOptions

  • Implemented By: projen.javascript.biomeConfig.IUseExhaustiveDependenciesOptions

Options for the rule useExhaustiveDependencies.

Properties

NameTypeDescription
hooks
projen.javascript.biomeConfig.IHook[]List of hooks of which the dependencies should be validated.
reportMissingDependenciesArray
booleanWhether to report an error when a hook has no dependencies array.
reportUnnecessaryDependencies
booleanWhether to report an error when a dependency is listed in the dependencies array but isn't used.

hooksOptional
public readonly hooks: IHook[];
  • Type: projen.javascript.biomeConfig.IHook[]

List of hooks of which the dependencies should be validated.


reportMissingDependenciesArrayOptional
public readonly reportMissingDependenciesArray: boolean;
  • Type: boolean

Whether to report an error when a hook has no dependencies array.


reportUnnecessaryDependenciesOptional
public readonly reportUnnecessaryDependencies: boolean;
  • Type: boolean

Whether to report an error when a dependency is listed in the dependencies array but isn't used.

Defaults to true.


IUseImportExtensionsOptions

  • Implemented By: projen.javascript.biomeConfig.IUseImportExtensionsOptions

Properties

NameTypeDescription
suggestedExtensions
{[ key: string ]: projen.javascript.biomeConfig.ISuggestedExtensionMapping}A map of custom import extension mappings, where the key is the inspected file extension, and the value is a pair of module extension and component import extension.

suggestedExtensionsOptional
public readonly suggestedExtensions: {[ key: string ]: ISuggestedExtensionMapping};
  • Type: {[ key: string ]: projen.javascript.biomeConfig.ISuggestedExtensionMapping}

A map of custom import extension mappings, where the key is the inspected file extension, and the value is a pair of module extension and component import extension.


IUseValidAutocompleteOptions

  • Implemented By: projen.javascript.biomeConfig.IUseValidAutocompleteOptions

Properties

NameTypeDescription
inputComponents
string[]input like custom components that should be checked.

inputComponentsOptional
public readonly inputComponents: string[];
  • Type: string[]

input like custom components that should be checked.


IUtilityClassSortingOptions

  • Implemented By: projen.javascript.biomeConfig.IUtilityClassSortingOptions

Properties

NameTypeDescription
attributes
string[]Additional attributes that will be sorted.
functions
string[]Names of the functions or tagged templates that will be sorted.

attributesOptional
public readonly attributes: string[];
  • Type: string[]

Additional attributes that will be sorted.


functionsOptional
public readonly functions: string[];
  • Type: string[]

Names of the functions or tagged templates that will be sorted.


IValidAriaRoleOptions

  • Implemented By: projen.javascript.biomeConfig.IValidAriaRoleOptions

Properties

NameTypeDescription
allowInvalidRoles
string[]No description.
ignoreNonDom
booleanNo description.

allowInvalidRolesOptional
public readonly allowInvalidRoles: string[];
  • Type: string[]

ignoreNonDomOptional
public readonly ignoreNonDom: boolean;
  • Type: boolean

IVcsConfiguration

  • Implemented By: projen.javascript.biomeConfig.IVcsConfiguration

Set of properties to integrate Biome with a VCS software.

Properties

NameTypeDescription
clientKind
stringThe kind of client.
defaultBranch
stringThe main branch of the project.
enabled
booleanWhether Biome should integrate itself with the VCS client.
root
stringThe folder where Biome should check for VCS files.
useIgnoreFile
booleanWhether Biome should use the VCS ignore file.

clientKindOptional
public readonly clientKind: string;
  • Type: string

The kind of client.


defaultBranchOptional
public readonly defaultBranch: string;
  • Type: string

The main branch of the project.


enabledOptional
public readonly enabled: boolean;
  • Type: boolean

Whether Biome should integrate itself with the VCS client.


rootOptional
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


useIgnoreFileOptional
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.