biomejs/biome (@biomejs/biome)
### [`v1.5.3`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#153-2024-01-22)
[Compare Source](https://togithub.com/biomejs/biome/compare/80bb3d7d978ca2eb376190ac7cfdcd45902a6b75...906de83449b5066554cd8e97c78a1f8e43749016)
##### LSP
##### Bug fixes
- Fix [#1584](https://togithub.com/biomejs/biome/issues/1584). Ensure the LSP only registers the formatter once. Contributed by [@nhedger](https://togithub.com/nhedger)
- Fix [#1589](https://togithub.com/biomejs/biome/issues/1589). Fix invalid formatting of own line comments when they were at the end of an import/export list. Contributed by [@spanishpear](https://togithub.com/spanishpear)
##### Configuration
##### Bug fixes
- Override correctly the recommended preset ([#1349](https://togithub.com/biomejs/biome/issues/1349)).
Previously, if unspecified, Biome turned on the recommended preset in overrides.
This resulted in reporting diagnostics with a severity level set to `off`.
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](https://togithub.com/Conaclos)
- Don't format **ignored** files that are well-known JSONC files when `files.ignoreUnknown` is enabled ([#1607](https://togithub.com/biomejs/biome/issues/1607)).
Previously, Biome always formatted files that are known to be JSONC files (e.g. `.eslintrc`) when `files.ignoreUnknown` was enabled.
Contributed by [@Conaclos](https://togithub.com/Conaclos)
##### Formatter
##### Bug fixes
- Fix [#1178](https://togithub.com/biomejs/biome/issues/1178), where the line ending option wasn't correctly applied. Contributed by [@ematipico](https://togithub.com/ematipico)
- Fix [#1571](https://togithub.com/biomejs/biome/issues/1571). Fix invalid formatting of nested multiline comments. Contributed by [@ah-yu](https://togithub.com/ah-yu)
##### Linter
##### Bug fixes
- Fix [#1575](https://togithub.com/biomejs/biome/issues/1575). [noArrayIndexKey](https://biomejs.dev/linter/rules/no-array-index-key/) now captures array index value inside template literals and with string concatination. Contributed by [@vasucp1207](https://togithub.com/vasucp1207)
- Linter rules that inspect regexes now handle multibyte characters correctly ([#1522](https://togithub.com/biomejs/biome/issues/1522)).
Previously, [noMisleadingCharacterClass](https://biomejs.dev/linter/no-misleading-character-class), [noMultipleSpacesInRegularExpressionLiterals](https://biomejs.dev/linter/no-multiple-spaces-in-regular-expression-literals), and [noEmptyCharacterClassInRegex](https://biomejs.dev/linter/no-empty-character-class-in-regex) made Biome errors on multi-bytes characters.
Multibyte characters are now handled correctly.
The following code no longer raises an internal error:
```js
// Cyrillic characters
/[\u200E\u2066-\u2069]/gu;
```
Contributed by [@Conaclos](https://togithub.com/Conaclos)
- [useExhaustiveDependencies](https://biomejs.dev/linter/use-exhaustive-dependencies) no longer made Biome errors in code TypeScript import equal declarations ([#1194](https://togithub.com/biomejs/biome/issues/1194)). Contributed by [@Conaclos](https://togithub.com/Conaclos)
- Fix typo in the diagnostic of [noNodejsModules](https://biomejs.dev/linter/rules/no-nodejs-modules). Contributed by [@huseeiin](https://togithub.com/huseeiin)
##### Parser
##### Bug fixes
- Accept the `const` modifier for type parameter in method type signature ([#1624](https://togithub.com/biomejs/biome/issues/1624)).
The following code is now correctly parsed:
```ts
type Foo = {
();
method();
};
```
Contributed by [@magic-akari](https://togithub.com/magic-akari)
- Correctly parse type arguments in expression([#1184](https://togithub.com/biomejs/biome/issues/1184)).
The following code is now correctly parsed in typescript:
```ts
0 < (0 >= 1);
```
Contributed by [@ah-yu](https://togithub.com/ah-yu)
##### Website
##### New
- Add a [page that maps the Biome rule to its source](https://biomejs.dev/linter/rules-sources/). Contributed by [@ematipico](https://togithub.com/ematipico)
##### Fixes
- Generate Open Graph images based on the linked page. Contributed by [@ematipico](https://togithub.com/ematipico)
- Fix examples of the [git hook page](https://biomejs.dev/recipes/git-hooks/). Contributed by [@9renpoto](https://togithub.com/9renpoto), [@lmauromb](https://togithub.com/lmauromb), and [@Conaclos](https://togithub.com/Conaclos)
- Fix dead and erroneous hyperlinks. Contributed by [@Sec-ant](https://togithub.com/Sec-ant) and Conaclos
Configuration
π Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Enabled.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
1.5.2
->1.5.3
Release Notes
biomejs/biome (@biomejs/biome)
### [`v1.5.3`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#153-2024-01-22) [Compare Source](https://togithub.com/biomejs/biome/compare/80bb3d7d978ca2eb376190ac7cfdcd45902a6b75...906de83449b5066554cd8e97c78a1f8e43749016) ##### LSP ##### Bug fixes - Fix [#1584](https://togithub.com/biomejs/biome/issues/1584). Ensure the LSP only registers the formatter once. Contributed by [@nhedger](https://togithub.com/nhedger) - Fix [#1589](https://togithub.com/biomejs/biome/issues/1589). Fix invalid formatting of own line comments when they were at the end of an import/export list. Contributed by [@spanishpear](https://togithub.com/spanishpear) ##### Configuration ##### Bug fixes - Override correctly the recommended preset ([#1349](https://togithub.com/biomejs/biome/issues/1349)). Previously, if unspecified, Biome turned on the recommended preset in overrides. This resulted in reporting diagnostics with a severity level set to `off`. 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](https://togithub.com/Conaclos) - Don't format **ignored** files that are well-known JSONC files when `files.ignoreUnknown` is enabled ([#1607](https://togithub.com/biomejs/biome/issues/1607)). Previously, Biome always formatted files that are known to be JSONC files (e.g. `.eslintrc`) when `files.ignoreUnknown` was enabled. Contributed by [@Conaclos](https://togithub.com/Conaclos) ##### Formatter ##### Bug fixes - Fix [#1178](https://togithub.com/biomejs/biome/issues/1178), where the line ending option wasn't correctly applied. Contributed by [@ematipico](https://togithub.com/ematipico) - Fix [#1571](https://togithub.com/biomejs/biome/issues/1571). Fix invalid formatting of nested multiline comments. Contributed by [@ah-yu](https://togithub.com/ah-yu) ##### Linter ##### Bug fixes - Fix [#1575](https://togithub.com/biomejs/biome/issues/1575). [noArrayIndexKey](https://biomejs.dev/linter/rules/no-array-index-key/) now captures array index value inside template literals and with string concatination. Contributed by [@vasucp1207](https://togithub.com/vasucp1207) - Linter rules that inspect regexes now handle multibyte characters correctly ([#1522](https://togithub.com/biomejs/biome/issues/1522)). Previously, [noMisleadingCharacterClass](https://biomejs.dev/linter/no-misleading-character-class), [noMultipleSpacesInRegularExpressionLiterals](https://biomejs.dev/linter/no-multiple-spaces-in-regular-expression-literals), and [noEmptyCharacterClassInRegex](https://biomejs.dev/linter/no-empty-character-class-in-regex) made Biome errors on multi-bytes characters. Multibyte characters are now handled correctly. The following code no longer raises an internal error: ```js // Cyrillic characters /[\u200E\u2066-\u2069]/gu; ``` Contributed by [@Conaclos](https://togithub.com/Conaclos) - [useExhaustiveDependencies](https://biomejs.dev/linter/use-exhaustive-dependencies) no longer made Biome errors in code TypeScript import equal declarations ([#1194](https://togithub.com/biomejs/biome/issues/1194)). Contributed by [@Conaclos](https://togithub.com/Conaclos) - Fix typo in the diagnostic of [noNodejsModules](https://biomejs.dev/linter/rules/no-nodejs-modules). Contributed by [@huseeiin](https://togithub.com/huseeiin) ##### Parser ##### Bug fixes - Accept the `const` modifier for type parameter in method type signature ([#1624](https://togithub.com/biomejs/biome/issues/1624)). The following code is now correctly parsed: ```ts type Foo = {Configuration
π Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Enabled.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.