CLI v1.5.3
LSP
Bug fixes
-
Fix #1584. Ensure the LSP only registers the formatter once. Contributed by @nhedger
-
Fix #1589. Fix invalid formatting of own line comments when they were at the end of an import/export list. Contributed by @SpanishPear
Configuration
Bug fixes
-
Override correctly the recommended preset (#1349).
Previously, if unspecified, Biome turned on the recommended preset in overrides.
This resulted in reporting diagnostics with a severity level set tooff
.
This in turn caused Biome to fail.Now Biome won't switch on the recommended preset in
overrides
unless told to do so.Contributed by @Conaclos
-
Don't format ignored files that are well-known JSONC files when
files.ignoreUnknown
is enabled (#1607).Previously, Biome always formatted files that are known to be JSONC files (e.g.
.eslintrc
) whenfiles.ignoreUnknown
was enabled.Contributed by @Conaclos
Formatter
Bug fixes
- Fix #1178, where the line ending option wasn't correctly applied. Contributed by @ematipico
- Fix #1571. Fix invalid formatting of nested multiline comments. Contributed by @ah-yu
Linter
Bug fixes
-
Fix #1575. noArrayIndexKey now captures array index value inside template literals and with string concatination. Contributed by @vasucp1207
-
Linter rules that inspect regexes now handle multibyte characters correctly (#1522).
Previously, noMisleadingCharacterClass, noMultipleSpacesInRegularExpressionLiterals, and noEmptyCharacterClassInRegex made Biome errors on multi-bytes characters.
Multibyte characters are now handled correctly.The following code no longer raises an internal error:
// Cyrillic characters /[\u200E\u2066-\u2069]/gu;
Contributed by @Conaclos
-
useExhaustiveDependencies no longer made Biome errors in code TypeScript import equal declarations (#1194). Contributed by @Conaclos
-
Fix typo in the diagnostic of noNodejsModules. Contributed by @huseeiin
Parser
Bug fixes
-
Accept the
const
modifier for type parameter in method type signature (#1624).The following code is now correctly parsed:
type Foo = { <const T>(); method<const T>(); };
Contributed by @magic-akari
Website
New
- Add a page that maps the Biome rule to its source. Contributed by @ematipico
Fixes
-
Generate Open Graph images based on the linked page. Contributed by @ematipico
-
Fix examples of the git hook page. Contributed by @9renpoto, @lmauromb, and @Conaclos
-
Fix dead and erroneous hyperlinks. Contributed by @Sec-ant and Conaclos
New Contributors
- @SpanishPear made their first contribution in #1604
- @9renpoto made their first contribution in #1612
- @huseeiin made their first contribution in #1621
- @Sec-ant made their first contribution in #1632
Full Changelog: cli/v1.5.2-nightly.91c7730...cli/v1.5.3