Configuration
The configuration that is contained inside the file biome.json
$schema
Section titled $schemaA field for the JSON schema specification
Specific configuration for the Css language
Options applied to CSS files
css.formatter
Section titled css.formatterCSS formatter options
Options that changes how the CSS formatter behaves
css.formatter.enabled
Section titled css.formatter.enabledControl the formatter for CSS (and its super languages) files.
Type: Boolean
css.formatter.indentStyle
Section titled css.formatter.indentStyleThe indent style applied to CSS (and its super languages) files.
css.formatter.indentWidth
Section titled css.formatter.indentWidthThe size of the indentation applied to CSS (and its super languages) files. Default to 2.
Type: Integer
css.formatter.lineEnding
Section titled css.formatter.lineEndingThe type of line ending applied to CSS (and its super languages) files.
css.formatter.lineWidth
Section titled css.formatter.lineWidthWhat’s the max width of a line applied to CSS (and its super languages) files. Defaults to 80.
Validated value for the line_width
formatter options
The allowed range of values is 1..=320
css.formatter.quoteStyle
Section titled css.formatter.quoteStyleThe type of quotes used in CSS code. Defaults to double.
css.linter
Section titled css.linterCSS linter options
Options that changes how the CSS linter behaves
css.linter.enabled
Section titled css.linter.enabledControl the linter for CSS (and its super languages) files.
Type: Boolean
css.parser
Section titled css.parserCSS parsing options
Options that changes how the CSS parser behaves
css.parser.allowWrongLineComments
Section titled css.parser.allowWrongLineCommentsAllow comments to appear on incorrect lines in .css
files
Type: Boolean
css.parser.cssModules
Section titled css.parser.cssModulesEnables parsing of CSS Modules specific features.
Type: Boolean
extends
Section titled extendsA list of paths to other JSON files, used to extends the current configuration.
files
Section titled filesThe configuration of the filesystem
The configuration of the filesystem
files.ignore
Section titled files.ignoreA list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns.
files.ignoreUnknown
Section titled files.ignoreUnknownTells Biome to not emit diagnostics when handling files that doesn’t know
Type: Boolean
files.include
Section titled files.includeA list of Unix shell style patterns. Biome will handle only those files/folders that will match these patterns.
files.maxSize
Section titled files.maxSizeThe maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
Type: Integer
formatter
Section titled formatterThe configuration of the formatter
Generic options applied to all files
formatter.attributePosition
Section titled formatter.attributePositionThe attribute position style in HTMLish languages. By default auto.
Type: Boolean
formatter.formatWithErrors
Section titled formatter.formatWithErrorsStores whether formatting should be allowed to proceed if a given file has syntax errors
Type: Boolean
formatter.ignore
Section titled formatter.ignoreA list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
formatter.include
Section titled formatter.includeA list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
formatter.indentSize
Section titled formatter.indentSizeThe size of the indentation, 2 by default (deprecated, use indent-width
)
Type: Integer
formatter.indentStyle
Section titled formatter.indentStyleThe indent style.
formatter.indentWidth
Section titled formatter.indentWidthThe size of the indentation, 2 by default
Type: Integer
formatter.lineEnding
Section titled formatter.lineEndingThe type of line ending.
formatter.lineWidth
Section titled formatter.lineWidthWhat’s the max width of a line. Defaults to 80.
Validated value for the line_width
formatter options
The allowed range of values is 1..=320
javascript
Section titled javascriptSpecific configuration for the JavaScript language
A set of options applied to the JavaScript files
javascript.formatter
Section titled javascript.formatterFormatting options
Formatting options specific to the JavaScript files
javascript.formatter.arrowParentheses
Section titled javascript.formatter.arrowParenthesesWhether to add non-necessary parentheses to arrow functions. Defaults to “always”.
javascript.formatter.attributePosition
Section titled javascript.formatter.attributePositionThe attribute position style in jsx elements. Defaults to auto.
javascript.formatter.bracketSameLine
Section titled javascript.formatter.bracketSameLineWhether 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.
Type: Boolean
javascript.formatter.bracketSpacing
Section titled javascript.formatter.bracketSpacingWhether to insert spaces around brackets in object literals. Defaults to true.
Type: Boolean
javascript.formatter.enabled
Section titled javascript.formatter.enabledControl the formatter for JavaScript (and its super languages) files.
Type: Boolean
javascript.formatter.indentSize
Section titled javascript.formatter.indentSizeThe size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
Type: Integer
javascript.formatter.indentStyle
Section titled javascript.formatter.indentStyleThe indent style applied to JavaScript (and its super languages) files.
javascript.formatter.indentWidth
Section titled javascript.formatter.indentWidthThe size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
Type: Integer
javascript.formatter.jsxQuoteStyle
Section titled javascript.formatter.jsxQuoteStyleThe type of quotes used in JSX. Defaults to double.
javascript.formatter.lineEnding
Section titled javascript.formatter.lineEndingThe type of line ending applied to JavaScript (and its super languages) files.
javascript.formatter.lineWidth
Section titled javascript.formatter.lineWidthWhat’s the max width of a line applied to JavaScript (and its super languages) files. Defaults to 80.
Validated value for the line_width
formatter options
The allowed range of values is 1..=320
javascript.formatter.quoteProperties
Section titled javascript.formatter.quotePropertiesWhen properties in objects are quoted. Defaults to asNeeded.
javascript.formatter.quoteStyle
Section titled javascript.formatter.quoteStyleThe type of quotes used in JavaScript code. Defaults to double.
javascript.formatter.semicolons
Section titled javascript.formatter.semicolonsWhether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI.
javascript.formatter.trailingComma
Section titled javascript.formatter.trailingCommaPrint trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to “all”.
Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
javascript.formatter.trailingCommas
Section titled javascript.formatter.trailingCommasPrint trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to “all”.
Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
javascript.globals
Section titled javascript.globalsA list of global bindings that should be ignored by the analyzers
If defined here, they should not emit diagnostics.
javascript.jsxRuntime
Section titled javascript.jsxRuntimeIndicates the type of runtime or transformation used for interpreting JSX.
Indicates the type of runtime or transformation used for interpreting JSX.
javascript.linter
Section titled javascript.linterLinter options
Linter options specific to the JavaScript linter
javascript.linter.enabled
Section titled javascript.linter.enabledControl the linter for JavaScript (and its super languages) files.
Type: Boolean
javascript.parser
Section titled javascript.parserParsing options
Options that changes how the JavaScript parser behaves
javascript.parser.unsafeParameterDecoratorsEnabled
Section titled javascript.parser.unsafeParameterDecoratorsEnabledIt enables the experimental and unsafe parsing of parameter decorators
These decorators belong to an old proposal, and they are subject to change.
Type: Boolean
Specific configuration for the Json language
Options applied to JSON files
json.formatter
Section titled json.formatterFormatting options
json.formatter.enabled
Section titled json.formatter.enabledControl the formatter for JSON (and its super languages) files.
Type: Boolean
json.formatter.indentSize
Section titled json.formatter.indentSizeThe size of the indentation applied to JSON (and its super languages) files. Default to 2.
Type: Integer
json.formatter.indentStyle
Section titled json.formatter.indentStyleThe indent style applied to JSON (and its super languages) files.
json.formatter.indentWidth
Section titled json.formatter.indentWidthThe size of the indentation applied to JSON (and its super languages) files. Default to 2.
Type: Integer
json.formatter.lineEnding
Section titled json.formatter.lineEndingThe type of line ending applied to JSON (and its super languages) files.
json.formatter.lineWidth
Section titled json.formatter.lineWidthWhat’s the max width of a line applied to JSON (and its super languages) files. Defaults to 80.
Validated value for the line_width
formatter options
The allowed range of values is 1..=320
json.formatter.trailingCommas
Section titled json.formatter.trailingCommasPrint trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to “none”.
json.linter
Section titled json.linterLinting options
Linter options specific to the JSON linter
json.linter.enabled
Section titled json.linter.enabledControl the linter for JSON (and its super languages) files.
Type: Boolean
json.parser
Section titled json.parserParsing options
Options that changes how the JSON parser behaves
json.parser.allowComments
Section titled json.parser.allowCommentsAllow parsing comments in .json
files
Type: Boolean
json.parser.allowTrailingCommas
Section titled json.parser.allowTrailingCommasAllow parsing trailing commas in .json
files
Type: Boolean
linter
Section titled linterThe configuration for the linter
linter.enabled
Section titled linter.enabledif false
, it disables the feature and the linter won’t be executed. true
by default
Type: Boolean
linter.ignore
Section titled linter.ignoreA list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
linter.include
Section titled linter.includeA list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
linter.rules
Section titled linter.rulesList of rules
A list of rules that belong to this group
linter.rules.a11y.all
Section titled linter.rules.a11y.allIt enables ALL rules for this group.
Type: Boolean
linter.rules.a11y.noAccessKey
Section titled linter.rules.a11y.noAccessKeyEnforce that the accessKey attribute is not used on any HTML element.
linter.rules.a11y.noAccessKey.fix
Section titled linter.rules.a11y.noAccessKey.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noAccessKey.level
Section titled linter.rules.a11y.noAccessKey.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noAccessKey.options
Section titled linter.rules.a11y.noAccessKey.optionsRule’s options
linter.rules.a11y.noAriaHiddenOnFocusable
Section titled linter.rules.a11y.noAriaHiddenOnFocusableEnforce that aria-hidden=“true” is not set on focusable elements.
linter.rules.a11y.noAriaHiddenOnFocusable.fix
Section titled linter.rules.a11y.noAriaHiddenOnFocusable.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noAriaHiddenOnFocusable.level
Section titled linter.rules.a11y.noAriaHiddenOnFocusable.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noAriaHiddenOnFocusable.options
Section titled linter.rules.a11y.noAriaHiddenOnFocusable.optionsRule’s options
linter.rules.a11y.noAriaUnsupportedElements
Section titled linter.rules.a11y.noAriaUnsupportedElementsEnforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
linter.rules.a11y.noAriaUnsupportedElements.fix
Section titled linter.rules.a11y.noAriaUnsupportedElements.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noAriaUnsupportedElements.level
Section titled linter.rules.a11y.noAriaUnsupportedElements.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noAriaUnsupportedElements.options
Section titled linter.rules.a11y.noAriaUnsupportedElements.optionsRule’s options
linter.rules.a11y.noAutofocus
Section titled linter.rules.a11y.noAutofocusEnforce that autoFocus prop is not used on elements.
linter.rules.a11y.noAutofocus.fix
Section titled linter.rules.a11y.noAutofocus.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noAutofocus.level
Section titled linter.rules.a11y.noAutofocus.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noAutofocus.options
Section titled linter.rules.a11y.noAutofocus.optionsRule’s options
linter.rules.a11y.noBlankTarget
Section titled linter.rules.a11y.noBlankTargetDisallow target=“_blank” attribute without rel=“noreferrer”
linter.rules.a11y.noBlankTarget.fix
Section titled linter.rules.a11y.noBlankTarget.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noBlankTarget.level
Section titled linter.rules.a11y.noBlankTarget.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noBlankTarget.options
Section titled linter.rules.a11y.noBlankTarget.optionsRule’s options
linter.rules.a11y.noDistractingElements
Section titled linter.rules.a11y.noDistractingElementsEnforces that no distracting elements are used.
linter.rules.a11y.noDistractingElements.fix
Section titled linter.rules.a11y.noDistractingElements.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noDistractingElements.level
Section titled linter.rules.a11y.noDistractingElements.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noDistractingElements.options
Section titled linter.rules.a11y.noDistractingElements.optionsRule’s options
linter.rules.a11y.noHeaderScope
Section titled linter.rules.a11y.noHeaderScopeThe scope prop should be used only on <th> elements.
linter.rules.a11y.noHeaderScope.fix
Section titled linter.rules.a11y.noHeaderScope.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noHeaderScope.level
Section titled linter.rules.a11y.noHeaderScope.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noHeaderScope.options
Section titled linter.rules.a11y.noHeaderScope.optionsRule’s options
linter.rules.a11y.noInteractiveElementToNoninteractiveRole
Section titled linter.rules.a11y.noInteractiveElementToNoninteractiveRoleEnforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
linter.rules.a11y.noInteractiveElementToNoninteractiveRole.fix
Section titled linter.rules.a11y.noInteractiveElementToNoninteractiveRole.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noInteractiveElementToNoninteractiveRole.level
Section titled linter.rules.a11y.noInteractiveElementToNoninteractiveRole.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noInteractiveElementToNoninteractiveRole.options
Section titled linter.rules.a11y.noInteractiveElementToNoninteractiveRole.optionsRule’s options
linter.rules.a11y.noNoninteractiveElementToInteractiveRole
Section titled linter.rules.a11y.noNoninteractiveElementToInteractiveRoleEnforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
linter.rules.a11y.noNoninteractiveElementToInteractiveRole.fix
Section titled linter.rules.a11y.noNoninteractiveElementToInteractiveRole.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noNoninteractiveElementToInteractiveRole.level
Section titled linter.rules.a11y.noNoninteractiveElementToInteractiveRole.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noNoninteractiveElementToInteractiveRole.options
Section titled linter.rules.a11y.noNoninteractiveElementToInteractiveRole.optionsRule’s options
linter.rules.a11y.noNoninteractiveTabindex
Section titled linter.rules.a11y.noNoninteractiveTabindexEnforce that tabIndex is not assigned to non-interactive HTML elements.
linter.rules.a11y.noNoninteractiveTabindex.fix
Section titled linter.rules.a11y.noNoninteractiveTabindex.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noNoninteractiveTabindex.level
Section titled linter.rules.a11y.noNoninteractiveTabindex.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noNoninteractiveTabindex.options
Section titled linter.rules.a11y.noNoninteractiveTabindex.optionsRule’s options
linter.rules.a11y.noPositiveTabindex
Section titled linter.rules.a11y.noPositiveTabindexPrevent the usage of positive integers on tabIndex property
linter.rules.a11y.noPositiveTabindex.fix
Section titled linter.rules.a11y.noPositiveTabindex.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noPositiveTabindex.level
Section titled linter.rules.a11y.noPositiveTabindex.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noPositiveTabindex.options
Section titled linter.rules.a11y.noPositiveTabindex.optionsRule’s options
linter.rules.a11y.noRedundantAlt
Section titled linter.rules.a11y.noRedundantAltEnforce img alt prop does not contain the word “image”, “picture”, or “photo”.
linter.rules.a11y.noRedundantAlt.level
Section titled linter.rules.a11y.noRedundantAlt.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noRedundantAlt.options
Section titled linter.rules.a11y.noRedundantAlt.optionsRule’s options
linter.rules.a11y.noRedundantRoles
Section titled linter.rules.a11y.noRedundantRolesEnforce explicit role property is not the same as implicit/default role property on an element.
linter.rules.a11y.noRedundantRoles.fix
Section titled linter.rules.a11y.noRedundantRoles.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.noRedundantRoles.level
Section titled linter.rules.a11y.noRedundantRoles.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noRedundantRoles.options
Section titled linter.rules.a11y.noRedundantRoles.optionsRule’s options
linter.rules.a11y.noSvgWithoutTitle
Section titled linter.rules.a11y.noSvgWithoutTitleEnforces the usage of the title element for the svg element.
linter.rules.a11y.noSvgWithoutTitle.level
Section titled linter.rules.a11y.noSvgWithoutTitle.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.noSvgWithoutTitle.options
Section titled linter.rules.a11y.noSvgWithoutTitle.optionsRule’s options
linter.rules.a11y.recommended
Section titled linter.rules.a11y.recommendedIt enables the recommended rules for this group
Type: Boolean
linter.rules.a11y.useAltText
Section titled linter.rules.a11y.useAltTextEnforce that all elements that require alternative text have meaningful information to relay back to the end user.
linter.rules.a11y.useAltText.level
Section titled linter.rules.a11y.useAltText.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useAltText.options
Section titled linter.rules.a11y.useAltText.optionsRule’s options
linter.rules.a11y.useAnchorContent
Section titled linter.rules.a11y.useAnchorContentEnforce that anchors have content and that the content is accessible to screen readers.
linter.rules.a11y.useAnchorContent.fix
Section titled linter.rules.a11y.useAnchorContent.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.useAnchorContent.level
Section titled linter.rules.a11y.useAnchorContent.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useAnchorContent.options
Section titled linter.rules.a11y.useAnchorContent.optionsRule’s options
linter.rules.a11y.useAriaActivedescendantWithTabindex
Section titled linter.rules.a11y.useAriaActivedescendantWithTabindexEnforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
linter.rules.a11y.useAriaActivedescendantWithTabindex.fix
Section titled linter.rules.a11y.useAriaActivedescendantWithTabindex.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.useAriaActivedescendantWithTabindex.level
Section titled linter.rules.a11y.useAriaActivedescendantWithTabindex.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useAriaActivedescendantWithTabindex.options
Section titled linter.rules.a11y.useAriaActivedescendantWithTabindex.optionsRule’s options
linter.rules.a11y.useAriaPropsForRole
Section titled linter.rules.a11y.useAriaPropsForRoleEnforce that elements with ARIA roles must have all required ARIA attributes for that role.
linter.rules.a11y.useAriaPropsForRole.level
Section titled linter.rules.a11y.useAriaPropsForRole.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useAriaPropsForRole.options
Section titled linter.rules.a11y.useAriaPropsForRole.optionsRule’s options
linter.rules.a11y.useButtonType
Section titled linter.rules.a11y.useButtonTypeEnforces the usage of the attribute type for the element button
linter.rules.a11y.useButtonType.level
Section titled linter.rules.a11y.useButtonType.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useButtonType.options
Section titled linter.rules.a11y.useButtonType.optionsRule’s options
linter.rules.a11y.useHeadingContent
Section titled linter.rules.a11y.useHeadingContentEnforce 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.
linter.rules.a11y.useHeadingContent.level
Section titled linter.rules.a11y.useHeadingContent.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useHeadingContent.options
Section titled linter.rules.a11y.useHeadingContent.optionsRule’s options
linter.rules.a11y.useHtmlLang
Section titled linter.rules.a11y.useHtmlLangEnforce that html element has lang attribute.
linter.rules.a11y.useHtmlLang.level
Section titled linter.rules.a11y.useHtmlLang.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useHtmlLang.options
Section titled linter.rules.a11y.useHtmlLang.optionsRule’s options
linter.rules.a11y.useIframeTitle
Section titled linter.rules.a11y.useIframeTitleEnforces the usage of the attribute title for the element iframe.
linter.rules.a11y.useIframeTitle.level
Section titled linter.rules.a11y.useIframeTitle.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useIframeTitle.options
Section titled linter.rules.a11y.useIframeTitle.optionsRule’s options
linter.rules.a11y.useKeyWithClickEvents
Section titled linter.rules.a11y.useKeyWithClickEventsEnforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress.
linter.rules.a11y.useKeyWithClickEvents.level
Section titled linter.rules.a11y.useKeyWithClickEvents.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useKeyWithClickEvents.options
Section titled linter.rules.a11y.useKeyWithClickEvents.optionsRule’s options
linter.rules.a11y.useKeyWithMouseEvents
Section titled linter.rules.a11y.useKeyWithMouseEventsEnforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur.
linter.rules.a11y.useKeyWithMouseEvents.level
Section titled linter.rules.a11y.useKeyWithMouseEvents.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useKeyWithMouseEvents.options
Section titled linter.rules.a11y.useKeyWithMouseEvents.optionsRule’s options
linter.rules.a11y.useMediaCaption
Section titled linter.rules.a11y.useMediaCaptionEnforces that audio and video elements must have a track for captions.
linter.rules.a11y.useMediaCaption.level
Section titled linter.rules.a11y.useMediaCaption.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useMediaCaption.options
Section titled linter.rules.a11y.useMediaCaption.optionsRule’s options
linter.rules.a11y.useValidAnchor
Section titled linter.rules.a11y.useValidAnchorEnforce that all anchors are valid, and they are navigable elements.
linter.rules.a11y.useValidAnchor.level
Section titled linter.rules.a11y.useValidAnchor.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useValidAnchor.options
Section titled linter.rules.a11y.useValidAnchor.optionsRule’s options
linter.rules.a11y.useValidAriaProps
Section titled linter.rules.a11y.useValidAriaPropsEnsures that ARIA properties aria-* are all valid.
linter.rules.a11y.useValidAriaProps.fix
Section titled linter.rules.a11y.useValidAriaProps.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.useValidAriaProps.level
Section titled linter.rules.a11y.useValidAriaProps.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useValidAriaProps.options
Section titled linter.rules.a11y.useValidAriaProps.optionsRule’s options
linter.rules.a11y.useValidAriaRole
Section titled linter.rules.a11y.useValidAriaRoleElements with ARIA roles must use a valid, non-abstract ARIA role.
linter.rules.a11y.useValidAriaRole.fix
Section titled linter.rules.a11y.useValidAriaRole.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.a11y.useValidAriaRole.level
Section titled linter.rules.a11y.useValidAriaRole.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useValidAriaRole.options
Section titled linter.rules.a11y.useValidAriaRole.optionsRule’s options
linter.rules.a11y.useValidAriaValues
Section titled linter.rules.a11y.useValidAriaValuesEnforce that ARIA state and property values are valid.
linter.rules.a11y.useValidAriaValues.level
Section titled linter.rules.a11y.useValidAriaValues.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useValidAriaValues.options
Section titled linter.rules.a11y.useValidAriaValues.optionsRule’s options
linter.rules.a11y.useValidLang
Section titled linter.rules.a11y.useValidLangEnsure that the attribute passed to the lang attribute is a correct ISO language and/or country.
linter.rules.a11y.useValidLang.level
Section titled linter.rules.a11y.useValidLang.levelThe severity of the emitted diagnostics by the rule
linter.rules.a11y.useValidLang.options
Section titled linter.rules.a11y.useValidLang.optionsRule’s options
linter.rules.all
Section titled linter.rules.allIt enables ALL rules. The rules that belong to nursery
won’t be enabled.
Type: Boolean
A list of rules that belong to this group
linter.rules.complexity.all
Section titled linter.rules.complexity.allIt enables ALL rules for this group.
Type: Boolean
linter.rules.complexity.noBannedTypes
Section titled linter.rules.complexity.noBannedTypesDisallow primitive type aliases and misleading types.
linter.rules.complexity.noBannedTypes.fix
Section titled linter.rules.complexity.noBannedTypes.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noBannedTypes.level
Section titled linter.rules.complexity.noBannedTypes.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noBannedTypes.options
Section titled linter.rules.complexity.noBannedTypes.optionsRule’s options
linter.rules.complexity.noEmptyTypeParameters
Section titled linter.rules.complexity.noEmptyTypeParametersDisallow empty type parameters in type aliases and interfaces.
linter.rules.complexity.noEmptyTypeParameters.level
Section titled linter.rules.complexity.noEmptyTypeParameters.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noEmptyTypeParameters.options
Section titled linter.rules.complexity.noEmptyTypeParameters.optionsRule’s options
linter.rules.complexity.noExcessiveCognitiveComplexity
Section titled linter.rules.complexity.noExcessiveCognitiveComplexityDisallow functions that exceed a given Cognitive Complexity score.
linter.rules.complexity.noExcessiveCognitiveComplexity.level
Section titled linter.rules.complexity.noExcessiveCognitiveComplexity.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noExcessiveCognitiveComplexity.options
Section titled linter.rules.complexity.noExcessiveCognitiveComplexity.optionsRule’s options
linter.rules.complexity.noExcessiveNestedTestSuites
Section titled linter.rules.complexity.noExcessiveNestedTestSuitesThis rule enforces a maximum depth to nested describe() in test files.
linter.rules.complexity.noExcessiveNestedTestSuites.level
Section titled linter.rules.complexity.noExcessiveNestedTestSuites.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noExcessiveNestedTestSuites.options
Section titled linter.rules.complexity.noExcessiveNestedTestSuites.optionsRule’s options
linter.rules.complexity.noExtraBooleanCast
Section titled linter.rules.complexity.noExtraBooleanCastDisallow unnecessary boolean casts
linter.rules.complexity.noExtraBooleanCast.fix
Section titled linter.rules.complexity.noExtraBooleanCast.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noExtraBooleanCast.level
Section titled linter.rules.complexity.noExtraBooleanCast.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noExtraBooleanCast.options
Section titled linter.rules.complexity.noExtraBooleanCast.optionsRule’s options
linter.rules.complexity.noForEach
Section titled linter.rules.complexity.noForEachPrefer for…of statement instead of Array.forEach.
linter.rules.complexity.noForEach.level
Section titled linter.rules.complexity.noForEach.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noForEach.options
Section titled linter.rules.complexity.noForEach.optionsRule’s options
linter.rules.complexity.noMultipleSpacesInRegularExpressionLiterals
Section titled linter.rules.complexity.noMultipleSpacesInRegularExpressionLiteralsDisallow unclear usage of consecutive space characters in regular expression literals
linter.rules.complexity.noMultipleSpacesInRegularExpressionLiterals.fix
Section titled linter.rules.complexity.noMultipleSpacesInRegularExpressionLiterals.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noMultipleSpacesInRegularExpressionLiterals.level
Section titled linter.rules.complexity.noMultipleSpacesInRegularExpressionLiterals.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noMultipleSpacesInRegularExpressionLiterals.options
Section titled linter.rules.complexity.noMultipleSpacesInRegularExpressionLiterals.optionsRule’s options
linter.rules.complexity.noStaticOnlyClass
Section titled linter.rules.complexity.noStaticOnlyClassThis rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
linter.rules.complexity.noStaticOnlyClass.level
Section titled linter.rules.complexity.noStaticOnlyClass.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noStaticOnlyClass.options
Section titled linter.rules.complexity.noStaticOnlyClass.optionsRule’s options
linter.rules.complexity.noThisInStatic
Section titled linter.rules.complexity.noThisInStaticDisallow this and super in static contexts.
linter.rules.complexity.noThisInStatic.fix
Section titled linter.rules.complexity.noThisInStatic.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noThisInStatic.level
Section titled linter.rules.complexity.noThisInStatic.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noThisInStatic.options
Section titled linter.rules.complexity.noThisInStatic.optionsRule’s options
linter.rules.complexity.noUselessCatch
Section titled linter.rules.complexity.noUselessCatchDisallow unnecessary catch clauses.
linter.rules.complexity.noUselessCatch.level
Section titled linter.rules.complexity.noUselessCatch.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessCatch.options
Section titled linter.rules.complexity.noUselessCatch.optionsRule’s options
linter.rules.complexity.noUselessConstructor
Section titled linter.rules.complexity.noUselessConstructorDisallow unnecessary constructors.
linter.rules.complexity.noUselessConstructor.fix
Section titled linter.rules.complexity.noUselessConstructor.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessConstructor.level
Section titled linter.rules.complexity.noUselessConstructor.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessConstructor.options
Section titled linter.rules.complexity.noUselessConstructor.optionsRule’s options
linter.rules.complexity.noUselessEmptyExport
Section titled linter.rules.complexity.noUselessEmptyExportDisallow empty exports that don’t change anything in a module file.
linter.rules.complexity.noUselessEmptyExport.fix
Section titled linter.rules.complexity.noUselessEmptyExport.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessEmptyExport.level
Section titled linter.rules.complexity.noUselessEmptyExport.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessEmptyExport.options
Section titled linter.rules.complexity.noUselessEmptyExport.optionsRule’s options
linter.rules.complexity.noUselessFragments
Section titled linter.rules.complexity.noUselessFragmentsDisallow unnecessary fragments
linter.rules.complexity.noUselessFragments.fix
Section titled linter.rules.complexity.noUselessFragments.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessFragments.level
Section titled linter.rules.complexity.noUselessFragments.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessFragments.options
Section titled linter.rules.complexity.noUselessFragments.optionsRule’s options
linter.rules.complexity.noUselessLabel
Section titled linter.rules.complexity.noUselessLabelDisallow unnecessary labels.
linter.rules.complexity.noUselessLabel.fix
Section titled linter.rules.complexity.noUselessLabel.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessLabel.level
Section titled linter.rules.complexity.noUselessLabel.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessLabel.options
Section titled linter.rules.complexity.noUselessLabel.optionsRule’s options
linter.rules.complexity.noUselessLoneBlockStatements
Section titled linter.rules.complexity.noUselessLoneBlockStatementsDisallow unnecessary nested block statements.
linter.rules.complexity.noUselessLoneBlockStatements.fix
Section titled linter.rules.complexity.noUselessLoneBlockStatements.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessLoneBlockStatements.level
Section titled linter.rules.complexity.noUselessLoneBlockStatements.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessLoneBlockStatements.options
Section titled linter.rules.complexity.noUselessLoneBlockStatements.optionsRule’s options
linter.rules.complexity.noUselessRename
Section titled linter.rules.complexity.noUselessRenameDisallow renaming import, export, and destructured assignments to the same name.
linter.rules.complexity.noUselessRename.fix
Section titled linter.rules.complexity.noUselessRename.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessRename.level
Section titled linter.rules.complexity.noUselessRename.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessRename.options
Section titled linter.rules.complexity.noUselessRename.optionsRule’s options
linter.rules.complexity.noUselessSwitchCase
Section titled linter.rules.complexity.noUselessSwitchCaseDisallow useless case in switch statements.
linter.rules.complexity.noUselessSwitchCase.fix
Section titled linter.rules.complexity.noUselessSwitchCase.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessSwitchCase.level
Section titled linter.rules.complexity.noUselessSwitchCase.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessSwitchCase.options
Section titled linter.rules.complexity.noUselessSwitchCase.optionsRule’s options
linter.rules.complexity.noUselessTernary
Section titled linter.rules.complexity.noUselessTernaryDisallow ternary operators when simpler alternatives exist.
linter.rules.complexity.noUselessTernary.fix
Section titled linter.rules.complexity.noUselessTernary.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessTernary.level
Section titled linter.rules.complexity.noUselessTernary.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessTernary.options
Section titled linter.rules.complexity.noUselessTernary.optionsRule’s options
linter.rules.complexity.noUselessThisAlias
Section titled linter.rules.complexity.noUselessThisAliasDisallow useless this aliasing.
linter.rules.complexity.noUselessThisAlias.fix
Section titled linter.rules.complexity.noUselessThisAlias.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessThisAlias.level
Section titled linter.rules.complexity.noUselessThisAlias.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessThisAlias.options
Section titled linter.rules.complexity.noUselessThisAlias.optionsRule’s options
linter.rules.complexity.noUselessTypeConstraint
Section titled linter.rules.complexity.noUselessTypeConstraintDisallow using any or unknown as type constraint.
linter.rules.complexity.noUselessTypeConstraint.fix
Section titled linter.rules.complexity.noUselessTypeConstraint.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.noUselessTypeConstraint.level
Section titled linter.rules.complexity.noUselessTypeConstraint.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noUselessTypeConstraint.options
Section titled linter.rules.complexity.noUselessTypeConstraint.optionsRule’s options
linter.rules.complexity.noVoid
Section titled linter.rules.complexity.noVoidDisallow the use of void operators, which is not a familiar operator.
linter.rules.complexity.noVoid.level
Section titled linter.rules.complexity.noVoid.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noVoid.options
Section titled linter.rules.complexity.noVoid.optionsRule’s options
linter.rules.complexity.noWith
Section titled linter.rules.complexity.noWithDisallow with statements in non-strict contexts.
linter.rules.complexity.noWith.level
Section titled linter.rules.complexity.noWith.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.noWith.options
Section titled linter.rules.complexity.noWith.optionsRule’s options
linter.rules.complexity.recommended
Section titled linter.rules.complexity.recommendedIt enables the recommended rules for this group
Type: Boolean
linter.rules.complexity.useArrowFunction
Section titled linter.rules.complexity.useArrowFunctionUse arrow functions over function expressions.
linter.rules.complexity.useArrowFunction.fix
Section titled linter.rules.complexity.useArrowFunction.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.useArrowFunction.level
Section titled linter.rules.complexity.useArrowFunction.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.useArrowFunction.options
Section titled linter.rules.complexity.useArrowFunction.optionsRule’s options
linter.rules.complexity.useFlatMap
Section titled linter.rules.complexity.useFlatMapPromotes the use of .flatMap() when map().flat() are used together.
linter.rules.complexity.useFlatMap.fix
Section titled linter.rules.complexity.useFlatMap.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.useFlatMap.level
Section titled linter.rules.complexity.useFlatMap.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.useFlatMap.options
Section titled linter.rules.complexity.useFlatMap.optionsRule’s options
linter.rules.complexity.useLiteralKeys
Section titled linter.rules.complexity.useLiteralKeysEnforce the usage of a literal access to properties over computed property access.
linter.rules.complexity.useLiteralKeys.fix
Section titled linter.rules.complexity.useLiteralKeys.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.useLiteralKeys.level
Section titled linter.rules.complexity.useLiteralKeys.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.useLiteralKeys.options
Section titled linter.rules.complexity.useLiteralKeys.optionsRule’s options
linter.rules.complexity.useOptionalChain
Section titled linter.rules.complexity.useOptionalChainEnforce using concise optional chain instead of chained logical expressions.
linter.rules.complexity.useOptionalChain.fix
Section titled linter.rules.complexity.useOptionalChain.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.useOptionalChain.level
Section titled linter.rules.complexity.useOptionalChain.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.useOptionalChain.options
Section titled linter.rules.complexity.useOptionalChain.optionsRule’s options
linter.rules.complexity.useRegexLiterals
Section titled linter.rules.complexity.useRegexLiteralsEnforce the use of the regular expression literals instead of the RegExp constructor if possible.
linter.rules.complexity.useRegexLiterals.fix
Section titled linter.rules.complexity.useRegexLiterals.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.useRegexLiterals.level
Section titled linter.rules.complexity.useRegexLiterals.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.useRegexLiterals.options
Section titled linter.rules.complexity.useRegexLiterals.optionsRule’s options
linter.rules.complexity.useSimpleNumberKeys
Section titled linter.rules.complexity.useSimpleNumberKeysDisallow number literal object member names which are not base10 or uses underscore as separator
linter.rules.complexity.useSimpleNumberKeys.fix
Section titled linter.rules.complexity.useSimpleNumberKeys.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.useSimpleNumberKeys.level
Section titled linter.rules.complexity.useSimpleNumberKeys.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.useSimpleNumberKeys.options
Section titled linter.rules.complexity.useSimpleNumberKeys.optionsRule’s options
linter.rules.complexity.useSimplifiedLogicExpression
Section titled linter.rules.complexity.useSimplifiedLogicExpressionDiscard redundant terms from logical expressions.
linter.rules.complexity.useSimplifiedLogicExpression.fix
Section titled linter.rules.complexity.useSimplifiedLogicExpression.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.complexity.useSimplifiedLogicExpression.level
Section titled linter.rules.complexity.useSimplifiedLogicExpression.levelThe severity of the emitted diagnostics by the rule
linter.rules.complexity.useSimplifiedLogicExpression.options
Section titled linter.rules.complexity.useSimplifiedLogicExpression.optionsRule’s options
A list of rules that belong to this group
linter.rules.correctness.all
Section titled linter.rules.correctness.allIt enables ALL rules for this group.
Type: Boolean
linter.rules.correctness.noChildrenProp
Section titled linter.rules.correctness.noChildrenPropPrevent passing of children as props.
linter.rules.correctness.noChildrenProp.level
Section titled linter.rules.correctness.noChildrenProp.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noChildrenProp.options
Section titled linter.rules.correctness.noChildrenProp.optionsRule’s options
linter.rules.correctness.noConstAssign
Section titled linter.rules.correctness.noConstAssignPrevents from having const variables being re-assigned.
linter.rules.correctness.noConstAssign.fix
Section titled linter.rules.correctness.noConstAssign.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noConstAssign.level
Section titled linter.rules.correctness.noConstAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noConstAssign.options
Section titled linter.rules.correctness.noConstAssign.optionsRule’s options
linter.rules.correctness.noConstantCondition
Section titled linter.rules.correctness.noConstantConditionDisallow constant expressions in conditions
linter.rules.correctness.noConstantCondition.level
Section titled linter.rules.correctness.noConstantCondition.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noConstantCondition.options
Section titled linter.rules.correctness.noConstantCondition.optionsRule’s options
linter.rules.correctness.noConstantMathMinMaxClamp
Section titled linter.rules.correctness.noConstantMathMinMaxClampDisallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
linter.rules.correctness.noConstantMathMinMaxClamp.fix
Section titled linter.rules.correctness.noConstantMathMinMaxClamp.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noConstantMathMinMaxClamp.level
Section titled linter.rules.correctness.noConstantMathMinMaxClamp.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noConstantMathMinMaxClamp.options
Section titled linter.rules.correctness.noConstantMathMinMaxClamp.optionsRule’s options
linter.rules.correctness.noConstructorReturn
Section titled linter.rules.correctness.noConstructorReturnDisallow returning a value from a constructor.
linter.rules.correctness.noConstructorReturn.level
Section titled linter.rules.correctness.noConstructorReturn.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noConstructorReturn.options
Section titled linter.rules.correctness.noConstructorReturn.optionsRule’s options
linter.rules.correctness.noEmptyCharacterClassInRegex
Section titled linter.rules.correctness.noEmptyCharacterClassInRegexDisallow empty character classes in regular expression literals.
linter.rules.correctness.noEmptyCharacterClassInRegex.level
Section titled linter.rules.correctness.noEmptyCharacterClassInRegex.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noEmptyCharacterClassInRegex.options
Section titled linter.rules.correctness.noEmptyCharacterClassInRegex.optionsRule’s options
linter.rules.correctness.noEmptyPattern
Section titled linter.rules.correctness.noEmptyPatternDisallows empty destructuring patterns.
linter.rules.correctness.noEmptyPattern.level
Section titled linter.rules.correctness.noEmptyPattern.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noEmptyPattern.options
Section titled linter.rules.correctness.noEmptyPattern.optionsRule’s options
linter.rules.correctness.noFlatMapIdentity
Section titled linter.rules.correctness.noFlatMapIdentityDisallow to use unnecessary callback on flatMap.
linter.rules.correctness.noFlatMapIdentity.fix
Section titled linter.rules.correctness.noFlatMapIdentity.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noFlatMapIdentity.level
Section titled linter.rules.correctness.noFlatMapIdentity.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noFlatMapIdentity.options
Section titled linter.rules.correctness.noFlatMapIdentity.optionsRule’s options
linter.rules.correctness.noGlobalObjectCalls
Section titled linter.rules.correctness.noGlobalObjectCallsDisallow calling global object properties as functions
linter.rules.correctness.noGlobalObjectCalls.level
Section titled linter.rules.correctness.noGlobalObjectCalls.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noGlobalObjectCalls.options
Section titled linter.rules.correctness.noGlobalObjectCalls.optionsRule’s options
linter.rules.correctness.noInnerDeclarations
Section titled linter.rules.correctness.noInnerDeclarationsDisallow function and var declarations that are accessible outside their block.
linter.rules.correctness.noInnerDeclarations.level
Section titled linter.rules.correctness.noInnerDeclarations.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noInnerDeclarations.options
Section titled linter.rules.correctness.noInnerDeclarations.optionsRule’s options
linter.rules.correctness.noInvalidConstructorSuper
Section titled linter.rules.correctness.noInvalidConstructorSuperPrevents the incorrect use of super() inside classes. It also checks whether a call super() is missing from classes that extends other constructors.
linter.rules.correctness.noInvalidConstructorSuper.level
Section titled linter.rules.correctness.noInvalidConstructorSuper.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noInvalidConstructorSuper.options
Section titled linter.rules.correctness.noInvalidConstructorSuper.optionsRule’s options
linter.rules.correctness.noInvalidNewBuiltin
Section titled linter.rules.correctness.noInvalidNewBuiltinDisallow new operators with global non-constructor functions.
linter.rules.correctness.noInvalidNewBuiltin.fix
Section titled linter.rules.correctness.noInvalidNewBuiltin.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noInvalidNewBuiltin.level
Section titled linter.rules.correctness.noInvalidNewBuiltin.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noInvalidNewBuiltin.options
Section titled linter.rules.correctness.noInvalidNewBuiltin.optionsRule’s options
linter.rules.correctness.noInvalidUseBeforeDeclaration
Section titled linter.rules.correctness.noInvalidUseBeforeDeclarationDisallow the use of variables and function parameters before their declaration
linter.rules.correctness.noInvalidUseBeforeDeclaration.level
Section titled linter.rules.correctness.noInvalidUseBeforeDeclaration.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noInvalidUseBeforeDeclaration.options
Section titled linter.rules.correctness.noInvalidUseBeforeDeclaration.optionsRule’s options
linter.rules.correctness.noNewSymbol
Section titled linter.rules.correctness.noNewSymbolDisallow new operators with the Symbol object.
linter.rules.correctness.noNewSymbol.fix
Section titled linter.rules.correctness.noNewSymbol.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noNewSymbol.level
Section titled linter.rules.correctness.noNewSymbol.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noNewSymbol.options
Section titled linter.rules.correctness.noNewSymbol.optionsRule’s options
linter.rules.correctness.noNodejsModules
Section titled linter.rules.correctness.noNodejsModulesForbid the use of Node.js builtin modules.
linter.rules.correctness.noNodejsModules.level
Section titled linter.rules.correctness.noNodejsModules.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noNodejsModules.options
Section titled linter.rules.correctness.noNodejsModules.optionsRule’s options
linter.rules.correctness.noNonoctalDecimalEscape
Section titled linter.rules.correctness.noNonoctalDecimalEscapeDisallow \8 and \9 escape sequences in string literals.
linter.rules.correctness.noNonoctalDecimalEscape.fix
Section titled linter.rules.correctness.noNonoctalDecimalEscape.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noNonoctalDecimalEscape.level
Section titled linter.rules.correctness.noNonoctalDecimalEscape.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noNonoctalDecimalEscape.options
Section titled linter.rules.correctness.noNonoctalDecimalEscape.optionsRule’s options
linter.rules.correctness.noPrecisionLoss
Section titled linter.rules.correctness.noPrecisionLossDisallow literal numbers that lose precision
linter.rules.correctness.noPrecisionLoss.level
Section titled linter.rules.correctness.noPrecisionLoss.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noPrecisionLoss.options
Section titled linter.rules.correctness.noPrecisionLoss.optionsRule’s options
linter.rules.correctness.noRenderReturnValue
Section titled linter.rules.correctness.noRenderReturnValuePrevent the usage of the return value of React.render.
linter.rules.correctness.noRenderReturnValue.level
Section titled linter.rules.correctness.noRenderReturnValue.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noRenderReturnValue.options
Section titled linter.rules.correctness.noRenderReturnValue.optionsRule’s options
linter.rules.correctness.noSelfAssign
Section titled linter.rules.correctness.noSelfAssignDisallow assignments where both sides are exactly the same.
linter.rules.correctness.noSelfAssign.level
Section titled linter.rules.correctness.noSelfAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noSelfAssign.options
Section titled linter.rules.correctness.noSelfAssign.optionsRule’s options
linter.rules.correctness.noSetterReturn
Section titled linter.rules.correctness.noSetterReturnDisallow returning a value from a setter
linter.rules.correctness.noSetterReturn.level
Section titled linter.rules.correctness.noSetterReturn.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noSetterReturn.options
Section titled linter.rules.correctness.noSetterReturn.optionsRule’s options
linter.rules.correctness.noStringCaseMismatch
Section titled linter.rules.correctness.noStringCaseMismatchDisallow comparison of expressions modifying the string case with non-compliant value.
linter.rules.correctness.noStringCaseMismatch.fix
Section titled linter.rules.correctness.noStringCaseMismatch.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noStringCaseMismatch.level
Section titled linter.rules.correctness.noStringCaseMismatch.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noStringCaseMismatch.options
Section titled linter.rules.correctness.noStringCaseMismatch.optionsRule’s options
linter.rules.correctness.noSwitchDeclarations
Section titled linter.rules.correctness.noSwitchDeclarationsDisallow lexical declarations in switch clauses.
linter.rules.correctness.noSwitchDeclarations.fix
Section titled linter.rules.correctness.noSwitchDeclarations.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noSwitchDeclarations.level
Section titled linter.rules.correctness.noSwitchDeclarations.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noSwitchDeclarations.options
Section titled linter.rules.correctness.noSwitchDeclarations.optionsRule’s options
linter.rules.correctness.noUndeclaredVariables
Section titled linter.rules.correctness.noUndeclaredVariablesPrevents the usage of variables that haven’t been declared inside the document.
linter.rules.correctness.noUndeclaredVariables.level
Section titled linter.rules.correctness.noUndeclaredVariables.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUndeclaredVariables.options
Section titled linter.rules.correctness.noUndeclaredVariables.optionsRule’s options
linter.rules.correctness.noUnnecessaryContinue
Section titled linter.rules.correctness.noUnnecessaryContinueAvoid using unnecessary continue.
linter.rules.correctness.noUnnecessaryContinue.fix
Section titled linter.rules.correctness.noUnnecessaryContinue.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noUnnecessaryContinue.level
Section titled linter.rules.correctness.noUnnecessaryContinue.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUnnecessaryContinue.options
Section titled linter.rules.correctness.noUnnecessaryContinue.optionsRule’s options
linter.rules.correctness.noUnreachable
Section titled linter.rules.correctness.noUnreachableDisallow unreachable code
linter.rules.correctness.noUnreachable.level
Section titled linter.rules.correctness.noUnreachable.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUnreachable.options
Section titled linter.rules.correctness.noUnreachable.optionsRule’s options
linter.rules.correctness.noUnreachableSuper
Section titled linter.rules.correctness.noUnreachableSuperEnsures 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
linter.rules.correctness.noUnreachableSuper.level
Section titled linter.rules.correctness.noUnreachableSuper.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUnreachableSuper.options
Section titled linter.rules.correctness.noUnreachableSuper.optionsRule’s options
linter.rules.correctness.noUnsafeFinally
Section titled linter.rules.correctness.noUnsafeFinallyDisallow control flow statements in finally blocks.
linter.rules.correctness.noUnsafeFinally.level
Section titled linter.rules.correctness.noUnsafeFinally.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUnsafeFinally.options
Section titled linter.rules.correctness.noUnsafeFinally.optionsRule’s options
linter.rules.correctness.noUnsafeOptionalChaining
Section titled linter.rules.correctness.noUnsafeOptionalChainingDisallow the use of optional chaining in contexts where the undefined value is not allowed.
linter.rules.correctness.noUnsafeOptionalChaining.level
Section titled linter.rules.correctness.noUnsafeOptionalChaining.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUnsafeOptionalChaining.options
Section titled linter.rules.correctness.noUnsafeOptionalChaining.optionsRule’s options
linter.rules.correctness.noUnusedImports
Section titled linter.rules.correctness.noUnusedImportsDisallow unused imports.
linter.rules.correctness.noUnusedImports.fix
Section titled linter.rules.correctness.noUnusedImports.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noUnusedImports.level
Section titled linter.rules.correctness.noUnusedImports.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUnusedImports.options
Section titled linter.rules.correctness.noUnusedImports.optionsRule’s options
linter.rules.correctness.noUnusedLabels
Section titled linter.rules.correctness.noUnusedLabelsDisallow unused labels.
linter.rules.correctness.noUnusedLabels.fix
Section titled linter.rules.correctness.noUnusedLabels.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noUnusedLabels.level
Section titled linter.rules.correctness.noUnusedLabels.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUnusedLabels.options
Section titled linter.rules.correctness.noUnusedLabels.optionsRule’s options
linter.rules.correctness.noUnusedPrivateClassMembers
Section titled linter.rules.correctness.noUnusedPrivateClassMembersDisallow unused private class members
linter.rules.correctness.noUnusedPrivateClassMembers.fix
Section titled linter.rules.correctness.noUnusedPrivateClassMembers.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noUnusedPrivateClassMembers.level
Section titled linter.rules.correctness.noUnusedPrivateClassMembers.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUnusedPrivateClassMembers.options
Section titled linter.rules.correctness.noUnusedPrivateClassMembers.optionsRule’s options
linter.rules.correctness.noUnusedVariables
Section titled linter.rules.correctness.noUnusedVariablesDisallow unused variables.
linter.rules.correctness.noUnusedVariables.fix
Section titled linter.rules.correctness.noUnusedVariables.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noUnusedVariables.level
Section titled linter.rules.correctness.noUnusedVariables.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noUnusedVariables.options
Section titled linter.rules.correctness.noUnusedVariables.optionsRule’s options
linter.rules.correctness.noVoidElementsWithChildren
Section titled linter.rules.correctness.noVoidElementsWithChildrenThis rules prevents void elements (AKA self-closing elements) from having children.
linter.rules.correctness.noVoidElementsWithChildren.fix
Section titled linter.rules.correctness.noVoidElementsWithChildren.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.noVoidElementsWithChildren.level
Section titled linter.rules.correctness.noVoidElementsWithChildren.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noVoidElementsWithChildren.options
Section titled linter.rules.correctness.noVoidElementsWithChildren.optionsRule’s options
linter.rules.correctness.noVoidTypeReturn
Section titled linter.rules.correctness.noVoidTypeReturnDisallow returning a value from a function with the return type ‘void’
linter.rules.correctness.noVoidTypeReturn.level
Section titled linter.rules.correctness.noVoidTypeReturn.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.noVoidTypeReturn.options
Section titled linter.rules.correctness.noVoidTypeReturn.optionsRule’s options
linter.rules.correctness.recommended
Section titled linter.rules.correctness.recommendedIt enables the recommended rules for this group
Type: Boolean
linter.rules.correctness.useArrayLiterals
Section titled linter.rules.correctness.useArrayLiteralsDisallow Array constructors.
linter.rules.correctness.useArrayLiterals.fix
Section titled linter.rules.correctness.useArrayLiterals.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.useArrayLiterals.level
Section titled linter.rules.correctness.useArrayLiterals.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.useArrayLiterals.options
Section titled linter.rules.correctness.useArrayLiterals.optionsRule’s options
linter.rules.correctness.useExhaustiveDependencies
Section titled linter.rules.correctness.useExhaustiveDependenciesEnforce all dependencies are correctly specified in a React hook.
linter.rules.correctness.useExhaustiveDependencies.level
Section titled linter.rules.correctness.useExhaustiveDependencies.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.useExhaustiveDependencies.options
Section titled linter.rules.correctness.useExhaustiveDependencies.optionsRule’s options
linter.rules.correctness.useHookAtTopLevel
Section titled linter.rules.correctness.useHookAtTopLevelEnforce that all React hooks are being called from the Top Level component functions.
linter.rules.correctness.useHookAtTopLevel.level
Section titled linter.rules.correctness.useHookAtTopLevel.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.useHookAtTopLevel.options
Section titled linter.rules.correctness.useHookAtTopLevel.optionsRule’s options
linter.rules.correctness.useIsNan
Section titled linter.rules.correctness.useIsNanRequire calls to isNaN() when checking for NaN.
linter.rules.correctness.useIsNan.fix
Section titled linter.rules.correctness.useIsNan.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.correctness.useIsNan.level
Section titled linter.rules.correctness.useIsNan.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.useIsNan.options
Section titled linter.rules.correctness.useIsNan.optionsRule’s options
linter.rules.correctness.useJsxKeyInIterable
Section titled linter.rules.correctness.useJsxKeyInIterableDisallow missing key props in iterators/collection literals.
linter.rules.correctness.useJsxKeyInIterable.level
Section titled linter.rules.correctness.useJsxKeyInIterable.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.useJsxKeyInIterable.options
Section titled linter.rules.correctness.useJsxKeyInIterable.optionsRule’s options
linter.rules.correctness.useValidForDirection
Section titled linter.rules.correctness.useValidForDirectionEnforce “for” loop update clause moving the counter in the right direction.
linter.rules.correctness.useValidForDirection.level
Section titled linter.rules.correctness.useValidForDirection.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.useValidForDirection.options
Section titled linter.rules.correctness.useValidForDirection.optionsRule’s options
linter.rules.correctness.useYield
Section titled linter.rules.correctness.useYieldRequire generator functions to contain yield.
linter.rules.correctness.useYield.level
Section titled linter.rules.correctness.useYield.levelThe severity of the emitted diagnostics by the rule
linter.rules.correctness.useYield.options
Section titled linter.rules.correctness.useYield.optionsRule’s options
A list of rules that belong to this group
linter.rules.nursery.all
Section titled linter.rules.nursery.allIt enables ALL rules for this group.
Type: Boolean
linter.rules.nursery.noConsole
Section titled linter.rules.nursery.noConsoleDisallow the use of console.
linter.rules.nursery.noConsole.fix
Section titled linter.rules.nursery.noConsole.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.noConsole.level
Section titled linter.rules.nursery.noConsole.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noConsole.options
Section titled linter.rules.nursery.noConsole.optionsRule’s options
linter.rules.nursery.noDoneCallback
Section titled linter.rules.nursery.noDoneCallbackDisallow using a callback in asynchronous tests and hooks.
linter.rules.nursery.noDoneCallback.level
Section titled linter.rules.nursery.noDoneCallback.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noDoneCallback.options
Section titled linter.rules.nursery.noDoneCallback.optionsRule’s options
linter.rules.nursery.noDuplicateAtImportRules
Section titled linter.rules.nursery.noDuplicateAtImportRulesDisallow duplicate @import rules.
linter.rules.nursery.noDuplicateAtImportRules.level
Section titled linter.rules.nursery.noDuplicateAtImportRules.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noDuplicateAtImportRules.options
Section titled linter.rules.nursery.noDuplicateAtImportRules.optionsRule’s options
linter.rules.nursery.noDuplicateElseIf
Section titled linter.rules.nursery.noDuplicateElseIfDisallow duplicate conditions in if-else-if chains
linter.rules.nursery.noDuplicateElseIf.level
Section titled linter.rules.nursery.noDuplicateElseIf.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noDuplicateElseIf.options
Section titled linter.rules.nursery.noDuplicateElseIf.optionsRule’s options
linter.rules.nursery.noDuplicateFontNames
Section titled linter.rules.nursery.noDuplicateFontNamesDisallow duplicate names within font families.
linter.rules.nursery.noDuplicateFontNames.level
Section titled linter.rules.nursery.noDuplicateFontNames.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noDuplicateFontNames.options
Section titled linter.rules.nursery.noDuplicateFontNames.optionsRule’s options
linter.rules.nursery.noDuplicateJsonKeys
Section titled linter.rules.nursery.noDuplicateJsonKeysDisallow two keys with the same name inside a JSON object.
linter.rules.nursery.noDuplicateJsonKeys.level
Section titled linter.rules.nursery.noDuplicateJsonKeys.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noDuplicateJsonKeys.options
Section titled linter.rules.nursery.noDuplicateJsonKeys.optionsRule’s options
linter.rules.nursery.noDuplicateSelectorsKeyframeBlock
Section titled linter.rules.nursery.noDuplicateSelectorsKeyframeBlockDisallow duplicate selectors within keyframe blocks.
linter.rules.nursery.noDuplicateSelectorsKeyframeBlock.level
Section titled linter.rules.nursery.noDuplicateSelectorsKeyframeBlock.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noDuplicateSelectorsKeyframeBlock.options
Section titled linter.rules.nursery.noDuplicateSelectorsKeyframeBlock.optionsRule’s options
linter.rules.nursery.noEmptyBlock
Section titled linter.rules.nursery.noEmptyBlockDisallow CSS empty blocks.
linter.rules.nursery.noEmptyBlock.level
Section titled linter.rules.nursery.noEmptyBlock.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noEmptyBlock.options
Section titled linter.rules.nursery.noEmptyBlock.optionsRule’s options
linter.rules.nursery.noEvolvingTypes
Section titled linter.rules.nursery.noEvolvingTypesDisallow variables from evolving into any type through reassignments.
linter.rules.nursery.noEvolvingTypes.level
Section titled linter.rules.nursery.noEvolvingTypes.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noEvolvingTypes.options
Section titled linter.rules.nursery.noEvolvingTypes.optionsRule’s options
linter.rules.nursery.noImportantInKeyframe
Section titled linter.rules.nursery.noImportantInKeyframeDisallow invalid !important within keyframe declarations
linter.rules.nursery.noImportantInKeyframe.level
Section titled linter.rules.nursery.noImportantInKeyframe.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noImportantInKeyframe.options
Section titled linter.rules.nursery.noImportantInKeyframe.optionsRule’s options
linter.rules.nursery.noInvalidPositionAtImportRule
Section titled linter.rules.nursery.noInvalidPositionAtImportRuleDisallow the use of @import at-rules in invalid positions.
linter.rules.nursery.noInvalidPositionAtImportRule.level
Section titled linter.rules.nursery.noInvalidPositionAtImportRule.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noInvalidPositionAtImportRule.options
Section titled linter.rules.nursery.noInvalidPositionAtImportRule.optionsRule’s options
linter.rules.nursery.noLabelWithoutControl
Section titled linter.rules.nursery.noLabelWithoutControlEnforce that a label element or component has a text label and an associated input.
linter.rules.nursery.noLabelWithoutControl.level
Section titled linter.rules.nursery.noLabelWithoutControl.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noLabelWithoutControl.options
Section titled linter.rules.nursery.noLabelWithoutControl.optionsRule’s options
linter.rules.nursery.noMisplacedAssertion
Section titled linter.rules.nursery.noMisplacedAssertionChecks that the assertion function, for example expect, is placed inside an it() function call.
linter.rules.nursery.noMisplacedAssertion.level
Section titled linter.rules.nursery.noMisplacedAssertion.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noMisplacedAssertion.options
Section titled linter.rules.nursery.noMisplacedAssertion.optionsRule’s options
linter.rules.nursery.noReactSpecificProps
Section titled linter.rules.nursery.noReactSpecificPropsPrevents React-specific JSX properties from being used.
linter.rules.nursery.noReactSpecificProps.fix
Section titled linter.rules.nursery.noReactSpecificProps.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.noReactSpecificProps.level
Section titled linter.rules.nursery.noReactSpecificProps.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noReactSpecificProps.options
Section titled linter.rules.nursery.noReactSpecificProps.optionsRule’s options
linter.rules.nursery.noRestrictedImports
Section titled linter.rules.nursery.noRestrictedImportsDisallow specified modules when loaded by import or require.
linter.rules.nursery.noRestrictedImports.level
Section titled linter.rules.nursery.noRestrictedImports.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noRestrictedImports.options
Section titled linter.rules.nursery.noRestrictedImports.optionsRule’s options
linter.rules.nursery.noUndeclaredDependencies
Section titled linter.rules.nursery.noUndeclaredDependenciesDisallow the use of dependencies that aren’t specified in the package.json.
linter.rules.nursery.noUndeclaredDependencies.level
Section titled linter.rules.nursery.noUndeclaredDependencies.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUndeclaredDependencies.options
Section titled linter.rules.nursery.noUndeclaredDependencies.optionsRule’s options
linter.rules.nursery.noUnknownFunction
Section titled linter.rules.nursery.noUnknownFunctionDisallow unknown CSS value functions.
linter.rules.nursery.noUnknownFunction.level
Section titled linter.rules.nursery.noUnknownFunction.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUnknownFunction.options
Section titled linter.rules.nursery.noUnknownFunction.optionsRule’s options
linter.rules.nursery.noUnknownMediaFeatureName
Section titled linter.rules.nursery.noUnknownMediaFeatureNameDisallow unknown media feature names.
linter.rules.nursery.noUnknownMediaFeatureName.level
Section titled linter.rules.nursery.noUnknownMediaFeatureName.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUnknownMediaFeatureName.options
Section titled linter.rules.nursery.noUnknownMediaFeatureName.optionsRule’s options
linter.rules.nursery.noUnknownProperty
Section titled linter.rules.nursery.noUnknownPropertyDisallow unknown properties.
linter.rules.nursery.noUnknownProperty.level
Section titled linter.rules.nursery.noUnknownProperty.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUnknownProperty.options
Section titled linter.rules.nursery.noUnknownProperty.optionsRule’s options
linter.rules.nursery.noUnknownSelectorPseudoElement
Section titled linter.rules.nursery.noUnknownSelectorPseudoElementDisallow unknown pseudo-element selectors.
linter.rules.nursery.noUnknownSelectorPseudoElement.level
Section titled linter.rules.nursery.noUnknownSelectorPseudoElement.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUnknownSelectorPseudoElement.options
Section titled linter.rules.nursery.noUnknownSelectorPseudoElement.optionsRule’s options
linter.rules.nursery.noUnknownUnit
Section titled linter.rules.nursery.noUnknownUnitDisallow unknown CSS units.
linter.rules.nursery.noUnknownUnit.level
Section titled linter.rules.nursery.noUnknownUnit.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUnknownUnit.options
Section titled linter.rules.nursery.noUnknownUnit.optionsRule’s options
linter.rules.nursery.noUnmatchableAnbSelector
Section titled linter.rules.nursery.noUnmatchableAnbSelectorDisallow unmatchable An+B selectors.
linter.rules.nursery.noUnmatchableAnbSelector.level
Section titled linter.rules.nursery.noUnmatchableAnbSelector.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUnmatchableAnbSelector.options
Section titled linter.rules.nursery.noUnmatchableAnbSelector.optionsRule’s options
linter.rules.nursery.noUnusedFunctionParameters
Section titled linter.rules.nursery.noUnusedFunctionParametersDisallow unused function parameters.
linter.rules.nursery.noUnusedFunctionParameters.fix
Section titled linter.rules.nursery.noUnusedFunctionParameters.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.noUnusedFunctionParameters.level
Section titled linter.rules.nursery.noUnusedFunctionParameters.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUnusedFunctionParameters.options
Section titled linter.rules.nursery.noUnusedFunctionParameters.optionsRule’s options
linter.rules.nursery.noUselessStringConcat
Section titled linter.rules.nursery.noUselessStringConcatDisallow unnecessary concatenation of string or template literals.
linter.rules.nursery.noUselessStringConcat.fix
Section titled linter.rules.nursery.noUselessStringConcat.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.noUselessStringConcat.level
Section titled linter.rules.nursery.noUselessStringConcat.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUselessStringConcat.options
Section titled linter.rules.nursery.noUselessStringConcat.optionsRule’s options
linter.rules.nursery.noUselessUndefinedInitialization
Section titled linter.rules.nursery.noUselessUndefinedInitializationDisallow initializing variables to undefined.
linter.rules.nursery.noUselessUndefinedInitialization.fix
Section titled linter.rules.nursery.noUselessUndefinedInitialization.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.noUselessUndefinedInitialization.level
Section titled linter.rules.nursery.noUselessUndefinedInitialization.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noUselessUndefinedInitialization.options
Section titled linter.rules.nursery.noUselessUndefinedInitialization.optionsRule’s options
linter.rules.nursery.noYodaExpression
Section titled linter.rules.nursery.noYodaExpressionDisallow the use of yoda expressions.
linter.rules.nursery.noYodaExpression.fix
Section titled linter.rules.nursery.noYodaExpression.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.noYodaExpression.level
Section titled linter.rules.nursery.noYodaExpression.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.noYodaExpression.options
Section titled linter.rules.nursery.noYodaExpression.optionsRule’s options
linter.rules.nursery.recommended
Section titled linter.rules.nursery.recommendedIt enables the recommended rules for this group
Type: Boolean
linter.rules.nursery.useAdjacentOverloadSignatures
Section titled linter.rules.nursery.useAdjacentOverloadSignaturesDisallow the use of overload signatures that are not next to each other.
linter.rules.nursery.useAdjacentOverloadSignatures.level
Section titled linter.rules.nursery.useAdjacentOverloadSignatures.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useAdjacentOverloadSignatures.options
Section titled linter.rules.nursery.useAdjacentOverloadSignatures.optionsRule’s options
linter.rules.nursery.useConsistentBuiltinInstantiation
Section titled linter.rules.nursery.useConsistentBuiltinInstantiationEnforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
linter.rules.nursery.useConsistentBuiltinInstantiation.fix
Section titled linter.rules.nursery.useConsistentBuiltinInstantiation.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.useConsistentBuiltinInstantiation.level
Section titled linter.rules.nursery.useConsistentBuiltinInstantiation.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useConsistentBuiltinInstantiation.options
Section titled linter.rules.nursery.useConsistentBuiltinInstantiation.optionsRule’s options
linter.rules.nursery.useDateNow
Section titled linter.rules.nursery.useDateNowUse Date.now() to get the number of milliseconds since the Unix Epoch.
linter.rules.nursery.useDateNow.fix
Section titled linter.rules.nursery.useDateNow.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.useDateNow.level
Section titled linter.rules.nursery.useDateNow.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useDateNow.options
Section titled linter.rules.nursery.useDateNow.optionsRule’s options
linter.rules.nursery.useDefaultSwitchClause
Section titled linter.rules.nursery.useDefaultSwitchClauseRequire the default clause in switch statements.
linter.rules.nursery.useDefaultSwitchClause.level
Section titled linter.rules.nursery.useDefaultSwitchClause.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useDefaultSwitchClause.options
Section titled linter.rules.nursery.useDefaultSwitchClause.optionsRule’s options
linter.rules.nursery.useErrorMessage
Section titled linter.rules.nursery.useErrorMessageEnforce passing a message value when creating a built-in error.
linter.rules.nursery.useErrorMessage.level
Section titled linter.rules.nursery.useErrorMessage.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useErrorMessage.options
Section titled linter.rules.nursery.useErrorMessage.optionsRule’s options
linter.rules.nursery.useExplicitLengthCheck
Section titled linter.rules.nursery.useExplicitLengthCheckEnforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
linter.rules.nursery.useExplicitLengthCheck.fix
Section titled linter.rules.nursery.useExplicitLengthCheck.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.useExplicitLengthCheck.level
Section titled linter.rules.nursery.useExplicitLengthCheck.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useExplicitLengthCheck.options
Section titled linter.rules.nursery.useExplicitLengthCheck.optionsRule’s options
linter.rules.nursery.useFocusableInteractive
Section titled linter.rules.nursery.useFocusableInteractiveElements with an interactive role and interaction handlers must be focusable.
linter.rules.nursery.useFocusableInteractive.level
Section titled linter.rules.nursery.useFocusableInteractive.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useFocusableInteractive.options
Section titled linter.rules.nursery.useFocusableInteractive.optionsRule’s options
linter.rules.nursery.useGenericFontNames
Section titled linter.rules.nursery.useGenericFontNamesDisallow a missing generic family keyword within font families.
linter.rules.nursery.useGenericFontNames.level
Section titled linter.rules.nursery.useGenericFontNames.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useGenericFontNames.options
Section titled linter.rules.nursery.useGenericFontNames.optionsRule’s options
linter.rules.nursery.useImportExtensions
Section titled linter.rules.nursery.useImportExtensionsEnforce file extensions for relative imports.
linter.rules.nursery.useImportExtensions.fix
Section titled linter.rules.nursery.useImportExtensions.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.useImportExtensions.level
Section titled linter.rules.nursery.useImportExtensions.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useImportExtensions.options
Section titled linter.rules.nursery.useImportExtensions.optionsRule’s options
linter.rules.nursery.useImportRestrictions
Section titled linter.rules.nursery.useImportRestrictionsDisallows package private imports.
linter.rules.nursery.useImportRestrictions.level
Section titled linter.rules.nursery.useImportRestrictions.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useImportRestrictions.options
Section titled linter.rules.nursery.useImportRestrictions.optionsRule’s options
linter.rules.nursery.useNumberToFixedDigitsArgument
Section titled linter.rules.nursery.useNumberToFixedDigitsArgumentEnforce using the digits argument with Number#toFixed().
linter.rules.nursery.useNumberToFixedDigitsArgument.fix
Section titled linter.rules.nursery.useNumberToFixedDigitsArgument.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.useNumberToFixedDigitsArgument.level
Section titled linter.rules.nursery.useNumberToFixedDigitsArgument.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useNumberToFixedDigitsArgument.options
Section titled linter.rules.nursery.useNumberToFixedDigitsArgument.optionsRule’s options
linter.rules.nursery.useSemanticElements
Section titled linter.rules.nursery.useSemanticElementsIt detects the use of role attributes in JSX elements and suggests using semantic elements instead.
linter.rules.nursery.useSemanticElements.level
Section titled linter.rules.nursery.useSemanticElements.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useSemanticElements.options
Section titled linter.rules.nursery.useSemanticElements.optionsRule’s options
linter.rules.nursery.useSortedClasses
Section titled linter.rules.nursery.useSortedClassesEnforce the sorting of CSS utility classes.
linter.rules.nursery.useSortedClasses.fix
Section titled linter.rules.nursery.useSortedClasses.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.useSortedClasses.level
Section titled linter.rules.nursery.useSortedClasses.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useSortedClasses.options
Section titled linter.rules.nursery.useSortedClasses.optionsRule’s options
linter.rules.nursery.useThrowNewError
Section titled linter.rules.nursery.useThrowNewErrorRequire new when throwing an error.
linter.rules.nursery.useThrowNewError.fix
Section titled linter.rules.nursery.useThrowNewError.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.nursery.useThrowNewError.level
Section titled linter.rules.nursery.useThrowNewError.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useThrowNewError.options
Section titled linter.rules.nursery.useThrowNewError.optionsRule’s options
linter.rules.nursery.useThrowOnlyError
Section titled linter.rules.nursery.useThrowOnlyErrorDisallow throwing non-Error values.
linter.rules.nursery.useThrowOnlyError.level
Section titled linter.rules.nursery.useThrowOnlyError.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useThrowOnlyError.options
Section titled linter.rules.nursery.useThrowOnlyError.optionsRule’s options
linter.rules.nursery.useTopLevelRegex
Section titled linter.rules.nursery.useTopLevelRegexRequire regex literals to be declared at the top level.
linter.rules.nursery.useTopLevelRegex.level
Section titled linter.rules.nursery.useTopLevelRegex.levelThe severity of the emitted diagnostics by the rule
linter.rules.nursery.useTopLevelRegex.options
Section titled linter.rules.nursery.useTopLevelRegex.optionsRule’s options
A list of rules that belong to this group
linter.rules.performance.all
Section titled linter.rules.performance.allIt enables ALL rules for this group.
Type: Boolean
linter.rules.performance.noAccumulatingSpread
Section titled linter.rules.performance.noAccumulatingSpreadDisallow the use of spread (…) syntax on accumulators.
linter.rules.performance.noAccumulatingSpread.level
Section titled linter.rules.performance.noAccumulatingSpread.levelThe severity of the emitted diagnostics by the rule
linter.rules.performance.noAccumulatingSpread.options
Section titled linter.rules.performance.noAccumulatingSpread.optionsRule’s options
linter.rules.performance.noBarrelFile
Section titled linter.rules.performance.noBarrelFileDisallow the use of barrel file.
linter.rules.performance.noBarrelFile.level
Section titled linter.rules.performance.noBarrelFile.levelThe severity of the emitted diagnostics by the rule
linter.rules.performance.noBarrelFile.options
Section titled linter.rules.performance.noBarrelFile.optionsRule’s options
linter.rules.performance.noDelete
Section titled linter.rules.performance.noDeleteDisallow the use of the delete operator.
linter.rules.performance.noDelete.fix
Section titled linter.rules.performance.noDelete.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.performance.noDelete.level
Section titled linter.rules.performance.noDelete.levelThe severity of the emitted diagnostics by the rule
linter.rules.performance.noDelete.options
Section titled linter.rules.performance.noDelete.optionsRule’s options
linter.rules.performance.noReExportAll
Section titled linter.rules.performance.noReExportAllAvoid re-export all.
linter.rules.performance.noReExportAll.level
Section titled linter.rules.performance.noReExportAll.levelThe severity of the emitted diagnostics by the rule
linter.rules.performance.noReExportAll.options
Section titled linter.rules.performance.noReExportAll.optionsRule’s options
linter.rules.performance.recommended
Section titled linter.rules.performance.recommendedIt enables the recommended rules for this group
Type: Boolean
linter.rules.recommended
Section titled linter.rules.recommendedIt enables the lint rules recommended by Biome. true
by default.
Type: Boolean
A list of rules that belong to this group
linter.rules.security.all
Section titled linter.rules.security.allIt enables ALL rules for this group.
Type: Boolean
linter.rules.security.noDangerouslySetInnerHtml
Section titled linter.rules.security.noDangerouslySetInnerHtmlPrevent the usage of dangerous JSX props
linter.rules.security.noDangerouslySetInnerHtml.level
Section titled linter.rules.security.noDangerouslySetInnerHtml.levelThe severity of the emitted diagnostics by the rule
linter.rules.security.noDangerouslySetInnerHtml.options
Section titled linter.rules.security.noDangerouslySetInnerHtml.optionsRule’s options
linter.rules.security.noDangerouslySetInnerHtmlWithChildren
Section titled linter.rules.security.noDangerouslySetInnerHtmlWithChildrenReport when a DOM element or a component uses both children and dangerouslySetInnerHTML prop.
linter.rules.security.noDangerouslySetInnerHtmlWithChildren.level
Section titled linter.rules.security.noDangerouslySetInnerHtmlWithChildren.levelThe severity of the emitted diagnostics by the rule
linter.rules.security.noDangerouslySetInnerHtmlWithChildren.options
Section titled linter.rules.security.noDangerouslySetInnerHtmlWithChildren.optionsRule’s options
linter.rules.security.noGlobalEval
Section titled linter.rules.security.noGlobalEvalDisallow the use of global eval().
linter.rules.security.noGlobalEval.level
Section titled linter.rules.security.noGlobalEval.levelThe severity of the emitted diagnostics by the rule
linter.rules.security.noGlobalEval.options
Section titled linter.rules.security.noGlobalEval.optionsRule’s options
linter.rules.security.recommended
Section titled linter.rules.security.recommendedIt enables the recommended rules for this group
Type: Boolean
A list of rules that belong to this group
linter.rules.style.all
Section titled linter.rules.style.allIt enables ALL rules for this group.
Type: Boolean
linter.rules.style.noArguments
Section titled linter.rules.style.noArgumentsDisallow the use of arguments.
linter.rules.style.noArguments.level
Section titled linter.rules.style.noArguments.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noArguments.options
Section titled linter.rules.style.noArguments.optionsRule’s options
linter.rules.style.noCommaOperator
Section titled linter.rules.style.noCommaOperatorDisallow comma operator.
linter.rules.style.noCommaOperator.level
Section titled linter.rules.style.noCommaOperator.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noCommaOperator.options
Section titled linter.rules.style.noCommaOperator.optionsRule’s options
linter.rules.style.noDefaultExport
Section titled linter.rules.style.noDefaultExportDisallow default exports.
linter.rules.style.noDefaultExport.level
Section titled linter.rules.style.noDefaultExport.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noDefaultExport.options
Section titled linter.rules.style.noDefaultExport.optionsRule’s options
linter.rules.style.noImplicitBoolean
Section titled linter.rules.style.noImplicitBooleanDisallow implicit true values on JSX boolean attributes
linter.rules.style.noImplicitBoolean.fix
Section titled linter.rules.style.noImplicitBoolean.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.noImplicitBoolean.level
Section titled linter.rules.style.noImplicitBoolean.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noImplicitBoolean.options
Section titled linter.rules.style.noImplicitBoolean.optionsRule’s options
linter.rules.style.noInferrableTypes
Section titled linter.rules.style.noInferrableTypesDisallow type annotations for variables, parameters, and class properties initialized with a literal expression.
linter.rules.style.noInferrableTypes.fix
Section titled linter.rules.style.noInferrableTypes.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.noInferrableTypes.level
Section titled linter.rules.style.noInferrableTypes.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noInferrableTypes.options
Section titled linter.rules.style.noInferrableTypes.optionsRule’s options
linter.rules.style.noNamespace
Section titled linter.rules.style.noNamespaceDisallow the use of TypeScript’s namespaces.
linter.rules.style.noNamespace.level
Section titled linter.rules.style.noNamespace.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noNamespace.options
Section titled linter.rules.style.noNamespace.optionsRule’s options
linter.rules.style.noNamespaceImport
Section titled linter.rules.style.noNamespaceImportDisallow the use of namespace imports.
linter.rules.style.noNamespaceImport.level
Section titled linter.rules.style.noNamespaceImport.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noNamespaceImport.options
Section titled linter.rules.style.noNamespaceImport.optionsRule’s options
linter.rules.style.noNegationElse
Section titled linter.rules.style.noNegationElseDisallow negation in the condition of an if statement if it has an else clause.
linter.rules.style.noNegationElse.fix
Section titled linter.rules.style.noNegationElse.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.noNegationElse.level
Section titled linter.rules.style.noNegationElse.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noNegationElse.options
Section titled linter.rules.style.noNegationElse.optionsRule’s options
linter.rules.style.noNonNullAssertion
Section titled linter.rules.style.noNonNullAssertionDisallow non-null assertions using the ! postfix operator.
linter.rules.style.noNonNullAssertion.fix
Section titled linter.rules.style.noNonNullAssertion.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.noNonNullAssertion.level
Section titled linter.rules.style.noNonNullAssertion.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noNonNullAssertion.options
Section titled linter.rules.style.noNonNullAssertion.optionsRule’s options
linter.rules.style.noParameterAssign
Section titled linter.rules.style.noParameterAssignDisallow reassigning function parameters.
linter.rules.style.noParameterAssign.level
Section titled linter.rules.style.noParameterAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noParameterAssign.options
Section titled linter.rules.style.noParameterAssign.optionsRule’s options
linter.rules.style.noParameterProperties
Section titled linter.rules.style.noParameterPropertiesDisallow the use of parameter properties in class constructors.
linter.rules.style.noParameterProperties.level
Section titled linter.rules.style.noParameterProperties.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noParameterProperties.options
Section titled linter.rules.style.noParameterProperties.optionsRule’s options
linter.rules.style.noRestrictedGlobals
Section titled linter.rules.style.noRestrictedGlobalsThis rule allows you to specify global variable names that you don’t want to use in your application.
linter.rules.style.noRestrictedGlobals.level
Section titled linter.rules.style.noRestrictedGlobals.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noRestrictedGlobals.options
Section titled linter.rules.style.noRestrictedGlobals.optionsRule’s options
linter.rules.style.noShoutyConstants
Section titled linter.rules.style.noShoutyConstantsDisallow the use of constants which its value is the upper-case version of its name.
linter.rules.style.noShoutyConstants.fix
Section titled linter.rules.style.noShoutyConstants.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.noShoutyConstants.level
Section titled linter.rules.style.noShoutyConstants.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noShoutyConstants.options
Section titled linter.rules.style.noShoutyConstants.optionsRule’s options
linter.rules.style.noUnusedTemplateLiteral
Section titled linter.rules.style.noUnusedTemplateLiteralDisallow template literals if interpolation and special-character handling are not needed
linter.rules.style.noUnusedTemplateLiteral.fix
Section titled linter.rules.style.noUnusedTemplateLiteral.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.noUnusedTemplateLiteral.level
Section titled linter.rules.style.noUnusedTemplateLiteral.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noUnusedTemplateLiteral.options
Section titled linter.rules.style.noUnusedTemplateLiteral.optionsRule’s options
linter.rules.style.noUselessElse
Section titled linter.rules.style.noUselessElseDisallow else block when the if block breaks early.
linter.rules.style.noUselessElse.fix
Section titled linter.rules.style.noUselessElse.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.noUselessElse.level
Section titled linter.rules.style.noUselessElse.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noUselessElse.options
Section titled linter.rules.style.noUselessElse.optionsRule’s options
linter.rules.style.noVar
Section titled linter.rules.style.noVarDisallow the use of var
linter.rules.style.noVar.fix
Section titled linter.rules.style.noVar.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.noVar.level
Section titled linter.rules.style.noVar.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.noVar.options
Section titled linter.rules.style.noVar.optionsRule’s options
linter.rules.style.recommended
Section titled linter.rules.style.recommendedIt enables the recommended rules for this group
Type: Boolean
linter.rules.style.useAsConstAssertion
Section titled linter.rules.style.useAsConstAssertionEnforce the use of as const over literal type and type annotation.
linter.rules.style.useAsConstAssertion.fix
Section titled linter.rules.style.useAsConstAssertion.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useAsConstAssertion.level
Section titled linter.rules.style.useAsConstAssertion.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useAsConstAssertion.options
Section titled linter.rules.style.useAsConstAssertion.optionsRule’s options
linter.rules.style.useBlockStatements
Section titled linter.rules.style.useBlockStatementsRequires following curly brace conventions.
linter.rules.style.useBlockStatements.fix
Section titled linter.rules.style.useBlockStatements.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useBlockStatements.level
Section titled linter.rules.style.useBlockStatements.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useBlockStatements.options
Section titled linter.rules.style.useBlockStatements.optionsRule’s options
linter.rules.style.useCollapsedElseIf
Section titled linter.rules.style.useCollapsedElseIfEnforce using else if instead of nested if in else clauses.
linter.rules.style.useCollapsedElseIf.fix
Section titled linter.rules.style.useCollapsedElseIf.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useCollapsedElseIf.level
Section titled linter.rules.style.useCollapsedElseIf.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useCollapsedElseIf.options
Section titled linter.rules.style.useCollapsedElseIf.optionsRule’s options
linter.rules.style.useConsistentArrayType
Section titled linter.rules.style.useConsistentArrayTypeRequire consistently using either T[] or Array<T>
linter.rules.style.useConsistentArrayType.fix
Section titled linter.rules.style.useConsistentArrayType.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useConsistentArrayType.level
Section titled linter.rules.style.useConsistentArrayType.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useConsistentArrayType.options
Section titled linter.rules.style.useConsistentArrayType.optionsRule’s options
linter.rules.style.useConst
Section titled linter.rules.style.useConstRequire const declarations for variables that are only assigned once.
linter.rules.style.useConst.fix
Section titled linter.rules.style.useConst.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useConst.level
Section titled linter.rules.style.useConst.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useConst.options
Section titled linter.rules.style.useConst.optionsRule’s options
linter.rules.style.useDefaultParameterLast
Section titled linter.rules.style.useDefaultParameterLastEnforce default function parameters and optional function parameters to be last.
linter.rules.style.useDefaultParameterLast.fix
Section titled linter.rules.style.useDefaultParameterLast.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useDefaultParameterLast.level
Section titled linter.rules.style.useDefaultParameterLast.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useDefaultParameterLast.options
Section titled linter.rules.style.useDefaultParameterLast.optionsRule’s options
linter.rules.style.useEnumInitializers
Section titled linter.rules.style.useEnumInitializersRequire that each enum member value be explicitly initialized.
linter.rules.style.useEnumInitializers.fix
Section titled linter.rules.style.useEnumInitializers.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useEnumInitializers.level
Section titled linter.rules.style.useEnumInitializers.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useEnumInitializers.options
Section titled linter.rules.style.useEnumInitializers.optionsRule’s options
linter.rules.style.useExponentiationOperator
Section titled linter.rules.style.useExponentiationOperatorDisallow the use of Math.pow in favor of the ** operator.
linter.rules.style.useExponentiationOperator.fix
Section titled linter.rules.style.useExponentiationOperator.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useExponentiationOperator.level
Section titled linter.rules.style.useExponentiationOperator.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useExponentiationOperator.options
Section titled linter.rules.style.useExponentiationOperator.optionsRule’s options
linter.rules.style.useExportType
Section titled linter.rules.style.useExportTypePromotes the use of export type for types.
linter.rules.style.useExportType.fix
Section titled linter.rules.style.useExportType.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useExportType.level
Section titled linter.rules.style.useExportType.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useExportType.options
Section titled linter.rules.style.useExportType.optionsRule’s options
linter.rules.style.useFilenamingConvention
Section titled linter.rules.style.useFilenamingConventionEnforce naming conventions for JavaScript and TypeScript filenames.
linter.rules.style.useFilenamingConvention.level
Section titled linter.rules.style.useFilenamingConvention.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useFilenamingConvention.options
Section titled linter.rules.style.useFilenamingConvention.optionsRule’s options
linter.rules.style.useForOf
Section titled linter.rules.style.useForOfThis rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.
linter.rules.style.useForOf.level
Section titled linter.rules.style.useForOf.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useForOf.options
Section titled linter.rules.style.useForOf.optionsRule’s options
linter.rules.style.useFragmentSyntax
Section titled linter.rules.style.useFragmentSyntaxThis rule enforces the use of <>…</> over <Fragment>…</Fragment>.
linter.rules.style.useFragmentSyntax.fix
Section titled linter.rules.style.useFragmentSyntax.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useFragmentSyntax.level
Section titled linter.rules.style.useFragmentSyntax.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useFragmentSyntax.options
Section titled linter.rules.style.useFragmentSyntax.optionsRule’s options
linter.rules.style.useImportType
Section titled linter.rules.style.useImportTypePromotes the use of import type for types.
linter.rules.style.useImportType.fix
Section titled linter.rules.style.useImportType.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useImportType.level
Section titled linter.rules.style.useImportType.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useImportType.options
Section titled linter.rules.style.useImportType.optionsRule’s options
linter.rules.style.useLiteralEnumMembers
Section titled linter.rules.style.useLiteralEnumMembersRequire all enum members to be literal values.
linter.rules.style.useLiteralEnumMembers.level
Section titled linter.rules.style.useLiteralEnumMembers.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useLiteralEnumMembers.options
Section titled linter.rules.style.useLiteralEnumMembers.optionsRule’s options
linter.rules.style.useNamingConvention
Section titled linter.rules.style.useNamingConventionEnforce naming conventions for everything across a codebase.
linter.rules.style.useNamingConvention.fix
Section titled linter.rules.style.useNamingConvention.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useNamingConvention.level
Section titled linter.rules.style.useNamingConvention.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useNamingConvention.options
Section titled linter.rules.style.useNamingConvention.optionsRule’s options
linter.rules.style.useNodeAssertStrict
Section titled linter.rules.style.useNodeAssertStrictPromotes the usage of node:assert /strict over node:assert .
linter.rules.style.useNodeAssertStrict.fix
Section titled linter.rules.style.useNodeAssertStrict.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useNodeAssertStrict.level
Section titled linter.rules.style.useNodeAssertStrict.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useNodeAssertStrict.options
Section titled linter.rules.style.useNodeAssertStrict.optionsRule’s options
linter.rules.style.useNodejsImportProtocol
Section titled linter.rules.style.useNodejsImportProtocolEnforces using the node: protocol for Node.js builtin modules.
linter.rules.style.useNodejsImportProtocol.fix
Section titled linter.rules.style.useNodejsImportProtocol.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useNodejsImportProtocol.level
Section titled linter.rules.style.useNodejsImportProtocol.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useNodejsImportProtocol.options
Section titled linter.rules.style.useNodejsImportProtocol.optionsRule’s options
linter.rules.style.useNumberNamespace
Section titled linter.rules.style.useNumberNamespaceUse the Number properties instead of global ones.
linter.rules.style.useNumberNamespace.fix
Section titled linter.rules.style.useNumberNamespace.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useNumberNamespace.level
Section titled linter.rules.style.useNumberNamespace.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useNumberNamespace.options
Section titled linter.rules.style.useNumberNamespace.optionsRule’s options
linter.rules.style.useNumericLiterals
Section titled linter.rules.style.useNumericLiteralsDisallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
linter.rules.style.useNumericLiterals.fix
Section titled linter.rules.style.useNumericLiterals.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useNumericLiterals.level
Section titled linter.rules.style.useNumericLiterals.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useNumericLiterals.options
Section titled linter.rules.style.useNumericLiterals.optionsRule’s options
linter.rules.style.useSelfClosingElements
Section titled linter.rules.style.useSelfClosingElementsPrevent extra closing tags for components without children
linter.rules.style.useSelfClosingElements.fix
Section titled linter.rules.style.useSelfClosingElements.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useSelfClosingElements.level
Section titled linter.rules.style.useSelfClosingElements.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useSelfClosingElements.options
Section titled linter.rules.style.useSelfClosingElements.optionsRule’s options
linter.rules.style.useShorthandArrayType
Section titled linter.rules.style.useShorthandArrayTypeWhen expressing array types, this rule promotes the usage of T[] shorthand instead of Array<T>.
linter.rules.style.useShorthandArrayType.fix
Section titled linter.rules.style.useShorthandArrayType.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useShorthandArrayType.level
Section titled linter.rules.style.useShorthandArrayType.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useShorthandArrayType.options
Section titled linter.rules.style.useShorthandArrayType.optionsRule’s options
linter.rules.style.useShorthandAssign
Section titled linter.rules.style.useShorthandAssignRequire assignment operator shorthand where possible.
linter.rules.style.useShorthandAssign.fix
Section titled linter.rules.style.useShorthandAssign.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useShorthandAssign.level
Section titled linter.rules.style.useShorthandAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useShorthandAssign.options
Section titled linter.rules.style.useShorthandAssign.optionsRule’s options
linter.rules.style.useShorthandFunctionType
Section titled linter.rules.style.useShorthandFunctionTypeEnforce using function types instead of object type with call signatures.
linter.rules.style.useShorthandFunctionType.fix
Section titled linter.rules.style.useShorthandFunctionType.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useShorthandFunctionType.level
Section titled linter.rules.style.useShorthandFunctionType.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useShorthandFunctionType.options
Section titled linter.rules.style.useShorthandFunctionType.optionsRule’s options
linter.rules.style.useSingleCaseStatement
Section titled linter.rules.style.useSingleCaseStatementEnforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.
linter.rules.style.useSingleCaseStatement.fix
Section titled linter.rules.style.useSingleCaseStatement.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useSingleCaseStatement.level
Section titled linter.rules.style.useSingleCaseStatement.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useSingleCaseStatement.options
Section titled linter.rules.style.useSingleCaseStatement.optionsRule’s options
linter.rules.style.useSingleVarDeclarator
Section titled linter.rules.style.useSingleVarDeclaratorDisallow multiple variable declarations in the same variable statement
linter.rules.style.useSingleVarDeclarator.fix
Section titled linter.rules.style.useSingleVarDeclarator.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useSingleVarDeclarator.level
Section titled linter.rules.style.useSingleVarDeclarator.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useSingleVarDeclarator.options
Section titled linter.rules.style.useSingleVarDeclarator.optionsRule’s options
linter.rules.style.useTemplate
Section titled linter.rules.style.useTemplatePrefer template literals over string concatenation.
linter.rules.style.useTemplate.fix
Section titled linter.rules.style.useTemplate.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useTemplate.level
Section titled linter.rules.style.useTemplate.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useTemplate.options
Section titled linter.rules.style.useTemplate.optionsRule’s options
linter.rules.style.useWhile
Section titled linter.rules.style.useWhileEnforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
linter.rules.style.useWhile.fix
Section titled linter.rules.style.useWhile.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.style.useWhile.level
Section titled linter.rules.style.useWhile.levelThe severity of the emitted diagnostics by the rule
linter.rules.style.useWhile.options
Section titled linter.rules.style.useWhile.optionsRule’s options
A list of rules that belong to this group
linter.rules.suspicious.all
Section titled linter.rules.suspicious.allIt enables ALL rules for this group.
Type: Boolean
linter.rules.suspicious.noApproximativeNumericConstant
Section titled linter.rules.suspicious.noApproximativeNumericConstantUse standard constants instead of approximated literals.
linter.rules.suspicious.noApproximativeNumericConstant.fix
Section titled linter.rules.suspicious.noApproximativeNumericConstant.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noApproximativeNumericConstant.level
Section titled linter.rules.suspicious.noApproximativeNumericConstant.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noApproximativeNumericConstant.options
Section titled linter.rules.suspicious.noApproximativeNumericConstant.optionsRule’s options
linter.rules.suspicious.noArrayIndexKey
Section titled linter.rules.suspicious.noArrayIndexKeyDiscourage the usage of Array index in keys.
linter.rules.suspicious.noArrayIndexKey.level
Section titled linter.rules.suspicious.noArrayIndexKey.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noArrayIndexKey.options
Section titled linter.rules.suspicious.noArrayIndexKey.optionsRule’s options
linter.rules.suspicious.noAssignInExpressions
Section titled linter.rules.suspicious.noAssignInExpressionsDisallow assignments in expressions.
linter.rules.suspicious.noAssignInExpressions.level
Section titled linter.rules.suspicious.noAssignInExpressions.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noAssignInExpressions.options
Section titled linter.rules.suspicious.noAssignInExpressions.optionsRule’s options
linter.rules.suspicious.noAsyncPromiseExecutor
Section titled linter.rules.suspicious.noAsyncPromiseExecutorDisallows using an async function as a Promise executor.
linter.rules.suspicious.noAsyncPromiseExecutor.level
Section titled linter.rules.suspicious.noAsyncPromiseExecutor.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noAsyncPromiseExecutor.options
Section titled linter.rules.suspicious.noAsyncPromiseExecutor.optionsRule’s options
linter.rules.suspicious.noCatchAssign
Section titled linter.rules.suspicious.noCatchAssignDisallow reassigning exceptions in catch clauses.
linter.rules.suspicious.noCatchAssign.level
Section titled linter.rules.suspicious.noCatchAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noCatchAssign.options
Section titled linter.rules.suspicious.noCatchAssign.optionsRule’s options
linter.rules.suspicious.noClassAssign
Section titled linter.rules.suspicious.noClassAssignDisallow reassigning class members.
linter.rules.suspicious.noClassAssign.level
Section titled linter.rules.suspicious.noClassAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noClassAssign.options
Section titled linter.rules.suspicious.noClassAssign.optionsRule’s options
linter.rules.suspicious.noCommentText
Section titled linter.rules.suspicious.noCommentTextPrevent comments from being inserted as text nodes
linter.rules.suspicious.noCommentText.fix
Section titled linter.rules.suspicious.noCommentText.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noCommentText.level
Section titled linter.rules.suspicious.noCommentText.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noCommentText.options
Section titled linter.rules.suspicious.noCommentText.optionsRule’s options
linter.rules.suspicious.noCompareNegZero
Section titled linter.rules.suspicious.noCompareNegZeroDisallow comparing against -0
linter.rules.suspicious.noCompareNegZero.fix
Section titled linter.rules.suspicious.noCompareNegZero.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noCompareNegZero.level
Section titled linter.rules.suspicious.noCompareNegZero.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noCompareNegZero.options
Section titled linter.rules.suspicious.noCompareNegZero.optionsRule’s options
linter.rules.suspicious.noConfusingLabels
Section titled linter.rules.suspicious.noConfusingLabelsDisallow labeled statements that are not loops.
linter.rules.suspicious.noConfusingLabels.level
Section titled linter.rules.suspicious.noConfusingLabels.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noConfusingLabels.options
Section titled linter.rules.suspicious.noConfusingLabels.optionsRule’s options
linter.rules.suspicious.noConfusingVoidType
Section titled linter.rules.suspicious.noConfusingVoidTypeDisallow void type outside of generic or return types.
linter.rules.suspicious.noConfusingVoidType.fix
Section titled linter.rules.suspicious.noConfusingVoidType.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noConfusingVoidType.level
Section titled linter.rules.suspicious.noConfusingVoidType.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noConfusingVoidType.options
Section titled linter.rules.suspicious.noConfusingVoidType.optionsRule’s options
linter.rules.suspicious.noConsoleLog
Section titled linter.rules.suspicious.noConsoleLogDisallow the use of console.log
linter.rules.suspicious.noConsoleLog.fix
Section titled linter.rules.suspicious.noConsoleLog.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noConsoleLog.level
Section titled linter.rules.suspicious.noConsoleLog.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noConsoleLog.options
Section titled linter.rules.suspicious.noConsoleLog.optionsRule’s options
linter.rules.suspicious.noConstEnum
Section titled linter.rules.suspicious.noConstEnumDisallow TypeScript const enum
linter.rules.suspicious.noConstEnum.fix
Section titled linter.rules.suspicious.noConstEnum.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noConstEnum.level
Section titled linter.rules.suspicious.noConstEnum.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noConstEnum.options
Section titled linter.rules.suspicious.noConstEnum.optionsRule’s options
linter.rules.suspicious.noControlCharactersInRegex
Section titled linter.rules.suspicious.noControlCharactersInRegexPrevents from having control characters and some escape sequences that match control characters in regular expressions.
linter.rules.suspicious.noControlCharactersInRegex.level
Section titled linter.rules.suspicious.noControlCharactersInRegex.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noControlCharactersInRegex.options
Section titled linter.rules.suspicious.noControlCharactersInRegex.optionsRule’s options
linter.rules.suspicious.noDebugger
Section titled linter.rules.suspicious.noDebuggerDisallow the use of debugger
linter.rules.suspicious.noDebugger.fix
Section titled linter.rules.suspicious.noDebugger.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noDebugger.level
Section titled linter.rules.suspicious.noDebugger.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noDebugger.options
Section titled linter.rules.suspicious.noDebugger.optionsRule’s options
linter.rules.suspicious.noDoubleEquals
Section titled linter.rules.suspicious.noDoubleEqualsRequire the use of === and !==
linter.rules.suspicious.noDoubleEquals.fix
Section titled linter.rules.suspicious.noDoubleEquals.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noDoubleEquals.level
Section titled linter.rules.suspicious.noDoubleEquals.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noDoubleEquals.options
Section titled linter.rules.suspicious.noDoubleEquals.optionsRule’s options
linter.rules.suspicious.noDuplicateCase
Section titled linter.rules.suspicious.noDuplicateCaseDisallow duplicate case labels.
linter.rules.suspicious.noDuplicateCase.level
Section titled linter.rules.suspicious.noDuplicateCase.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noDuplicateCase.options
Section titled linter.rules.suspicious.noDuplicateCase.optionsRule’s options
linter.rules.suspicious.noDuplicateClassMembers
Section titled linter.rules.suspicious.noDuplicateClassMembersDisallow duplicate class members.
linter.rules.suspicious.noDuplicateClassMembers.level
Section titled linter.rules.suspicious.noDuplicateClassMembers.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noDuplicateClassMembers.options
Section titled linter.rules.suspicious.noDuplicateClassMembers.optionsRule’s options
linter.rules.suspicious.noDuplicateJsxProps
Section titled linter.rules.suspicious.noDuplicateJsxPropsPrevents JSX properties to be assigned multiple times.
linter.rules.suspicious.noDuplicateJsxProps.level
Section titled linter.rules.suspicious.noDuplicateJsxProps.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noDuplicateJsxProps.options
Section titled linter.rules.suspicious.noDuplicateJsxProps.optionsRule’s options
linter.rules.suspicious.noDuplicateObjectKeys
Section titled linter.rules.suspicious.noDuplicateObjectKeysPrevents object literals having more than one property declaration for the same name.
linter.rules.suspicious.noDuplicateObjectKeys.fix
Section titled linter.rules.suspicious.noDuplicateObjectKeys.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noDuplicateObjectKeys.level
Section titled linter.rules.suspicious.noDuplicateObjectKeys.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noDuplicateObjectKeys.options
Section titled linter.rules.suspicious.noDuplicateObjectKeys.optionsRule’s options
linter.rules.suspicious.noDuplicateParameters
Section titled linter.rules.suspicious.noDuplicateParametersDisallow duplicate function parameter name.
linter.rules.suspicious.noDuplicateParameters.level
Section titled linter.rules.suspicious.noDuplicateParameters.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noDuplicateParameters.options
Section titled linter.rules.suspicious.noDuplicateParameters.optionsRule’s options
linter.rules.suspicious.noDuplicateTestHooks
Section titled linter.rules.suspicious.noDuplicateTestHooksA describe block should not contain duplicate hooks.
linter.rules.suspicious.noDuplicateTestHooks.level
Section titled linter.rules.suspicious.noDuplicateTestHooks.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noDuplicateTestHooks.options
Section titled linter.rules.suspicious.noDuplicateTestHooks.optionsRule’s options
linter.rules.suspicious.noEmptyBlockStatements
Section titled linter.rules.suspicious.noEmptyBlockStatementsDisallow empty block statements and static blocks.
linter.rules.suspicious.noEmptyBlockStatements.level
Section titled linter.rules.suspicious.noEmptyBlockStatements.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noEmptyBlockStatements.options
Section titled linter.rules.suspicious.noEmptyBlockStatements.optionsRule’s options
linter.rules.suspicious.noEmptyInterface
Section titled linter.rules.suspicious.noEmptyInterfaceDisallow the declaration of empty interfaces.
linter.rules.suspicious.noEmptyInterface.fix
Section titled linter.rules.suspicious.noEmptyInterface.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noEmptyInterface.level
Section titled linter.rules.suspicious.noEmptyInterface.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noEmptyInterface.options
Section titled linter.rules.suspicious.noEmptyInterface.optionsRule’s options
linter.rules.suspicious.noExplicitAny
Section titled linter.rules.suspicious.noExplicitAnyDisallow the any type usage.
linter.rules.suspicious.noExplicitAny.level
Section titled linter.rules.suspicious.noExplicitAny.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noExplicitAny.options
Section titled linter.rules.suspicious.noExplicitAny.optionsRule’s options
linter.rules.suspicious.noExportsInTest
Section titled linter.rules.suspicious.noExportsInTestDisallow using export or module.exports in files containing tests
linter.rules.suspicious.noExportsInTest.level
Section titled linter.rules.suspicious.noExportsInTest.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noExportsInTest.options
Section titled linter.rules.suspicious.noExportsInTest.optionsRule’s options
linter.rules.suspicious.noExtraNonNullAssertion
Section titled linter.rules.suspicious.noExtraNonNullAssertionPrevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
linter.rules.suspicious.noExtraNonNullAssertion.fix
Section titled linter.rules.suspicious.noExtraNonNullAssertion.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noExtraNonNullAssertion.level
Section titled linter.rules.suspicious.noExtraNonNullAssertion.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noExtraNonNullAssertion.options
Section titled linter.rules.suspicious.noExtraNonNullAssertion.optionsRule’s options
linter.rules.suspicious.noFallthroughSwitchClause
Section titled linter.rules.suspicious.noFallthroughSwitchClauseDisallow fallthrough of switch clauses.
linter.rules.suspicious.noFallthroughSwitchClause.level
Section titled linter.rules.suspicious.noFallthroughSwitchClause.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noFallthroughSwitchClause.options
Section titled linter.rules.suspicious.noFallthroughSwitchClause.optionsRule’s options
linter.rules.suspicious.noFocusedTests
Section titled linter.rules.suspicious.noFocusedTestsDisallow focused tests.
linter.rules.suspicious.noFocusedTests.fix
Section titled linter.rules.suspicious.noFocusedTests.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noFocusedTests.level
Section titled linter.rules.suspicious.noFocusedTests.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noFocusedTests.options
Section titled linter.rules.suspicious.noFocusedTests.optionsRule’s options
linter.rules.suspicious.noFunctionAssign
Section titled linter.rules.suspicious.noFunctionAssignDisallow reassigning function declarations.
linter.rules.suspicious.noFunctionAssign.level
Section titled linter.rules.suspicious.noFunctionAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noFunctionAssign.options
Section titled linter.rules.suspicious.noFunctionAssign.optionsRule’s options
linter.rules.suspicious.noGlobalAssign
Section titled linter.rules.suspicious.noGlobalAssignDisallow assignments to native objects and read-only global variables.
linter.rules.suspicious.noGlobalAssign.level
Section titled linter.rules.suspicious.noGlobalAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noGlobalAssign.options
Section titled linter.rules.suspicious.noGlobalAssign.optionsRule’s options
linter.rules.suspicious.noGlobalIsFinite
Section titled linter.rules.suspicious.noGlobalIsFiniteUse Number.isFinite instead of global isFinite.
linter.rules.suspicious.noGlobalIsFinite.fix
Section titled linter.rules.suspicious.noGlobalIsFinite.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noGlobalIsFinite.level
Section titled linter.rules.suspicious.noGlobalIsFinite.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noGlobalIsFinite.options
Section titled linter.rules.suspicious.noGlobalIsFinite.optionsRule’s options
linter.rules.suspicious.noGlobalIsNan
Section titled linter.rules.suspicious.noGlobalIsNanUse Number.isNaN instead of global isNaN.
linter.rules.suspicious.noGlobalIsNan.fix
Section titled linter.rules.suspicious.noGlobalIsNan.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noGlobalIsNan.level
Section titled linter.rules.suspicious.noGlobalIsNan.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noGlobalIsNan.options
Section titled linter.rules.suspicious.noGlobalIsNan.optionsRule’s options
linter.rules.suspicious.noImplicitAnyLet
Section titled linter.rules.suspicious.noImplicitAnyLetDisallow use of implicit any type on variable declarations.
linter.rules.suspicious.noImplicitAnyLet.level
Section titled linter.rules.suspicious.noImplicitAnyLet.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noImplicitAnyLet.options
Section titled linter.rules.suspicious.noImplicitAnyLet.optionsRule’s options
linter.rules.suspicious.noImportAssign
Section titled linter.rules.suspicious.noImportAssignDisallow assigning to imported bindings
linter.rules.suspicious.noImportAssign.level
Section titled linter.rules.suspicious.noImportAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noImportAssign.options
Section titled linter.rules.suspicious.noImportAssign.optionsRule’s options
linter.rules.suspicious.noLabelVar
Section titled linter.rules.suspicious.noLabelVarDisallow labels that share a name with a variable
linter.rules.suspicious.noLabelVar.level
Section titled linter.rules.suspicious.noLabelVar.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noLabelVar.options
Section titled linter.rules.suspicious.noLabelVar.optionsRule’s options
linter.rules.suspicious.noMisleadingCharacterClass
Section titled linter.rules.suspicious.noMisleadingCharacterClassDisallow characters made with multiple code points in character class syntax.
linter.rules.suspicious.noMisleadingCharacterClass.fix
Section titled linter.rules.suspicious.noMisleadingCharacterClass.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noMisleadingCharacterClass.level
Section titled linter.rules.suspicious.noMisleadingCharacterClass.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noMisleadingCharacterClass.options
Section titled linter.rules.suspicious.noMisleadingCharacterClass.optionsRule’s options
linter.rules.suspicious.noMisleadingInstantiator
Section titled linter.rules.suspicious.noMisleadingInstantiatorEnforce proper usage of new and constructor.
linter.rules.suspicious.noMisleadingInstantiator.level
Section titled linter.rules.suspicious.noMisleadingInstantiator.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noMisleadingInstantiator.options
Section titled linter.rules.suspicious.noMisleadingInstantiator.optionsRule’s options
linter.rules.suspicious.noMisrefactoredShorthandAssign
Section titled linter.rules.suspicious.noMisrefactoredShorthandAssignDisallow shorthand assign when variable appears on both sides.
linter.rules.suspicious.noMisrefactoredShorthandAssign.fix
Section titled linter.rules.suspicious.noMisrefactoredShorthandAssign.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noMisrefactoredShorthandAssign.level
Section titled linter.rules.suspicious.noMisrefactoredShorthandAssign.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noMisrefactoredShorthandAssign.options
Section titled linter.rules.suspicious.noMisrefactoredShorthandAssign.optionsRule’s options
linter.rules.suspicious.noPrototypeBuiltins
Section titled linter.rules.suspicious.noPrototypeBuiltinsDisallow direct use of Object.prototype builtins.
linter.rules.suspicious.noPrototypeBuiltins.level
Section titled linter.rules.suspicious.noPrototypeBuiltins.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noPrototypeBuiltins.options
Section titled linter.rules.suspicious.noPrototypeBuiltins.optionsRule’s options
linter.rules.suspicious.noRedeclare
Section titled linter.rules.suspicious.noRedeclareDisallow variable, function, class, and type redeclarations in the same scope.
linter.rules.suspicious.noRedeclare.level
Section titled linter.rules.suspicious.noRedeclare.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noRedeclare.options
Section titled linter.rules.suspicious.noRedeclare.optionsRule’s options
linter.rules.suspicious.noRedundantUseStrict
Section titled linter.rules.suspicious.noRedundantUseStrictPrevents from having redundant “use strict”.
linter.rules.suspicious.noRedundantUseStrict.fix
Section titled linter.rules.suspicious.noRedundantUseStrict.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noRedundantUseStrict.level
Section titled linter.rules.suspicious.noRedundantUseStrict.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noRedundantUseStrict.options
Section titled linter.rules.suspicious.noRedundantUseStrict.optionsRule’s options
linter.rules.suspicious.noSelfCompare
Section titled linter.rules.suspicious.noSelfCompareDisallow comparisons where both sides are exactly the same.
linter.rules.suspicious.noSelfCompare.level
Section titled linter.rules.suspicious.noSelfCompare.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noSelfCompare.options
Section titled linter.rules.suspicious.noSelfCompare.optionsRule’s options
linter.rules.suspicious.noShadowRestrictedNames
Section titled linter.rules.suspicious.noShadowRestrictedNamesDisallow identifiers from shadowing restricted names.
linter.rules.suspicious.noShadowRestrictedNames.level
Section titled linter.rules.suspicious.noShadowRestrictedNames.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noShadowRestrictedNames.options
Section titled linter.rules.suspicious.noShadowRestrictedNames.optionsRule’s options
linter.rules.suspicious.noSkippedTests
Section titled linter.rules.suspicious.noSkippedTestsDisallow disabled tests.
linter.rules.suspicious.noSkippedTests.fix
Section titled linter.rules.suspicious.noSkippedTests.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noSkippedTests.level
Section titled linter.rules.suspicious.noSkippedTests.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noSkippedTests.options
Section titled linter.rules.suspicious.noSkippedTests.optionsRule’s options
linter.rules.suspicious.noSparseArray
Section titled linter.rules.suspicious.noSparseArrayDisallow sparse arrays
linter.rules.suspicious.noSparseArray.fix
Section titled linter.rules.suspicious.noSparseArray.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noSparseArray.level
Section titled linter.rules.suspicious.noSparseArray.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noSparseArray.options
Section titled linter.rules.suspicious.noSparseArray.optionsRule’s options
linter.rules.suspicious.noSuspiciousSemicolonInJsx
Section titled linter.rules.suspicious.noSuspiciousSemicolonInJsxIt detects possible “wrong” semicolons inside JSX elements.
linter.rules.suspicious.noSuspiciousSemicolonInJsx.level
Section titled linter.rules.suspicious.noSuspiciousSemicolonInJsx.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noSuspiciousSemicolonInJsx.options
Section titled linter.rules.suspicious.noSuspiciousSemicolonInJsx.optionsRule’s options
linter.rules.suspicious.noThenProperty
Section titled linter.rules.suspicious.noThenPropertyDisallow then property.
linter.rules.suspicious.noThenProperty.level
Section titled linter.rules.suspicious.noThenProperty.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noThenProperty.options
Section titled linter.rules.suspicious.noThenProperty.optionsRule’s options
linter.rules.suspicious.noUnsafeDeclarationMerging
Section titled linter.rules.suspicious.noUnsafeDeclarationMergingDisallow unsafe declaration merging between interfaces and classes.
linter.rules.suspicious.noUnsafeDeclarationMerging.level
Section titled linter.rules.suspicious.noUnsafeDeclarationMerging.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noUnsafeDeclarationMerging.options
Section titled linter.rules.suspicious.noUnsafeDeclarationMerging.optionsRule’s options
linter.rules.suspicious.noUnsafeNegation
Section titled linter.rules.suspicious.noUnsafeNegationDisallow using unsafe negation.
linter.rules.suspicious.noUnsafeNegation.fix
Section titled linter.rules.suspicious.noUnsafeNegation.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.noUnsafeNegation.level
Section titled linter.rules.suspicious.noUnsafeNegation.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.noUnsafeNegation.options
Section titled linter.rules.suspicious.noUnsafeNegation.optionsRule’s options
linter.rules.suspicious.recommended
Section titled linter.rules.suspicious.recommendedIt enables the recommended rules for this group
Type: Boolean
linter.rules.suspicious.useAwait
Section titled linter.rules.suspicious.useAwaitEnsure async functions utilize await.
linter.rules.suspicious.useAwait.level
Section titled linter.rules.suspicious.useAwait.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.useAwait.options
Section titled linter.rules.suspicious.useAwait.optionsRule’s options
linter.rules.suspicious.useDefaultSwitchClauseLast
Section titled linter.rules.suspicious.useDefaultSwitchClauseLastEnforce default clauses in switch statements to be last
linter.rules.suspicious.useDefaultSwitchClauseLast.level
Section titled linter.rules.suspicious.useDefaultSwitchClauseLast.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.useDefaultSwitchClauseLast.options
Section titled linter.rules.suspicious.useDefaultSwitchClauseLast.optionsRule’s options
linter.rules.suspicious.useGetterReturn
Section titled linter.rules.suspicious.useGetterReturnEnforce get methods to always return a value.
linter.rules.suspicious.useGetterReturn.level
Section titled linter.rules.suspicious.useGetterReturn.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.useGetterReturn.options
Section titled linter.rules.suspicious.useGetterReturn.optionsRule’s options
linter.rules.suspicious.useIsArray
Section titled linter.rules.suspicious.useIsArrayUse Array.isArray() instead of instanceof Array.
linter.rules.suspicious.useIsArray.fix
Section titled linter.rules.suspicious.useIsArray.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.useIsArray.level
Section titled linter.rules.suspicious.useIsArray.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.useIsArray.options
Section titled linter.rules.suspicious.useIsArray.optionsRule’s options
linter.rules.suspicious.useNamespaceKeyword
Section titled linter.rules.suspicious.useNamespaceKeywordRequire using the namespace keyword over the module keyword to declare TypeScript namespaces.
linter.rules.suspicious.useNamespaceKeyword.fix
Section titled linter.rules.suspicious.useNamespaceKeyword.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.useNamespaceKeyword.level
Section titled linter.rules.suspicious.useNamespaceKeyword.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.useNamespaceKeyword.options
Section titled linter.rules.suspicious.useNamespaceKeyword.optionsRule’s options
linter.rules.suspicious.useValidTypeof
Section titled linter.rules.suspicious.useValidTypeofThis 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
linter.rules.suspicious.useValidTypeof.fix
Section titled linter.rules.suspicious.useValidTypeof.fixThe kind of the code actions emitted by the rule
Used to identify the kind of code action emitted by a rule
linter.rules.suspicious.useValidTypeof.level
Section titled linter.rules.suspicious.useValidTypeof.levelThe severity of the emitted diagnostics by the rule
linter.rules.suspicious.useValidTypeof.options
Section titled linter.rules.suspicious.useValidTypeof.optionsRule’s options
organizeImports
Section titled organizeImportsThe configuration of the import sorting
organizeImports.enabled
Section titled organizeImports.enabledEnables the organization of imports
Type: Boolean
organizeImports.ignore
Section titled organizeImports.ignoreA list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
organizeImports.include
Section titled organizeImports.includeA list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
overrides
Section titled overridesA list of granular patterns that should be applied only to a sub set of files
The configuration of the VCS integration
Set of properties to integrate Biome with a VCS software.
vcs.clientKind
Section titled vcs.clientKindThe kind of client.
vcs.defaultBranch
Section titled vcs.defaultBranchThe main branch of the project
Type: String
vcs.enabled
Section titled vcs.enabledWhether Biome should integrate itself with the VCS client
Type: Boolean
vcs.root
Section titled vcs.rootThe 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
Type: String
vcs.useIgnoreFile
Section titled vcs.useIgnoreFileWhether Biome should use the VCS ignore file. When [true], Biome will ignore the files specified in the ignore file.
Type: Boolean