Skip to content

Commit a6b8810

Browse files
chore(deps): update dependency @biomejs/biome to v2.1.3 (#262)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [@biomejs/biome](https://biomejs.dev) ([source](https://redirect.github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | [`2.1.2` -> `2.1.3`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.1.2/2.1.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@biomejs%2fbiome/2.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@biomejs%2fbiome/2.1.2/2.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>biomejs/biome (@&#8203;biomejs/biome)</summary> ### [`v2.1.3`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#213) [Compare Source](https://redirect.github.com/biomejs/biome/compare/@biomejs/[email protected]...@biomejs/[email protected]) ##### Patch Changes - [#&#8203;7057](https://redirect.github.com/biomejs/biome/pull/7057) [`634a667`](https://redirect.github.com/biomejs/biome/commit/634a667ac8e9f74a4633895eab4bd4695ffffa1d) Thanks [@&#8203;mdevils](https://redirect.github.com/mdevils)! - Added the rule [`noVueReservedKeys`](https://biomejs.dev/linter/rules/no-vue-reserved-keys/), which prevents the use of reserved Vue keys. It prevents the use of Vue reserved keys such as those starting with `# @&#8203;biomejs/biome (like `$el`, `$data`, `$props`) and keys starting with `\_\` in data properties, which can cause conflicts and unexpected behavior in Vue components. ##### Invalid example ```vue <script> export default { data: { $el: "", _foo: "bar", }, }; </script> ``` ```vue <script> export default { computed: { $data() { return this.someData; }, }, }; </script> ``` ##### Valid examples ```vue <script> export default { data() { return { message: "Hello Vue!", count: 0, }; }, }; </script> ``` ```vue <script> export default { computed: { displayMessage() { return this.message; }, }, }; </script> ``` - [#&#8203;6941](https://redirect.github.com/biomejs/biome/pull/6941) [`734d708`](https://redirect.github.com/biomejs/biome/commit/734d708bd84f32d72e5972cc27c194d5da46a3c0) Thanks [@&#8203;JamBalaya56562](https://redirect.github.com/JamBalaya56562)! - Added `@eslint-react/no-nested-component-definitions` as a rule source for `noNestedComponentDefinitions`. Now it will get picked up by `biome migrate --eslint`. - [#&#8203;6463](https://redirect.github.com/biomejs/biome/pull/6463) [`0a16d54`](https://redirect.github.com/biomejs/biome/commit/0a16d54c2cffbf13c5144b53021923734f1c234e) Thanks [@&#8203;JamBalaya56562](https://redirect.github.com/JamBalaya56562)! - Fixed a website link for the `useComponentExportOnlyModules` linter rule to point to the correct URL. - [#&#8203;6944](https://redirect.github.com/biomejs/biome/pull/6944) [`e53f2fe`](https://redirect.github.com/biomejs/biome/commit/e53f2fe03827a8dcad2184178ecfaee0e35af992) Thanks [@&#8203;sterliakov](https://redirect.github.com/sterliakov)! - Fixed [#&#8203;6910](https://redirect.github.com/biomejs/biome/issues/6910): Biome now ignores type casts and assertions when evaluating numbers for `noMagicNumbers` rule. - [#&#8203;6991](https://redirect.github.com/biomejs/biome/pull/6991) [`476cd55`](https://redirect.github.com/biomejs/biome/commit/476cd55e4e5b1b03335e14c65ad01b2bbb4b8d42) Thanks [@&#8203;denbezrukov](https://redirect.github.com/denbezrukov)! - Fixed [#&#8203;6973](https://redirect.github.com/biomejs/biome/issues/6973): Add support for parsing the :active-view-transition-type() pseudo-class ```css :active-view-transition-type(first second) { } ``` - [#&#8203;6992](https://redirect.github.com/biomejs/biome/pull/6992) [`0b1e194`](https://redirect.github.com/biomejs/biome/commit/0b1e19474e323c7354fccff0c5654d47024c7b91) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Added a new JSON rule called `noQuickfixBiome`, which disallow the use of code action `quickfix.biome` inside code editor settings. - [#&#8203;6943](https://redirect.github.com/biomejs/biome/pull/6943) [`249306d`](https://redirect.github.com/biomejs/biome/commit/249306db32b6a912f39d2c88a1b0d702b8b97a9b) Thanks [@&#8203;JamBalaya56562](https://redirect.github.com/JamBalaya56562)! - Fixed `@vitest/eslint-plugin` source url. - [#&#8203;6947](https://redirect.github.com/biomejs/biome/pull/6947) [`4c7ed0f`](https://redirect.github.com/biomejs/biome/commit/4c7ed0fda858424a21fb1766270aaa74838a46a1) Thanks [@&#8203;JamBalaya56562](https://redirect.github.com/JamBalaya56562)! - Fixed ESLint migration for the rule `prefer-for` from `eslint-plugin-solid` to Biome's `useForComponent`. - [#&#8203;6976](https://redirect.github.com/biomejs/biome/pull/6976) [`72ebadc`](https://redirect.github.com/biomejs/biome/commit/72ebadce0e192932d237d9a31c45cb230c8bbd91) Thanks [@&#8203;siketyan](https://redirect.github.com/siketyan)! - Fixed [#&#8203;6692](https://redirect.github.com/biomejs/biome/issues/6692): The rules `noUnusedVariables` and `noUnusedFunctionParameters` no longer cause an infinite loop when the suggested name is not applicable (e.g. the suggested name is already declared in the scope). - [#&#8203;6990](https://redirect.github.com/biomejs/biome/pull/6990) [`333f5d0`](https://redirect.github.com/biomejs/biome/commit/333f5d0a11dc1b2c029c657905bc73d3daf72477) Thanks [@&#8203;rvanlaarhoven](https://redirect.github.com/rvanlaarhoven)! - Fixed the documentation URL for `lint/correctness/noUnknownPseudoClass` - [#&#8203;7000](https://redirect.github.com/biomejs/biome/pull/7000) [`4021165`](https://redirect.github.com/biomejs/biome/commit/402116575ef570da02ccbce521645a3975b3e8ce) Thanks [@&#8203;harxki](https://redirect.github.com/harxki)! - Fixed [#&#8203;6795](https://redirect.github.com/biomejs/biome/issues/6795): `noUnassignedVariables` now correctly recognizes variables used in JSX `ref` attributes. - [#&#8203;7044](https://redirect.github.com/biomejs/biome/pull/7044) [`b091ddf`](https://redirect.github.com/biomejs/biome/commit/b091ddf73d323a6929b9601f05ede7e91e4d4cbb) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;6622](https://redirect.github.com/biomejs/biome/issues/6622), now the rule `useSemanticElements` works for JSX self-closing elements too. - [#&#8203;7014](https://redirect.github.com/biomejs/biome/pull/7014) [`c4864e8`](https://redirect.github.com/biomejs/biome/commit/c4864e85ebbb1bbfbb8274c59bb6af9413d8f157) Thanks [@&#8203;siketyan](https://redirect.github.com/siketyan)! - Fixed [#&#8203;6516](https://redirect.github.com/biomejs/biome/issues/6516): The `biome migrate` command no longer break the member list with trailing comments. - [#&#8203;6979](https://redirect.github.com/biomejs/biome/pull/6979) [`29cb6da`](https://redirect.github.com/biomejs/biome/commit/29cb6da9a1e8f20af59f5e681b9d2aa1a23e8b27) Thanks [@&#8203;unvalley](https://redirect.github.com/unvalley)! - Fixed [#&#8203;6767](https://redirect.github.com/biomejs/biome/issues/6767): `useSortedClasses` now correctly removes leading and trailing whitespace in className. Previously, trailing spaces in className were not fully removed. ```jsx // Think we have this code: <div className="text-sm font-bold " /> // Before: applied fix, but a trailing space was preserved <div className="font-bold text-sm " /> // After: applied fix, trailing spaces removed <div className="font-bold text-sm" /> ``` - [#&#8203;7055](https://redirect.github.com/biomejs/biome/pull/7055) [`ee4828d`](https://redirect.github.com/biomejs/biome/commit/ee4828da9be5898c67b7feabfaaa296ad172109f) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Added the nursery rule [`useReactFunctionComponents`](https://biomejs.dev/linter/rules/use-react-function-components/). This rule enforces the preference to use function components instead of class components. Valid: ```jsx function Foo() { return <div>Hello, world!</div>; } ``` Invalid: ```jsx class Foo extends React.Component { render() { return <div>Hello, world!</div>; } } ``` - [#&#8203;6924](https://redirect.github.com/biomejs/biome/pull/6924) [`2d21be9`](https://redirect.github.com/biomejs/biome/commit/2d21be9437fd77a1c534a1ea156d9a9421c17d30) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;113](https://redirect.github.com/biomejs/biome-zed/issues/113), where the Biome Language Server didn't correctly update the diagnostics when the configuration file is modified in the editor. Now the diagnostics are correctly updated every time the configuration file is modified and saved. - [#&#8203;6931](https://redirect.github.com/biomejs/biome/pull/6931) [`e6b2380`](https://redirect.github.com/biomejs/biome/commit/e6b238063f92bc95d951e3a78dac42408d0814c0) Thanks [@&#8203;arendjr](https://redirect.github.com/arendjr)! - Fixed [#&#8203;6915](https://redirect.github.com/biomejs/biome/issues/6915): `useHookAtTopLevel` no longer hangs when rules call themselves recursively. - [#&#8203;7012](https://redirect.github.com/biomejs/biome/pull/7012) [`01c0ab4`](https://redirect.github.com/biomejs/biome/commit/01c0ab43ad7785e093e5069dda1d5e6969958bf8) Thanks [@&#8203;siketyan](https://redirect.github.com/siketyan)! - Fixed [#&#8203;5837](https://redirect.github.com/biomejs/biome/issues/5837): Invalid suppression comments such as `biome-ignore-all-start` or `biome-ignore-all-end` no longer causes a panic. - [#&#8203;6949](https://redirect.github.com/biomejs/biome/pull/6949) [`48462f8`](https://redirect.github.com/biomejs/biome/commit/48462f81ba4e98a95236365a5f9759fc41c045d7) Thanks [@&#8203;fireairforce](https://redirect.github.com/fireairforce)! - Support parse `import defer`(which is a [stage3 proposal](https://redirect.github.com/tc39/proposal-defer-import-eval)). The syntax look like this: ```ts import defer * as foo from "<specifier>"; ``` - [#&#8203;6938](https://redirect.github.com/biomejs/biome/pull/6938) [`5feb5a6`](https://redirect.github.com/biomejs/biome/commit/5feb5a675adb246b04b1540cba16ff1c5fd49cb1) Thanks [@&#8203;vladimir-ivanov](https://redirect.github.com/vladimir-ivanov)! - Fixed [#&#8203;6919](https://redirect.github.com/biomejs/biome/issues/6919) and [#&#8203;6920](https://redirect.github.com/biomejs/biome/issues/6920): `useReadonlyClassProperties` now does checks for mutations in async class methods. Example: ```typescript class Counter3 { private counter: number; async count() { this.counter = 1; const counterString = `${this.counter++}`; } } ``` - [#&#8203;6942](https://redirect.github.com/biomejs/biome/pull/6942) [`cfda528`](https://redirect.github.com/biomejs/biome/commit/cfda528169dcceb8422a0488b39a3b1b27a24645) Thanks [@&#8203;sterliakov](https://redirect.github.com/sterliakov)! - Fixed [#&#8203;6939](https://redirect.github.com/biomejs/biome/issues/6939). Biome now understands `this` binding in classes outside of methods. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- 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/dylang/source-map-diff). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Ni4zIiwidXBkYXRlZEluVmVyIjoiNDEuNDYuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent b4b4d61 commit a6b8810

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"yargs-parser": "22.0.0"
3939
},
4040
"devDependencies": {
41-
"@biomejs/biome": "2.1.2",
41+
"@biomejs/biome": "2.1.3",
4242
"@types/yargs-parser": "21.0.3",
4343
"@vitest/coverage-v8": "^3.2.4",
4444
"ts-node": "10.9.2",

pnpm-lock.yaml

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)