-
-
Notifications
You must be signed in to change notification settings - Fork 438
Commit 2d9c0d1
authored
chore(deps): update all non-major dependencies (#1123)
This PR contains the following updates:
| Package | Type | Update | Change | Age | Confidence |
|---|---|---|---|---|---|
| [biome](https://redirect.github.com/biomejs/biome) | | minor | `2.1.3`
-> `2.2.0` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [esbuild](https://redirect.github.com/evanw/esbuild) | | patch |
`0.25.8` -> `0.25.9` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
|
[github.com/alecthomas/chroma/v2](https://redirect.github.com/alecthomas/chroma)
| require | minor | `v2.19.0` -> `v2.20.0` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [go](https://redirect.github.com/golang/go) | | minor | `1.24.5` ->
`1.25.0` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [go](https://go.dev/)
([source](https://redirect.github.com/golang/go)) | toolchain | minor |
`1.24.5` -> `1.25.0` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [uv](https://redirect.github.com/astral-sh/uv) | | patch | `0.8.4` ->
`0.8.12` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>biomejs/biome (biome)</summary>
###
[`v2.2.0`](https://redirect.github.com/biomejs/biome/releases/tag/%40biomejs/biome%402.2.0):
Biome CLI v2.2.0
#### 2.2.0
##### Minor Changes
- [#​5506](https://redirect.github.com/biomejs/biome/pull/5506)
[`1f8755b`](https://redirect.github.com/biomejs/biome/commit/1f8755bfcbcd913be9fc1961b45b5c7ade8695c3)
Thanks [@​sakai-ast](https://redirect.github.com/sakai-ast)! - The
`noRestrictedImports` rule has been enhanced with a new `patterns`
option. This option allows for more flexible and powerful import
restrictions using gitignore-style patterns.
You can now define patterns to restrict entire groups of modules. For
example, you can disallow imports from any path under `import-foo/`
except for `import-foo/baz`.
```json
{
"options": {
"patterns": [
{
"group": ["import-foo/*", "!import-foo/baz"],
"message": "import-foo is deprecated, except for modules in
import-foo/baz."
}
]
}
}
```
**Invalid examples**
```js
import foo from "import-foo/foo";
import bar from "import-foo/bar";
```
**Valid examples**
```js
import baz from "import-foo/baz";
```
Additionally, the `patterns` option introduces `importNamePattern` to
restrict specific import names using regular expressions.
The following example restricts the import names that match `x` , `y` or
`z` letters from modules under `import-foo/`.
```json
{
"options": {
"patterns": [
{
"group": ["import-foo/*"],
"importNamePattern": "[xyz]"
}
]
}
}
```
**Invalid examples**
```js
import { x } from "import-foo/foo";
```
**Valid examples**
```js
import { foo } from "import-foo/foo";
```
Furthermore, you can use the `invertImportNamePattern` boolean option to
reverse this logic. When set to true, only the import names that match
the `importNamePattern` will be allowed. The following configuration
only allows the import names that match `x` , `y` or `z` letters from
modules under `import-foo/`.
```json
{
"options": {
"patterns": [
{
"group": ["import-foo/*"],
"importNamePattern": "[xyz]",
"invertImportNamePattern": true
}
]
}
}
```
**Invalid examples**
```js
import { foo } from "import-foo/foo";
```
**Valid examples**
```js
import { x } from "import-foo/foo";
```
- [#​6506](https://redirect.github.com/biomejs/biome/pull/6506)
[`90c5d6b`](https://redirect.github.com/biomejs/biome/commit/90c5d6b857f9fb985f919d601872b3650f1e1e5e)
Thanks [@​nazarhussain](https://redirect.github.com/nazarhussain)!
- Allow customization of the sort order for different sorting actions.
These actions now support a sort option:
-
[`assist/source/useSortedKeys`](https://biomejs.dev/assist/actions/use-sorted-keys/)
now has a `sortOrder` option
-
[`assist/source/useSortedAttributes`](https://biomejs.dev/assist/actions/use-sorted-attributes/)
now has a `sortOrder` option
-
[`assist/source/organizeImports`](https://biomejs.dev/assist/actions/organize-imports/)
now has an `identifierOrder` option
For each of these options, the supported values are the same:
1. **`natural`**. Compares two strings using a natural ASCII order.
Uppercase letters come first (e.g. `A < a < B < b`) and number are
compared in a human way (e.g. `9` < `10`). This is the default value.
2. **`lexicographic`**. Strings are ordered lexicographically by their
byte values. This orders Unicode code points based on their positions in
the code charts. This is not necessarily the same as “alphabetical”
order, which varies by language and locale.
- [#​7159](https://redirect.github.com/biomejs/biome/pull/7159)
[`df3afdf`](https://redirect.github.com/biomejs/biome/commit/df3afdf0e29ebb1db6ec4cf6f54ec822c82e38ab)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Added the new rule `useBiomeIgnoreFolder`. Since v2.2, Biome correctly
prevents the indexing and crawling of folders.
However, the correct pattern has changed. This rule attempts to detect
incorrect usage, and promote the new pattern:
```diff
// biome.json
{
"files": {
"includes": [
- "!dist/**",
- "!**/fixtures/**",
+ "!dist",
+ "!**/fixtures",
]
}
}
```
- [#​6989](https://redirect.github.com/biomejs/biome/pull/6989)
[`85b1128`](https://redirect.github.com/biomejs/biome/commit/85b11289efbda3061438dfb52ceb186d2142a646)
Thanks [@​arendjr](https://redirect.github.com/arendjr)! - Fixed
minor inconsistencies in how `files.includes` was being handled.
Previously, Biome sometimes failed to properly ignore the contents of a
folder if you didn't specify the `/**` at the end of a glob pattern.
This was unfortunate, because it meant we still had to traverse the
folder and then apply the glob to every entry inside it.
This is no longer an issue and we now recommend to ignore folders
without using the `/**` suffix.
- [#​7118](https://redirect.github.com/biomejs/biome/pull/7118)
[`a78e878`](https://redirect.github.com/biomejs/biome/commit/a78e8781411d151cddec9425763df18ccd2e669b)
Thanks [@​avshalomt2](https://redirect.github.com/avshalomt2)! -
Added support for `.graphqls` files. Biome can now format and lint
GraphQL files that have the extension `.graphqls`
- [#​6159](https://redirect.github.com/biomejs/biome/pull/6159)
[`f02a296`](https://redirect.github.com/biomejs/biome/commit/f02a296eae7e3a8dfeddbf1a034e2bb67e8c9c2d)
Thanks [@​bavalpey](https://redirect.github.com/bavalpey)! - Added
a new option to Biome's JavaScript formatter,
`javascript.formatter.operatorLinebreak`, to configure whether long
lines should be broken before or after binary operators.
For example, the following configuration:
```json5
{
formatter: {
javascript: {
operatorLinebreak: "before", // defaults to "after"
},
},
}
```
Will cause this JavaScript file:
```js
const VERY_LONG_CONDITION_1234123412341234123412341234 = false;
if (
VERY_LONG_CONDITION_1234123412341234123412341234 &&
VERY_LONG_CONDITION_1234123412341234123412341234 &&
VERY_LONG_CONDITION_1234123412341234123412341234 &&
VERY_LONG_CONDITION_1234123412341234123412341234
) {
console.log("DONE");
}
```
to be formatted like this:
```js
const VERY_LONG_CONDITION_1234123412341234123412341234 = false;
if (
VERY_LONG_CONDITION_1234123412341234123412341234 &&
VERY_LONG_CONDITION_1234123412341234123412341234 &&
VERY_LONG_CONDITION_1234123412341234123412341234 &&
VERY_LONG_CONDITION_1234123412341234123412341234
) {
console.log("DONE");
}
```
- [#​7137](https://redirect.github.com/biomejs/biome/pull/7137)
[`a653a0f`](https://redirect.github.com/biomejs/biome/commit/a653a0fb3fa8c6777c9d03829cd88adcfc6b6877)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Promoted multiple lint rules from nursery to stable groups and renamed
several rules for consistency.
##### Promoted rules
The following rules have been promoted from nursery to stable groups:
##### CSS
- Promoted
[`noImportantStyles`](https://biomejs.dev/linter/rules/no-important-styles)
to the `complexity` group.
- Promoted
[`noUnknownAtRules`](https://biomejs.dev/linter/rules/no-unknown-at-rules)
to the `suspicious` group.
##### GraphQL
- Promoted
[`useGraphqlNamedOperations`](https://biomejs.dev/linter/rules/use-graphql-named-operations)
to the `correctness` group.
- Promoted
[`useGraphqlNamingConvention`](https://biomejs.dev/linter/rules/use-graphql-naming-convention)
to the `style` group.
##### JavaScript/TypeScript
- Promoted
[`noExcessiveLinesPerFunction`](https://biomejs.dev/linter/rules/no-excessive-lines-per-function)
to the `complexity` group.
- Promoted
[`noImplicitCoercions`](https://biomejs.dev/linter/rules/no-implicit-coercions)
to the `complexity` group.
- Promoted [`useIndexOf`](https://biomejs.dev/linter/rules/use-index-of)
to the `complexity` group.
- Promoted
[`noGlobalDirnameFilename`](https://biomejs.dev/linter/rules/no-global-dirname-filename)
to the `correctness` group.
- Promoted
[`noNestedComponentDefinitions`](https://biomejs.dev/linter/rules/no-nested-component-definitions)
to the `correctness` group.
- Promoted
[`noProcessGlobal`](https://biomejs.dev/linter/rules/no-process-global)
to the `correctness` group.
- Promoted
[`noReactPropAssignments`](https://biomejs.dev/linter/rules/no-react-prop-assignments)
to the `correctness` group.
- Promoted
[`noRestrictedElements`](https://biomejs.dev/linter/rules/no-restricted-elements)
to the `correctness` group.
- Promoted
[`noSolidDestructuredProps`](https://biomejs.dev/linter/rules/no-solid-destructured-props)
to the `correctness` group.
- Promoted
[`useJsonImportAttributes`](https://biomejs.dev/linter/rules/use-json-import-attributes)
to the `correctness` group.
- Promoted
[`useParseIntRadix`](https://biomejs.dev/linter/rules/use-parse-int-radix)
to the `correctness` group.
- Promoted
[`useSingleJsDocAsterisk`](https://biomejs.dev/linter/rules/use-single-js-doc-asterisk)
to the `correctness` group.
- Promoted
[`useUniqueElementIds`](https://biomejs.dev/linter/rules/use-unique-element-ids)
to the `correctness` group.
- Promoted
[`noAwaitInLoops`](https://biomejs.dev/linter/rules/no-await-in-loops)
to the `performance` group.
- Promoted
[`noUnwantedPolyfillio`](https://biomejs.dev/linter/rules/no-unwanted-polyfillio)
to the `performance` group.
- Promoted
[`useGoogleFontPreconnect`](https://biomejs.dev/linter/rules/use-google-font-preconnect)
to the `performance` group.
- Promoted
[`useSolidForComponent`](https://biomejs.dev/linter/rules/use-solid-for-component)
to the `performance` group.
- Promoted
[`noMagicNumbers`](https://biomejs.dev/linter/rules/no-magic-numbers) to
the `style` group.
- Promoted
[`useConsistentObjectDefinitions`](https://biomejs.dev/linter/rules/use-consistent-object-definitions)
to the `style` group.
- Promoted
[`useExportsLast`](https://biomejs.dev/linter/rules/use-exports-last) to
the `style` group.
- Promoted
[`useGroupedAccessorPairs`](https://biomejs.dev/linter/rules/use-grouped-accessor-pairs)
to the `style` group.
- Promoted
[`useNumericSeparators`](https://biomejs.dev/linter/rules/use-numeric-separators)
to the `style` group.
- Promoted
[`useObjectSpread`](https://biomejs.dev/linter/rules/use-object-spread)
to the `style` group.
- Promoted
[`useReadonlyClassProperties`](https://biomejs.dev/linter/rules/use-readonly-class-properties)
to the `style` group.
- Promoted
[`useSymbolDescription`](https://biomejs.dev/linter/rules/use-symbol-description)
to the `style` group.
- Promoted
[`useUnifiedTypeSignatures`](https://biomejs.dev/linter/rules/use-unified-type-signatures)
to the `style` group.
- Promoted
[`noBitwiseOperators`](https://biomejs.dev/linter/rules/no-bitwise-operators)
to the `suspicious` group.
- Promoted
[`noConstantBinaryExpressions`](https://biomejs.dev/linter/rules/no-constant-binary-expressions)
to the `suspicious` group.
- Promoted [`noTsIgnore`](https://biomejs.dev/linter/rules/no-ts-ignore)
to the `suspicious` group.
- Promoted
[`noUnassignedVariables`](https://biomejs.dev/linter/rules/no-unassigned-variables)
to the `suspicious` group.
- Promoted
[`noUselessRegexBackrefs`](https://biomejs.dev/linter/rules/no-useless-regex-backrefs)
to the `suspicious` group.
- Promoted
[`noUselessStringEscapes`](https://biomejs.dev/linter/rules/no-useless-string-escapes)
to the `suspicious` group.
- Promoted
[`useConsistentIterableCallbackReturnValues`](https://biomejs.dev/linter/rules/use-consistent-iterable-callback-return-values)
to the `suspicious` group.
- Promoted
[`useStaticResponseMethods`](https://biomejs.dev/linter/rules/use-static-response-methods)
to the `suspicious` group.
##### Renamed rules
The following rules have been renamed during promotion. The migration
tool will automatically update your configuration:
- Renamed `noAwaitInLoop` to
[`noAwaitInLoops`](https://biomejs.dev/linter/rules/no-await-in-loops).
- Renamed `noConstantBinaryExpression` to
[`noConstantBinaryExpressions`](https://biomejs.dev/linter/rules/no-constant-binary-expressions).
- Renamed `noDestructuredProps` to
[`noSolidDestructuredProps`](https://biomejs.dev/linter/rules/no-solid-destructured-props).
- Renamed `noImplicitCoercion` to
[`noImplicitCoercions`](https://biomejs.dev/linter/rules/no-implicit-coercions).
- Renamed `noReactPropAssign` to
[`noReactPropAssignments`](https://biomejs.dev/linter/rules/no-react-prop-assignments).
- Renamed `noUnknownAtRule` to
[`noUnknownAtRules`](https://biomejs.dev/linter/rules/no-unknown-at-rules).
- Renamed `noUselessBackrefInRegex` to
[`noUselessRegexBackrefs`](https://biomejs.dev/linter/rules/no-useless-regex-backrefs).
- Renamed `useAdjacentGetterSetter` to
[`useGroupedAccessorPairs`](https://biomejs.dev/linter/rules/use-grouped-accessor-pairs).
- Renamed `useConsistentObjectDefinition` to
[`useConsistentObjectDefinitions`](https://biomejs.dev/linter/rules/use-consistent-object-definitions).
- Renamed `useConsistentResponse` to
[`useStaticResponseMethods`](https://biomejs.dev/linter/rules/use-static-response-methods).
- Renamed `useForComponent` to
[`useSolidForComponent`](https://biomejs.dev/linter/rules/use-solid-for-component).
- Renamed `useJsonImportAttribute` to
[`useJsonImportAttributes`](https://biomejs.dev/linter/rules/use-json-import-attributes).
- Renamed `useNamedOperation` to
[`useGraphqlNamedOperations`](https://biomejs.dev/linter/rules/use-graphql-named-operations).
- Renamed `useNamingConvention` to
[`useGraphqlNamingConvention`](https://biomejs.dev/linter/rules/use-graphql-naming-convention).
- Renamed `useUnifiedTypeSignature` to
[`useUnifiedTypeSignatures`](https://biomejs.dev/linter/rules/use-unified-type-signatures).
Configuration files using the old rule names will need to be updated.
Use the migration tool to automatically update your configuration:
```bash
biome migrate --write
```
- [#​7159](https://redirect.github.com/biomejs/biome/pull/7159)
[`df3afdf`](https://redirect.github.com/biomejs/biome/commit/df3afdf0e29ebb1db6ec4cf6f54ec822c82e38ab)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Added the new rule `noBiomeFirstException`. This rule prevents the
incorrect usage of patterns inside `files.includes`.
This rule catches if the first element of the array contains `!`. This
mistake will cause Biome to analyze no files:
```json5
// biome.json
{
files: {
includes: ["!dist/**"], // this is an error
},
}
```
- [#​6923](https://redirect.github.com/biomejs/biome/pull/6923)
[`0589f08`](https://redirect.github.com/biomejs/biome/commit/0589f085ee444418c742f5e5eb7fae0522d83ea0)
Thanks [@​ptkagori](https://redirect.github.com/ptkagori)! - Added
Qwik Domain to Biome
This release introduces **Qwik domain support** in Biome, enabling Qwik
developers to use Biome as a linter and formatter for their projects.
- Added the Qwik domain infrastructure to Biome.
- Enabled the following rules for Qwik:
-
[`useJsxKeyInIterable`](https://biomejs.dev/linter/rules/use-jsx-key-in-iterable)
-
[`noReactSpecificProps`](https://biomejs.dev/linter/rules/no-react-specific-props)
- [#​6989](https://redirect.github.com/biomejs/biome/pull/6989)
[`85b1128`](https://redirect.github.com/biomejs/biome/commit/85b11289efbda3061438dfb52ceb186d2142a646)
Thanks [@​arendjr](https://redirect.github.com/arendjr)! - Fixed
[#​6965](https://redirect.github.com/biomejs/biome/issues/6965):
Implemented smarter scanner for project rules.
Previously, if project rules were enabled, Biome's scanner would scan
all dependencies regardless of whether they were used by/reachable from
source files or not. While this worked for a first version, it was far
from optimal.
The new scanner first scans everything listed under the `files.includes`
setting, and then descends into the dependencies that were discovered
there, including transitive dependencies. This has three main
advantages:
- Dependencies that are not reachable from your source files don't get
indexed.
- Dependencies that have multiple type definitions, such as those with
separate definitions for CommonJS and ESM imports, only have the
relevant definitions indexed.
- If `vcs.useIgnoreFile` is enabled, `.gitignore` gets respected as
well. Assuming you have folders such as `build/` or `dist/` configured
there, those will be automatically ignored by the scanner.
The change in the scanner also has a more nuanced impact: Previously, if
you used `files.includes` to ignore a file in an included folder, the
scanner would still index this file. Now the file is fully ignored,
*unless you import it*.
As a user you should notice better scanner performance (if you have
project rules enabled), and hopefully you need to worry less about
configuring
[`files.experimentalScannerIgnores`](https://biomejs.dev/reference/configuration/#filesexperimentalscannerignores).
Eventually our goal is still to deprecate that setting, so if you're
using it today, we encourage you to see which ignores are still
necessary there, and whether you can achieve the same effect by ignoring
paths using `files.includes` instead.
None of these changes affect the scanner if no project rules are
enabled.
- [#​6731](https://redirect.github.com/biomejs/biome/pull/6731)
[`d6a05b5`](https://redirect.github.com/biomejs/biome/commit/d6a05b5fa9358a5b1689b326724eaa7e2a86468d)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! - The
`--reporter=summary` has been greatly enhanced. It now shows the list of
files that contains violations, the files shown are clickable and can be
opened from the editor.
Below an example of the new version:
```
reporter/parse
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
i The following files have parsing errors.
- index.css
reporter/format
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
i The following files needs to be formatted.
- index.css
- index.ts
- main.ts
reporter/violations
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
i Some lint rules or assist actions reported some violations.
Rule Name Diagnostics
lint/correctness/noUnknownFunction 14 (2 error(s), 12 warning(s), 0
info(s))
lint/suspicious/noImplicitAnyLet 16 (12 error(s), 4 warning(s), 0
info(s))
lint/suspicious/noDoubleEquals 8 (8 error(s), 0 warning(s), 0 info(s))
assist/source/organizeImports 2 (2 error(s), 0 warning(s), 0 info(s))
lint/suspicious/noRedeclare 12 (12 error(s), 0 warning(s), 0 info(s))
lint/suspicious/noDebugger 8 (8 error(s), 0 warning(s), 0 info(s))
```
- [#​6896](https://redirect.github.com/biomejs/biome/pull/6896)
[`527db7f`](https://redirect.github.com/biomejs/biome/commit/527db7f7c142f8c95c6d4513603530220a4cc95c)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Added new functions to the `@biomejs/wasm-*` packages:
- `fileExists`: returns whether the input file exists in the workspace.
- `isPathIgnored`: returns whether the input path is ignored.
- `updateModuleGraph`: updates the internal module graph of the input
path.
- `getModuleGraph`: it returns a serialized version of the internal
module graph.
- `scanProject`: scans the files and directories in the project to build
the internal module graph.
- [#​6398](https://redirect.github.com/biomejs/biome/pull/6398)
[`d1a315d`](https://redirect.github.com/biomejs/biome/commit/d1a315d19e970341c8e6582c1f6f80b42c77ecb5)
Thanks [@​josh-](https://redirect.github.com/josh-)! - Added
support for tracking stable results in user-provided React hooks that
return objects to
[`useExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/)
to compliment existing support for array return values. For example:
```json5
// biome.json
{
// rule options
useExhaustiveDependencies: {
level: "error",
options: {
hooks: [
{
name: "useCustomHook",
stableResult: ["setMyState"],
},
],
},
},
}
```
This will allow the following to be validated:
```js
const { myState, setMyState } = useCustomHook();
const toggleMyState = useCallback(() => {
setMyState(!myState);
}, [myState]); // Only `myState` needs to be specified here.
```
- [#​7201](https://redirect.github.com/biomejs/biome/pull/7201)
[`2afaa49`](https://redirect.github.com/biomejs/biome/commit/2afaa49b814b12b52a1ffa06ed6c67d21ea57e1a)
Thanks [@​Conaclos](https://redirect.github.com/Conaclos)! -
Implemented
[#​7174](https://redirect.github.com/biomejs/biome/issues/7174).
[`useConst`](https://biomejs.dev/linter/rules/use-const/) no longer
reports variables that are read before being written.
Previously, `useConst` reported uninitialised variables that were read
in an inner function before being written, as shown in the following
example:
```js
let v;
function f() {
return v;
}
v = 0;
```
This can produce false positives in the case where `f` is called before
`v` has been written, as in the following code:
```js
let v;
function f() {
return v;
}
console.log(f()); // print `undefined`
v = 0;
```
Although this is an expected behavior of the original implementation, we
consider it problematic since the rule’s fix is marked as safe.
To avoid false positives like this, the rule now ignores the previous
examples.
However, this has the disadvantage of resulting in false negatives, such
as not reporting the first example.
##### Patch Changes
- [#​7156](https://redirect.github.com/biomejs/biome/pull/7156)
[`137d111`](https://redirect.github.com/biomejs/biome/commit/137d1118e4598a0ef2c0104e45cb00a8bf179199)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​7152](https://redirect.github.com/biomejs/biome/issues/7152).
Now the rule `noDuplicateFontNames` correctly detects font names with
spaces e.g. `Liberation Mono`. The diagnostic of the rule now points to
the first instances of the repeated font.
The following example doesn't trigger the rule anymore:
```css
c {
font-family:
SF Mono,
Liberation Mono,
sans-serif;
}
d {
font:
1em SF Mono,
Liberation Mono,
sans-serif;
}
```
- [#​6907](https://redirect.github.com/biomejs/biome/pull/6907)
[`7331bb9`](https://redirect.github.com/biomejs/biome/commit/7331bb9979143c355d861eadcde4f075e6b70910)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Added a new **experimental option** that allows parsing of `.html` files
that contain interpolation syntax.
```json5
// biome.json
{
html: {
// This is the new, experimental option.
parser: {
interpolation: true,
},
},
}
```
```html
<h1>{{ $title }}</h1>
```
- [#​7124](https://redirect.github.com/biomejs/biome/pull/7124)
[`3f436b8`](https://redirect.github.com/biomejs/biome/commit/3f436b84bb62320c16c1ca1ac5b419e4d9abefb3)
Thanks [@​Jayllyz](https://redirect.github.com/Jayllyz)! - Added
the rule
[`useMaxParams`](https://biomejs.dev/linter/rules/use-max-params).
This rule enforces a maximum number of parameters for functions to
improve code readability and maintainability. Functions with many
parameters are difficult to read, understand, and maintain because they
require memorizing parameter order and types.
```js
// Invalid - too many parameters (default max: 4)
function processData(
name,
age,
email,
phone,
address,
city,
country,
zipCode,
) {
// ...
}
// Valid - within parameter limit
function processData(userData) {
const { name, age, email, phone, address, city, country, zipCode } =
userData;
// ...
}
function calculateSum(a, b, c) {
return a + b + c;
}
```
- [#​7161](https://redirect.github.com/biomejs/biome/pull/7161)
[`1a14a59`](https://redirect.github.com/biomejs/biome/commit/1a14a59c52f9389220e7682de5632b7d7291a4e4)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​7160](https://redirect.github.com/biomejs/biome/issues/7160).
Now Biome correctly computes ignored files when using
`formatter.includes`, `linter.includes` and `assist.includes` inside
nested configurations that use `"extends": "//"`.
- [#​7081](https://redirect.github.com/biomejs/biome/pull/7081)
[`a081bbe`](https://redirect.github.com/biomejs/biome/commit/a081bbef37a4b329ace1cb0eb88c36f6c6162af1)
Thanks [@​Jayllyz](https://redirect.github.com/Jayllyz)! - Added
the rule
[`noNextAsyncClientComponent`](https://biomejs.dev/linter/rules/no-next-async-client-component).
This rule prevents the use of async functions for client components in
Next.js applications. Client components marked with "use client"
directive should not be async as this can cause hydration mismatches,
break component rendering lifecycle, and lead to unexpected behavior
with React's concurrent features.
```jsx
"use client";
// Invalid - async client component
export default async function MyComponent() {
return <div>Hello</div>;
}
// Valid - synchronous client component
export default function MyComponent() {
return <div>Hello</div>;
}
```
- [#​7171](https://redirect.github.com/biomejs/biome/pull/7171)
[`5241690`](https://redirect.github.com/biomejs/biome/commit/5241690265c584cfb4e6827e82a496801f039197)
Thanks [@​siketyan](https://redirect.github.com/siketyan)! - Fixed
[#​7162](https://redirect.github.com/biomejs/biome/issues/7162):
The `noUndeclaredDependencies` rule now considers a type-only import as
a dev dependency.
For example, the following code is no longer reported:
**`package.json`**:
```json
{
"devDependencies": {
"type-fest": "*"
}
}
```
**`foo.ts`**:
```ts
import type { SetRequired } from "type-fest";
```
Note that you still need to declare the package in the `devDependencies`
section in `package.json`.
#### What's Changed
- feat(cli): enhanced summary reporter by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/6731](https://redirect.github.com/biomejs/biome/pull/6731)
- feat(biome\_js\_analyze): allow specifying stable object keys in
`useExhaustiveDependencies` configuration by
[@​josh-](https://redirect.github.com/josh-) in
[https://github.com/biomejs/biome/pull/6398](https://redirect.github.com/biomejs/biome/pull/6398)
- feat(noRestrictedImports): add the patterns option by
[@​sakai-ast](https://redirect.github.com/sakai-ast) in
[https://github.com/biomejs/biome/pull/5506](https://redirect.github.com/biomejs/biome/pull/5506)
- feat: support configureable sorting mode for imports, keys and
attributes by
[@​nazarhussain](https://redirect.github.com/nazarhussain) in
[https://github.com/biomejs/biome/pull/6506](https://redirect.github.com/biomejs/biome/pull/6506)
- feat(wasm): expose new functions by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/6896](https://redirect.github.com/biomejs/biome/pull/6896)
- ci: sync `next` branch to the website repo by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7011](https://redirect.github.com/biomejs/biome/pull/7011)
- feat(wasm): expose Workspace::scan\_project\_folder by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7005](https://redirect.github.com/biomejs/biome/pull/7005)
- feat(formatter): add option to split binary expressions before
operators by [@​bavalpey](https://redirect.github.com/bavalpey) in
[https://github.com/biomejs/biome/pull/6159](https://redirect.github.com/biomejs/biome/pull/6159)
- feat(qwik): add domain setup and enable some pre-existing rules by
[@​ptkagori](https://redirect.github.com/ptkagori) in
[https://github.com/biomejs/biome/pull/6923](https://redirect.github.com/biomejs/biome/pull/6923)
- feat(core): scanner v2 by
[@​arendjr](https://redirect.github.com/arendjr) in
[https://github.com/biomejs/biome/pull/6989](https://redirect.github.com/biomejs/biome/pull/6989)
- chore: tweak CodeRabbit by
[@​arendjr](https://redirect.github.com/arendjr) in
[https://github.com/biomejs/biome/pull/7132](https://redirect.github.com/biomejs/biome/pull/7132)
- perf: minor performance tweaks by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7122](https://redirect.github.com/biomejs/biome/pull/7122)
- fix: revive wasm build by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7136](https://redirect.github.com/biomejs/biome/pull/7136)
- feat(lint): add `ignoreTypes` option to the `noImportCycles` rule by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7017](https://redirect.github.com/biomejs/biome/pull/7017)
- fix: set language of noVueDataObjectDeclaration to js by
[@​dyc3](https://redirect.github.com/dyc3) in
[https://github.com/biomejs/biome/pull/7144](https://redirect.github.com/biomejs/biome/pull/7144)
- docs: remove the mention of a fix by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7146](https://redirect.github.com/biomejs/biome/pull/7146)
- ci: use `github.sha` for dispatch event on release by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7145](https://redirect.github.com/biomejs/biome/pull/7145)
- chore(lint): version released rules by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7147](https://redirect.github.com/biomejs/biome/pull/7147)
- chore(lint): remove extra `v` from rule metadata by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7150](https://redirect.github.com/biomejs/biome/pull/7150)
- docs(changelog): fix wrong `useConsistentTypeDefinitions` URL by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7151](https://redirect.github.com/biomejs/biome/pull/7151)
- feat(analyze/js): add `useMaxParams` by
[@​Jayllyz](https://redirect.github.com/Jayllyz) in
[https://github.com/biomejs/biome/pull/7124](https://redirect.github.com/biomejs/biome/pull/7124)
- feat(analyze/js): add `noNextAsyncClientComponent` rule in Next domain
by [@​Jayllyz](https://redirect.github.com/Jayllyz) in
[https://github.com/biomejs/biome/pull/7081](https://redirect.github.com/biomejs/biome/pull/7081)
- refactor(test): make generated snapshot tests have module stucture
that matches folder structure by
[@​dyc3](https://redirect.github.com/dyc3) in
[https://github.com/biomejs/biome/pull/7163](https://redirect.github.com/biomejs/biome/pull/7163)
- fix(core): included files in nested configurations by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7161](https://redirect.github.com/biomejs/biome/pull/7161)
- feat(parser/html): text expressions in attributes by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/6907](https://redirect.github.com/biomejs/biome/pull/6907)
- feat: promote rules by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7137](https://redirect.github.com/biomejs/biome/pull/7137)
- fix(linter): false positive for `noDuplicateFontNames` by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7156](https://redirect.github.com/biomejs/biome/pull/7156)
- feat(parse/tailwind): handle most basenames with dashes by
[@​dyc3](https://redirect.github.com/dyc3) in
[https://github.com/biomejs/biome/pull/7068](https://redirect.github.com/biomejs/biome/pull/7068)
- feat(parser/tailwind): support arbitrary candidates by
[@​dyc3](https://redirect.github.com/dyc3) in
[https://github.com/biomejs/biome/pull/7086](https://redirect.github.com/biomejs/biome/pull/7086)
- refactor: use if-let-chain if possible (applying clippy fixes) by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7169](https://redirect.github.com/biomejs/biome/pull/7169)
- build: upgrade to Rust 1.89 by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7170](https://redirect.github.com/biomejs/biome/pull/7170)
- feat(resolver): resolve extension alias by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7158](https://redirect.github.com/biomejs/biome/pull/7158)
- chore(coderabbit): dont review generated files by
[@​Jayllyz](https://redirect.github.com/Jayllyz) in
[https://github.com/biomejs/biome/pull/7172](https://redirect.github.com/biomejs/biome/pull/7172)
- fix(yaml\_parser): tokens out of order by
[@​vohoanglong0107](https://redirect.github.com/vohoanglong0107)
in
[https://github.com/biomejs/biome/pull/7168](https://redirect.github.com/biomejs/biome/pull/7168)
- chore(deps): update github-actions by
[@​renovate](https://redirect.github.com/renovate)\[bot]
in[https://github.com/biomejs/biome/pull/7178](https://redirect.github.com/biomejs/biome/pull/7178)8
- chore(deps): update rust crate camino to 1.1.11 by
[@​renovate](https://redirect.github.com/renovate)\[bot]
in[https://github.com/biomejs/biome/pull/7180](https://redirect.github.com/biomejs/biome/pull/7180)0
- chore(deps): update rust crate hashbrown to 0.15.5 by
[@​renovate](https://redirect.github.com/renovate)\[bot]
in[https://github.com/biomejs/biome/pull/7181](https://redirect.github.com/biomejs/biome/pull/7181)1
- chore(deps): update dependency
[@​types/node](https://redirect.github.com/types/node) to v22.17.1
by [@​renovate](https://redirect.github.com/renovate)\[bot]
in[https://github.com/biomejs/biome/pull/7177](https://redirect.github.com/biomejs/biome/pull/7177)7
- chore(deps): update docker/dockerfile:1 docker digest to
[`3838752`](https://redirect.github.com/biomejs/biome/commit/3838752) by
[@​renovate](https://redirect.github.com/renovate)\[bot]
in[https://github.com/biomejs/biome/pull/7175](https://redirect.github.com/biomejs/biome/pull/7175)5
- chore(deps): update
[@​biomejs](https://redirect.github.com/biomejs) packages by
[@​renovate](https://redirect.github.com/renovate)\[bot]
in[https://github.com/biomejs/biome/pull/7176](https://redirect.github.com/biomejs/biome/pull/7176)6
- chore(deps): update rust crate proc-macro2 to 1.0.96 by
[@​renovate](https://redirect.github.com/renovate)\[bot]
in[https://github.com/biomejs/biome/pull/7182](https://redirect.github.com/biomejs/biome/pull/7182)2
- chore(deps): update rust crate tower-lsp-server to 0.22.1 by
[@​renovate](https://redirect.github.com/renovate)\[bot]
in[https://github.com/biomejs/biome/pull/7183](https://redirect.github.com/biomejs/biome/pull/7183)3
- chore: fix typos `messsage` → `message` by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7186](https://redirect.github.com/biomejs/biome/pull/7186)
- chore: fix typos in biome\_cli crates by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7185](https://redirect.github.com/biomejs/biome/pull/7185)
- feat(lint): add `useBiomeIgnoreFolder` and `noBiomeFirstException` by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7159](https://redirect.github.com/biomejs/biome/pull/7159)
- chore: fix typos in biome css analyze crates by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7187](https://redirect.github.com/biomejs/biome/pull/7187)
- chore: fix various typos in biome css formatter crates by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7190](https://redirect.github.com/biomejs/biome/pull/7190)
- docs: fix path to perfectionist docs by
[@​azat-io](https://redirect.github.com/azat-io) in
[https://github.com/biomejs/biome/pull/7193](https://redirect.github.com/biomejs/biome/pull/7193)
- docs: fix broken link, update rule count by
[@​9romise](https://redirect.github.com/9romise) in
[https://github.com/biomejs/biome/pull/7194](https://redirect.github.com/biomejs/biome/pull/7194)
- fix: consider type-only imports as dev dependency by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7171](https://redirect.github.com/biomejs/biome/pull/7171)
- chore: add Vercel to sponsors by
[@​arendjr](https://redirect.github.com/arendjr) in
[https://github.com/biomejs/biome/pull/7200](https://redirect.github.com/biomejs/biome/pull/7200)
- Revert "feat(resolver): resolve extension alias" by
[@​siketyan](https://redirect.github.com/siketyan) in
[https://github.com/biomejs/biome/pull/7199](https://redirect.github.com/biomejs/biome/pull/7199)
- feat(useConst): don't report uninit variables read befroe to be
written by [@​Conaclos](https://redirect.github.com/Conaclos) in
[https://github.com/biomejs/biome/pull/7201](https://redirect.github.com/biomejs/biome/pull/7201)
- feat(core): add support for `.graphqls` files by
[@​avshalomt2](https://redirect.github.com/avshalomt2) in
[https://github.com/biomejs/biome/pull/7118](https://redirect.github.com/biomejs/biome/pull/7118)
- chore: merge `next` into `main` by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7167](https://redirect.github.com/biomejs/biome/pull/7167)
- fix(core): fix semver handling by
[@​arendjr](https://redirect.github.com/arendjr) in
[https://github.com/biomejs/biome/pull/7197](https://redirect.github.com/biomejs/biome/pull/7197)
- chore: fix changesets by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7202](https://redirect.github.com/biomejs/biome/pull/7202)
- docs: update documentation for `useForOf`; fix typos by
[@​Bertie690](https://redirect.github.com/Bertie690) in
[https://github.com/biomejs/biome/pull/7204](https://redirect.github.com/biomejs/biome/pull/7204)
- chore: fix typos in biome formatter and grit crates by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7207](https://redirect.github.com/biomejs/biome/pull/7207)
- chore: fix typos in biome html crates by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7208](https://redirect.github.com/biomejs/biome/pull/7208)
- chore: fix typos in biome crates by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7215](https://redirect.github.com/biomejs/biome/pull/7215)
- chore: fix typos in biome js analyze crate by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7210](https://redirect.github.com/biomejs/biome/pull/7210)
- chore: fix typos in biome js formatter crate by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7213](https://redirect.github.com/biomejs/biome/pull/7213)
- chore: fix various typos across codebase by
[@​JamBalaya56562](https://redirect.github.com/JamBalaya56562) in
[https://github.com/biomejs/biome/pull/7216](https://redirect.github.com/biomejs/biome/pull/7216)
- ci: release by
[@​github-actions](https://redirect.github.com/github-actions)\[bot]
in[https://github.com/biomejs/biome/pull/7157](https://redirect.github.com/biomejs/biome/pull/7157)7
#### New Contributors
- [@​josh-](https://redirect.github.com/josh-) made their first
contribution in
[https://github.com/biomejs/biome/pull/6398](https://redirect.github.com/biomejs/biome/pull/6398)
- [@​sakai-ast](https://redirect.github.com/sakai-ast) made their
first contribution in
[https://github.com/biomejs/biome/pull/5506](https://redirect.github.com/biomejs/biome/pull/5506)
- [@​nazarhussain](https://redirect.github.com/nazarhussain) made
their first contribution in
[https://github.com/biomejs/biome/pull/6506](https://redirect.github.com/biomejs/biome/pull/6506)
- [@​bavalpey](https://redirect.github.com/bavalpey) made their
first contribution in
[https://github.com/biomejs/biome/pull/6159](https://redirect.github.com/biomejs/biome/pull/6159)
- [@​azat-io](https://redirect.github.com/azat-io) made their
first contribution in
[https://github.com/biomejs/biome/pull/7193](https://redirect.github.com/biomejs/biome/pull/7193)
- [@​9romise](https://redirect.github.com/9romise) made their
first contribution in
[https://github.com/biomejs/biome/pull/7194](https://redirect.github.com/biomejs/biome/pull/7194)
- [@​avshalomt2](https://redirect.github.com/avshalomt2) made
their first contribution in
[https://github.com/biomejs/biome/pull/7118](https://redirect.github.com/biomejs/biome/pull/7118)
- [@​Bertie690](https://redirect.github.com/Bertie690) made their
first contribution in
[https://github.com/biomejs/biome/pull/7204](https://redirect.github.com/biomejs/biome/pull/7204)
**Full Changelog**:
https://github.com/biomejs/biome/compare/[@​biomejs/biome](https://redirect.github.com/biomejs/biome)@​2.1.4...[@​biomejs/biome](https://redirect.github.com/biomejs/biome)@​2.2.0
###
[`v2.1.4`](https://redirect.github.com/biomejs/biome/releases/tag/%40biomejs/biome%402.1.4):
Biome CLI v2.1.4
#### 2.1.4
##### Patch Changes
- [#​7121](https://redirect.github.com/biomejs/biome/pull/7121)
[`b9642ab`](https://redirect.github.com/biomejs/biome/commit/b9642abc6d05135180f4243df30524cf40ba12df)
Thanks [@​arendjr](https://redirect.github.com/arendjr)! - Fixed
[#​7111](https://redirect.github.com/biomejs/biome/issues/7111):
Imported symbols using aliases are now correctly recognised.
- [#​7103](https://redirect.github.com/biomejs/biome/pull/7103)
[`80515ec`](https://redirect.github.com/biomejs/biome/commit/80515ecad8cc272feeae4c17762d3b150acd88e7)
Thanks [@​omasakun](https://redirect.github.com/omasakun)! - Fixed
[#​6933](https://redirect.github.com/biomejs/biome/issues/6933)
and
[#​6994](https://redirect.github.com/biomejs/biome/issues/6994).
When the values of private member assignment expressions, increment
expressions, etc. are used, those private members are no longer marked
as unused.
- [#​6887](https://redirect.github.com/biomejs/biome/pull/6887)
[`0cc38f5`](https://redirect.github.com/biomejs/biome/commit/0cc38f59cd9ddf0fdcd12d6f8cb3642743cc4406)
Thanks [@​ptkagori](https://redirect.github.com/ptkagori)! - Added
the
[`noQwikUseVisibleTask`](https://biomejs.dev/linter/rules/no-qwik-use-visible-task)
rule to Qwik.
This rule is intended for use in Qwik applications to warn about the use
of `useVisibleTask$()` functions which require careful consideration
before use.
**Invalid:**
```js
useVisibleTask$(() => {
console.log("Component is visible");
});
```
**Valid:**
```js
useTask$(() => {
console.log("Task executed");
});
```
- [#​7084](https://redirect.github.com/biomejs/biome/pull/7084)
[`50ca155`](https://redirect.github.com/biomejs/biome/commit/50ca1553f08348ab1e92dc7cf04013c85ff743a4)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Added the new nursery rule `noUnnecessararyConditions`, which detects
whenever some conditions don't
change during the life cycle of the program, and truthy or false, hence
deemed redundant.
For example, the following snippets will trigger the rule:
```js
// Always truthy literal conditions
if (true) {
console.log("always runs");
}
```
```ts
// Unnecessary condition on constrained string type
function foo(arg: "bar" | "baz") {
if (arg) {
// This check is unnecessary
}
}
```
- [#​6887](https://redirect.github.com/biomejs/biome/pull/6887)
[`0cc38f5`](https://redirect.github.com/biomejs/biome/commit/0cc38f59cd9ddf0fdcd12d6f8cb3642743cc4406)
Thanks [@​ptkagori](https://redirect.github.com/ptkagori)! - Added
the [`useImageSize`](https://biomejs.dev/linter/rules/use-image-size)
rule to Biome.
The `useImageSize` rule enforces the use of width and height attributes
on `<img>` elements for performance reasons. This rule is intended to
prevent layout shifts and improve Core Web Vitals by ensuring images
have explicit dimensions.
**Invalid:**
```jsx
<img src="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/image.png" />
<img src="https://example.com/image.png" />
<img src="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/image.png" width="200" />
<img src="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/image.png" height="200" />
```
**Valid:**
```jsx
<img width="200" height="600" src="/static/images/portrait-01.webp" />
<img width="100" height="100" src="https://example.com/image.png" />
```
- [#​6887](https://redirect.github.com/biomejs/biome/pull/6887)
[`0cc38f5`](https://redirect.github.com/biomejs/biome/commit/0cc38f59cd9ddf0fdcd12d6f8cb3642743cc4406)
Thanks [@​ptkagori](https://redirect.github.com/ptkagori)! - Added
the [`useAnchorHref`](https://biomejs.dev/linter/rules/use-anchor-href)
rule to Biome.
The `useAnchorHref` rule enforces the presence of an `href` attribute on
`<a>` elements in JSX. This rule is intended to ensure that anchor
elements are always valid and accessible.
**Invalid:**
```jsx
<a>Link</a>
```
```jsx
<a target="_blank">External</a>
```
**Valid:**
```jsx
<a href="/home">Home</a>
```
```jsx
<a href="https://example.com" target="_blank">
External
</a>
```
- [#​7100](https://redirect.github.com/biomejs/biome/pull/7100)
[`29fcb05`](https://redirect.github.com/biomejs/biome/commit/29fcb0540ed817d92a3f663132b658541706765b)
Thanks [@​Jayllyz](https://redirect.github.com/Jayllyz)! - Added
the rule
[`noNonNullAssertedOptionalChain`](https://biomejs.dev/linter/rules/no-non-null-asserted-optional-chain).
This rule prevents the use of non-null assertions (`!`) immediately
after optional chaining expressions (`?.`). Optional chaining is
designed to safely handle nullable values by returning `undefined` when
the chain encounters `null` or `undefined`. Using a non-null assertion
defeats this purpose and can lead to runtime errors.
```ts
// Invalid - non-null assertion after optional chaining
obj?.prop!;
obj?.method()!;
obj?.[key]!;
obj?.prop!;
// Valid - proper optional chaining usage
obj?.prop;
obj?.method();
obj?.prop ?? defaultValue;
obj!.prop?.method();
```
- [#​7129](https://redirect.github.com/biomejs/biome/pull/7129)
[`9f4538a`](https://redirect.github.com/biomejs/biome/commit/9f4538ab8bad8a974b8e408641b1fd4770d26c79)
Thanks [@​drwpow](https://redirect.github.com/drwpow)! - Removed
option, combobox, listbox roles from
[useSemanticElements](https://biomejs.dev/linter/rules/use-semantic-elements/)
suggestions
- [#​7106](https://redirect.github.com/biomejs/biome/pull/7106)
[`236deaa`](https://redirect.github.com/biomejs/biome/commit/236deaadca077051f6e2ef01cfdbbc55cc1c3d78)
Thanks [@​arendjr](https://redirect.github.com/arendjr)! - Fixed
[#​6985](https://redirect.github.com/biomejs/biome/issues/6985):
Inference of return types no longer mistakenly picks up return types of
nested functions.
- [#​7102](https://redirect.github.com/biomejs/biome/pull/7102)
[`d3118c6`](https://redirect.github.com/biomejs/biome/commit/d3118c6ac3bba0ca29251fa7fc5ba36a9e4456b0)
Thanks [@​omasakun](https://redirect.github.com/omasakun)! - Fixed
[#​7101](https://redirect.github.com/biomejs/biome/issues/7101):
[`noUnusedPrivateClassMembers`](https://biomejs.dev/linter/rules/no-unused-private-class-members/)
now handles members declared as part of constructor arguments:
1. If a class member defined in a constructor argument is only used
within the constructor, it removes the `private` modifier and makes it a
plain method argument.
2. If it is not used at all, it will prefix it with an underscore,
similar to `noUnusedFunctionParameter`.
- [#​7104](https://redirect.github.com/biomejs/biome/pull/7104)
[`5395297`](https://redirect.github.com/biomejs/biome/commit/53952972cd5786cfdcc3deda0c226d6488ef1aee)
Thanks [@​harxki](https://redirect.github.com/harxki)! - Reverting
to prevent regressions around ref handling
- [#​7143](https://redirect.github.com/biomejs/biome/pull/7143)
[`1a6933a`](https://redirect.github.com/biomejs/biome/commit/1a6933aaf2c5b57d70a60d607b5cab68d532eeb4)
Thanks [@​siketyan](https://redirect.github.com/siketyan)! - Fixed
[#​6799](https://redirect.github.com/biomejs/biome/issues/6799):
The
[`noImportCycles`](https://biomejs.dev/linter/rules/no-import-cycles/)
rule now ignores type-only imports if the new `ignoreTypes` option is
enabled (enabled by default).
> \[!WARNING]
> **Breaking Change**: The `noImportCycles` rule no longer detects
import cycles that include one or more type-only imports by default.
> To keep the old behaviour, you can turn off the `ignoreTypes` option
explicitly:
>
> ```json
> {
> "linter": {
> "rules": {
> "nursery": {
> "noImportCycles": {
> "options": {
> "ignoreTypes": false
> }
> }
> }
> }
> }
> }
> ```
- [#​7099](https://redirect.github.com/biomejs/biome/pull/7099)
[`6cc84cb`](https://redirect.github.com/biomejs/biome/commit/6cc84cb547480f83119d2cba5542e2d2afc65b4d)
Thanks [@​arendjr](https://redirect.github.com/arendjr)! - Fixed
[#​7062](https://redirect.github.com/biomejs/biome/issues/7062):
Biome now correctly considers extended configs when determining the mode
for the scanner.
- [#​6887](https://redirect.github.com/biomejs/biome/pull/6887)
[`0cc38f5`](https://redirect.github.com/biomejs/biome/commit/0cc38f59cd9ddf0fdcd12d6f8cb3642743cc4406)
Thanks [@​ptkagori](https://redirect.github.com/ptkagori)! - Added
the
[`useQwikClasslist`](https://biomejs.dev/linter/rules/use-qwik-classlist)
rule to Biome.
This rule is intended for use in Qwik applications to encourage the use
of the built-in `class` prop (which accepts a string, object, or array)
instead of the `classnames` utility library.
**Invalid:**
```jsx
<div class={classnames({ active: true, disabled: false })} />
```
**Valid:**
```jsx
<div classlist={{ active: true, disabled: false }} />
```
- [#​7019](https://redirect.github.com/biomejs/biome/pull/7019)
[`57c15e6`](https://redirect.github.com/biomejs/biome/commit/57c15e6df5b6257ffb9f69d7614c3455a1f5c870)
Thanks [@​fireairforce](https://redirect.github.com/fireairforce)!
- Added support in the JS parser for `import source`(a [stage3
proposal](https://redirect.github.com/tc39/proposal-source-phase-imports)).
The syntax looks like:
```ts
import source foo from "<specifier>";
```
- [#​7053](https://redirect.github.com/biomejs/biome/pull/7053)
[`655049e`](https://redirect.github.com/biomejs/biome/commit/655049e9e38f536b33fff6d7b160299f0b446908)
Thanks
[@​jakeleventhal](https://redirect.github.com/jakeleventhal)! -
Added the
[`useConsistentTypeDefinitions`](https://biomejs.dev/rules/use-consistent-type-definitions)
rule.
This rule enforces consistent usage of either `interface` or `type` for
object type definitions in TypeScript.
The rule accepts an option to specify the preferred style:
- `interface` (default): Prefer using `interface` for object type
definitions
- `type`: Prefer using `type` for object type definitions
Examples:
```ts
// With default option (interface)
// ❌ Invalid
type Point = { x: number; y: number };
// ✅ Valid
interface Point {
x: number;
y: number;
}
// With option { style: "type" }
// ❌ Invalid
interface Point {
x: number;
y: number;
}
// ✅ Valid
type Point = { x: number; y: number };
```
The rule will automatically fix simple cases where conversion is
straightforward.
#### What's Changed
- ci: use faster runners on Windows by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7041](https://redirect.github.com/biomejs/biome/pull/7041)
- chore: use own semver parser by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7061](https://redirect.github.com/biomejs/biome/pull/7061)
- docs(analyze): about "Services" by
[@​dyc3](https://redirect.github.com/dyc3) in
[https://github.com/biomejs/biome/pull/7058](https://redirect.github.com/biomejs/biome/pull/7058)
- feat(parse/tailwind): start implementing lexer/parser by
[@​dyc3](https://redirect.github.com/dyc3) in
[https://github.com/biomejs/biome/pull/6986](https://redirect.github.com/biomejs/biome/pull/6986)
- feat(qwik): add few new lint rules by
[@​ptkagori](https://redirect.github.com/ptkagori) in
[https://github.com/biomejs/biome/pull/6887](https://redirect.github.com/biomejs/biome/pull/6887)
- chore: add Claude sub-agents by
[@​ematipico](https://redirect.github.com/ematipico) in
[https://github.com/biomejs/biome/pull/7066](https://redirect.github.com/biomejs/biome/pull/7066)
- feat(format/html): implement suppression comments by
[@​dyc3](https://redirect.github.com/dyc3) in
[https://github.com/biomejs/biome/pull/5356](https://redirect.github.com/biomejs/biome/pull/5356)
- feat: add tailwind domain by [@​dyc3](https://redirec
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on
Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule
defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/alecthomas/chroma).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS42MC40IiwidXBkYXRlZEluVmVyIjoiNDEuNzEuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent bd10a05 commit 2d9c0d1Copy full SHA for 2d9c0d1
File tree
Expand file treeCollapse file tree
12 files changed
+10
-10
lines changedFilter options
- bin
- cmd
- chromad
- chroma
Expand file treeCollapse file tree
12 files changed
+10
-10
lines changedbin/.biome-2.1.3.pkg renamed to bin/.biome-2.2.0.pkg
Copy file name to clipboardFile renamed without changes.
bin/.esbuild-0.25.8.pkg renamed to bin/.esbuild-0.25.9.pkg
Copy file name to clipboardFile renamed without changes.
bin/.go-1.24.5.pkg renamed to bin/.go-1.25.0.pkg
Copy file name to clipboardFile renamed without changes.
bin/.uv-0.8.4.pkg renamed to bin/.uv-0.8.12.pkg
Copy file name to clipboardFile renamed without changes.
bin/biome
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + |
bin/esbuild
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + |
bin/go
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + |
bin/gofmt
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + |
bin/uv
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + |
bin/uvx
Copy file name to clipboard+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + |
0 commit comments