Version History
Version 2.1.3
Patch Changes
-
#7057
634a667
Thanks @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 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
734d708
Thanks @JamBalaya56562! - Added@eslint-react/no-nested-component-definitions
as a rule source fornoNestedComponentDefinitions
. Now it will get picked up bybiome migrate --eslint
. -
#6463
0a16d54
Thanks @JamBalaya56562! - Fixed a website link for theuseComponentExportOnlyModules
linter rule to point to the correct URL. -
#6944
e53f2fe
Thanks @sterliakov! - Fixed #6910: Biome now ignores type casts and assertions when evaluating numbers fornoMagicNumbers
rule. -
#6991
476cd55
Thanks @denbezrukov! - Fixed #6973: Add support for parsing the :active-view-transition-type() pseudo-class:active-view-transition-type(first second) {} -
#6992
0b1e194
Thanks @ematipico! - Added a new JSON rule callednoQuickfixBiome
, which disallow the use of code actionquickfix.biome
inside code editor settings. -
#6943
249306d
Thanks @JamBalaya56562! - Fixed@vitest/eslint-plugin
source url. -
#6947
4c7ed0f
Thanks @JamBalaya56562! - Fixed ESLint migration for the ruleprefer-for
fromeslint-plugin-solid
to Biome’suseForComponent
. -
#6976
72ebadc
Thanks @siketyan! - Fixed #6692: The rulesnoUnusedVariables
andnoUnusedFunctionParameters
no longer cause an infinite loop when the suggested name is not applicable (e.g. the suggested name is already declared in the scope). -
#6990
333f5d0
Thanks @rvanlaarhoven! - Fixed the documentation URL forlint/correctness/noUnknownPseudoClass
-
#7000
4021165
Thanks @harxki! - Fixed #6795:noUnassignedVariables
now correctly recognizes variables used in JSXref
attributes. -
#7044
b091ddf
Thanks @ematipico! - Fixed #6622, now the ruleuseSemanticElements
works for JSX self-closing elements too. -
#7014
c4864e8
Thanks @siketyan! - Fixed #6516: Thebiome migrate
command no longer break the member list with trailing comments. -
#6979
29cb6da
Thanks @unvalley! - Fixed #6767:useSortedClasses
now 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
ee4828d
Thanks @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
2d21be9
Thanks @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
e6b2380
Thanks @arendjr! - Fixed #6915:useHookAtTopLevel
no longer hangs when rules call themselves recursively. -
#7012
01c0ab4
Thanks @siketyan! - Fixed #5837: Invalid suppression comments such asbiome-ignore-all-start
orbiome-ignore-all-end
no longer causes a panic. -
#6949
48462f8
Thanks @fireairforce! - Support parseimport defer
(which is a stage3 proposal). The syntax look like this:import defer * as foo from "<specifier>"; -
#6938
5feb5a6
Thanks @vladimir-ivanov! - Fixed #6919 and #6920:useReadonlyClassProperties
now does checks for mutations in async class methods.Example:
class Counter3 {private counter: number;async count() {this.counter = 1;const counterString = `${this.counter++}`;}} -
#6942
cfda528
Thanks @sterliakov! - Fixed #6939. Biome now understandsthis
binding in classes outside of methods.
Copyright (c) 2023-present Biome Developers and Contributors.