@biomejs/biome 2.1.3
2.1.3
Patch Changes
-
#7057
634a667Thanks @mdevils! - Added the rulenoVueReservedKeys, which prevents the use of reserved Vue keys.It prevents the use of Vue reserved keys such as those starting with
# @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
<script> export default { data: { $el: "", _foo: "bar", }, }; </script><script> export default { computed: { $data() { return this.someData; }, }, }; </script>Valid examples
<script> export default { data() { return { message: "Hello Vue!", count: 0, }; }, }; </script><script> export default { computed: { displayMessage() { return this.message; }, }, }; </script> -
#6941
734d708Thanks @JamBalaya56562! - Added@eslint-react/no-nested-component-definitionsas a rule source fornoNestedComponentDefinitions. Now it will get picked up bybiome migrate --eslint. -
#6463
0a16d54Thanks @JamBalaya56562! - Fixed a website link for theuseComponentExportOnlyModuleslinter rule to point to the correct URL. -
#6944
e53f2feThanks @sterliakov! - Fixed #6910: Biome now ignores type casts and assertions when evaluating numbers fornoMagicNumbersrule. -
#6991
476cd55Thanks @denbezrukov! - Fixed #6973: Add support for parsing the :active-view-transition-type() pseudo-class:active-view-transition-type(first second) { } -
#6992
0b1e194Thanks @ematipico! - Added a new JSON rule callednoQuickfixBiome, which disallow the use of code actionquickfix.biomeinside code editor settings. -
#6943
249306dThanks @JamBalaya56562! - Fixed@vitest/eslint-pluginsource url. -
#6947
4c7ed0fThanks @JamBalaya56562! - Fixed ESLint migration for the ruleprefer-forfromeslint-plugin-solidto Biome'suseForComponent. -
#6976
72ebadcThanks @siketyan! - Fixed #6692: The rulesnoUnusedVariablesandnoUnusedFunctionParametersno longer cause an infinite loop when the suggested name is not applicable (e.g. the suggested name is already declared in the scope). -
#6990
333f5d0Thanks @rvanlaarhoven! - Fixed the documentation URL forlint/correctness/noUnknownPseudoClass -
#7000
4021165Thanks @harxki! - Fixed #6795:noUnassignedVariablesnow correctly recognizes variables used in JSXrefattributes. -
#7044
b091ddfThanks @ematipico! - Fixed #6622, now the ruleuseSemanticElementsworks for JSX self-closing elements too. -
#7014
c4864e8Thanks @siketyan! - Fixed #6516: Thebiome migratecommand no longer break the member list with trailing comments. -
#6979
29cb6daThanks @unvalley! - Fixed #6767:useSortedClassesnow correctly removes leading and trailing whitespace in className.Previously, trailing spaces in className were not fully removed.
// 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" /> -
#7055
ee4828dThanks @dyc3! - Added the nursery ruleuseReactFunctionComponents. This rule enforces the preference to use function components instead of class components.Valid:
function Foo() { return <div>Hello, world!</div>; }Invalid:
class Foo extends React.Component { render() { return <div>Hello, world!</div>; } } -
#6924
2d21be9Thanks @ematipico! - Fixed #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. -
#6931
e6b2380Thanks @arendjr! - Fixed #6915:useHookAtTopLevelno longer hangs when rules call themselves recursively. -
#7012
01c0ab4Thanks @siketyan! - Fixed #5837: Invalid suppression comments such asbiome-ignore-all-startorbiome-ignore-all-endno longer causes a panic. -
#6949
48462f8Thanks @fireairforce! - Support parseimport defer(which is a stage3 proposal). The syntax look like this:import defer * as foo from "<specifier>"; -
#6938
5feb5a6Thanks @vladimir-ivanov! - Fixed #6919 and #6920:useReadonlyClassPropertiesnow does checks for mutations in async class methods.Example:
class Counter3 { private counter: number; async count() { this.counter = 1; const counterString = `${this.counter++}`; } } -
#6942
cfda528Thanks @sterliakov! - Fixed #6939. Biome now understandsthisbinding in classes outside of methods.
What's Changed
- docs: explain how to document options by @ematipico in https://github.com/biomejs/biome/pull/6916
- chore: fix changelog by @dyc3 in https://github.com/biomejs/biome/pull/6917
- fix: update
useComponentExportOnlyModuleswebsite link by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6463 - fix(lsp): update diagnostics on watched files by @ematipico in https://github.com/biomejs/biome/pull/6924
- fix(linter): fix recursive hooks by @arendjr in https://github.com/biomejs/biome/pull/6931
- perf: introduce
Pathtype by @arendjr in https://github.com/biomejs/biome/pull/6935 - ci: add French, Spanish and Ukrainian to labeler by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6926
- refactor: add
no-nested-component-definitionsrule to eslint migration by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6941 - fix: typo
perfer-for→prefer-forby @JamBalaya56562 in https://github.com/biomejs/biome/pull/6947 - fix(core): fix type inference of
thisby @sterliakov in https://github.com/biomejs/biome/pull/6942 - fix(biome_js_analyze): ignore
as constand similar wrappers innoMagicNumbersrule by @sterliakov in https://github.com/biomejs/biome/pull/6944 - fix: typo
@vitest/eslint-pluginsource url by @JamBalaya56562 in https://github.com/biomejs/biome/pull/6943 - chore(deps): update github-actions by @renovate[bot] in https://github.com/biomejs/biome/pull/6954
- perf: shrink
Textby @arendjr in https://github.com/biomejs/biome/pull/6946 - fix(deps): update rust crate roaring to 0.11.1 by @renovate[bot] in https://github.com/biomejs/biome/pull/6959
- chore(deps): update typescript-eslint monorepo to v8.37.0 by @renovate[bot] in https://github.com/biomejs/biome/pull/6960
- chore(deps): update rust crate serde_json to 1.0.141 by @renovate[bot] in https://github.com/biomejs/biome/pull/6957
- chore(deps): update dependency @types/node to v22.16.5 by @renovate[bot] in https://github.com/biomejs/biome/pull/6956
- feat(biome-js-analyze): expanded support for useReadonlyClassProperties to cover async class methods too by @vladimir-ivanov in https://github.com/biomejs/biome/pull/6938
- chore(deps): update dependency @types/node to v22.16.5 by @renovate[bot] in https://github.com/biomejs/biome/pull/6955
- feat(parser): support import defer by @fireairforce in https://github.com/biomejs/biome/pull/6949
- chore: split
TypefromTypeDataby @arendjr in https://github.com/biomejs/biome/pull/6963 - feat(yaml_parser): parse flow constructs by @vohoanglong0107 in https://github.com/biomejs/biome/pull/6961
- fix: remove infinite loop on
function A(A) {}by @siketyan in https://github.com/biomejs/biome/pull/6976 - feat(parse): add tailwind grammar by @dyc3 in https://github.com/biomejs/biome/pull/6978
- fix(deps): update @biomejs packages (major) by @renovate[bot] in https://github.com/biomejs/biome/pull/6962
- feat(parse): add tailwind parser by @dyc3 in https://github.com/biomejs/biome/pull/6980
- fix: update documentation URL for
noUnknownPseudoClassby @rvanlaarhoven in https://github.com/biomejs/biome/pull/6990 - fix(lint/useSortedClasses): remove leading and trailing whitespaces by @unvalley in https://github.com/biomejs/biome/pull/6979
- feat(json/analyze): rule
noQuickfixBiomeby @ematipico in https://github.com/biomejs/biome/pull/6992 - chore: update generated code from analyzer codegen by @harxki in https://github.com/biomejs/biome/pull/7001
- refactor(formatter): specialised verbatim formatting by @ematipico in https://github.com/biomejs/biome/pull/7002
- fix(css_parser): add active-view-transition-type() (#6973) by @denbezrukov in https://github.com/biomejs/biome/pull/6991
- fix(suppression): invalid suppression comments should not cause a panic by @siketyan in https://github.com/biomejs/biome/pull/7012
- fix(migrate): transfer comments to the separator by @siketyan in https://github.com/biomejs/biome/pull/7014
- test(biome-js-analyze): add tests to cover tests to cover ??=, ||=, &&= by @vladimir-ivanov in https://github.com/biomejs/biome/pull/7010
- fix(lint/noUnassignedVariables): handle JSX ref attribute assignments by @harxki in https://github.com/biomejs/biome/pull/7000
- ci: use depot cargo in the PR workflow by @ematipico in https://github.com/biomejs/biome/pull/7045
- Revert "ci: use depot cargo in the PR workflow" by @ematipico in https://github.com/biomejs/biome/pull/7046
- fix(lint):
useSemanticElementsself-closing elements by @ematipico in https://github.com/biomejs/biome/pull/7044 - chore(deps): update rust:1.88.0-bullseye docker digest to b315f98 by @renovate[bot] in https://github.com/biomejs/biome/pull/7043
- ci: make it so windows devs don't get lints that don't show up on linux/macos by @dyc3 in https://github.com/biomejs/biome/pull/7003
- docs: update analyzer CONTRIBUTING.md by @dyc3 in https://github.com/biomejs/biome/pull/7056
- refactor(format): use specialised tokens by @ematipico in https://github.com/biomejs/biome/pull/7052
- feat(lint): implement
noVueReservedKeysrule by @mdevils in https://github.com/biomejs/biome/pull/7057 - feat(analyze/js): add useReactFunctionComponents rule by @dyc3 in https://github.com/biomejs/biome/pull/7055
- ci: release by @github-actions[bot] in https://github.com/biomejs/biome/pull/6927
New Contributors
- @rvanlaarhoven made their first contribution in https://github.com/biomejs/biome/pull/6990
- @harxki made their first contribution in https://github.com/biomejs/biome/pull/7001
Full Changelog: https://github.com/biomejs/biome/compare/@biomejs/biome@2.1.2...@biomejs/biome@2.1.3