biomejs/biome (@biomejs/biome)
### [`v1.4.1`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#141-2023-11-30)
[Compare Source](https://togithub.com/biomejs/biome/compare/889593e3f983a6fec642d20eea3c7f94d58fc7e1...a88751306242058374575b9f511e3c22213032b6)
##### Editors
- Fix [#933](https://togithub.com/biomejs/biome/issues/933). Some files are properly ignored in the LSP too. E.g. `package.json`, `tsconfig.json`, etc.
##### Formatter
##### Bug fixes
- Fix some accidental line breaks when printing array expressions within arrow functions and other long lines [#917](https://togithub.com/biomejs/biome/pull/917). Contributed by [@faultyserver](https://togithub.com/faultyserver)
- Match Prettier's breaking strategy for `ArrowChain` layouts [#934](https://togithub.com/biomejs/biome/pull/934). Contributed by [@faultyserver](https://togithub.com/faultyserver)
- Fix double-printing of leading comments in arrow chain expressions [#951](https://togithub.com/biomejs/biome/pull/951). Contributed by [@faultyserver](https://togithub.com/faultyserver)
##### Linter
##### Bug fixes
- Fix [#910](https://togithub.com/biomejs/biome/issues/910), where the rule `noSvgWithoutTitle` should skip elements that have `aria-hidden` attributes. Contributed by [@vasucp1207](https://togithub.com/vasucp1207)
##### New features
##### Enhancement
- Implements [#924](https://togithub.com/biomejs/biome/issues/924) and [#920](https://togithub.com/biomejs/biome/issues/920). [noUselessElse](https://biomejs.dev/linter/rules/no-useless-else) now ignores `else` clauses that follow at least one `if` statement that doesn't break early. Contributed by [@Conaclos](https://togithub.com/Conaclos)
For example, the following code is no longer reported by the rule:
```js
function f(x) {
if (x < 0) {
// this `if` doesn't break early.
} else if (x > 0) {
return x;
} else {
// This `else` block was previously reported as useless.
}
}
```
##### Bug fixes
- Fix [#918](https://togithub.com/biomejs/biome/issues/918), [useSimpleNumberKeys](https://biomejs.dev/linter/rules/use-simple-number-keys) no longer repports false positive on comments. Contributed by [@kalleep](https://togithub.com/kalleep)
- Fix [#953](https://togithub.com/biomejs/biome/issues/953), [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare) no longer reports type parameters with the same name in different mapped types as redeclarations. Contributed by [@Conaclos](https://togithub.com/Conaclos)
- Fix [#608](https://togithub.com/biomejs/biome/issues/608), [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies) no longer repports missing dependencies for React hooks without dependency array. Contributed by [@kalleep](https://togithub.com/kalleep)
##### Parser
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.4.0
->1.4.1
Release Notes
biomejs/biome (@biomejs/biome)
### [`v1.4.1`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#141-2023-11-30) [Compare Source](https://togithub.com/biomejs/biome/compare/889593e3f983a6fec642d20eea3c7f94d58fc7e1...a88751306242058374575b9f511e3c22213032b6) ##### Editors - Fix [#933](https://togithub.com/biomejs/biome/issues/933). Some files are properly ignored in the LSP too. E.g. `package.json`, `tsconfig.json`, etc. ##### Formatter ##### Bug fixes - Fix some accidental line breaks when printing array expressions within arrow functions and other long lines [#917](https://togithub.com/biomejs/biome/pull/917). Contributed by [@faultyserver](https://togithub.com/faultyserver) - Match Prettier's breaking strategy for `ArrowChain` layouts [#934](https://togithub.com/biomejs/biome/pull/934). Contributed by [@faultyserver](https://togithub.com/faultyserver) - Fix double-printing of leading comments in arrow chain expressions [#951](https://togithub.com/biomejs/biome/pull/951). Contributed by [@faultyserver](https://togithub.com/faultyserver) ##### Linter ##### Bug fixes - Fix [#910](https://togithub.com/biomejs/biome/issues/910), where the rule `noSvgWithoutTitle` should skip elements that have `aria-hidden` attributes. Contributed by [@vasucp1207](https://togithub.com/vasucp1207) ##### New features ##### Enhancement - Implements [#924](https://togithub.com/biomejs/biome/issues/924) and [#920](https://togithub.com/biomejs/biome/issues/920). [noUselessElse](https://biomejs.dev/linter/rules/no-useless-else) now ignores `else` clauses that follow at least one `if` statement that doesn't break early. Contributed by [@Conaclos](https://togithub.com/Conaclos) For example, the following code is no longer reported by the rule: ```js function f(x) { if (x < 0) { // this `if` doesn't break early. } else if (x > 0) { return x; } else { // This `else` block was previously reported as useless. } } ``` ##### Bug fixes - Fix [#918](https://togithub.com/biomejs/biome/issues/918), [useSimpleNumberKeys](https://biomejs.dev/linter/rules/use-simple-number-keys) no longer repports false positive on comments. Contributed by [@kalleep](https://togithub.com/kalleep) - Fix [#953](https://togithub.com/biomejs/biome/issues/953), [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare) no longer reports type parameters with the same name in different mapped types as redeclarations. Contributed by [@Conaclos](https://togithub.com/Conaclos) - Fix [#608](https://togithub.com/biomejs/biome/issues/608), [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies) no longer repports missing dependencies for React hooks without dependency array. Contributed by [@kalleep](https://togithub.com/kalleep) ##### ParserConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.