-
Fix #175 which
made noRedeclare report index signatures using the name of a variable
in the parent scope.
-
Fix #557 which
made noUnusedImports report imported types used in typeof
expression. Contributed by @Conaclos
-
Fix #576 by removing some erroneous logic
in noSelfAssign. Contributed by @ematipico
-
Fix #861 that
made noUnusedVariables always reports the parameter of a
non-parenthesize arrow function as unused.
-
Fix #595 by updating unsafe-apply logic to avoid unexpected errors
in noUselessFragments. Contributed by @nissy-dev
-
Fix #591 which
made noRedeclare report type parameters with identical names but in
different method signatures. Contributed by @Conaclos
-
Support more a11y roles and fix some methods for a11y lint rules Contributed @nissy-dev
-
Fix #609 useExhaustiveDependencies
, by removing useContext
, useId
and useSyncExternalStore
from the known hooks. Contributed by @msdlisper
-
Fix useExhaustiveDependencies
, by removing useContext
, useId
and useSyncExternalStore
from the known hooks.
Contributed by @msdlisper
-
Fix #871 and #610.
Now useHookAtTopLevel
correctly handles nested functions. Contributed by @arendjr
-
The options of the rule useHookAtTopLevel
are deprecated and will be removed in Biome 2.0. The rule now determines
the hooks using the naming convention set by React.
{
"linter": {
"rules": {
"correctness": {
+ "useHookAtTopLevel": "error",
- "useHookAtTopLevel": {
- "level": "error",
- "options": {
- "hooks": [
- {
- "name": "useLocation",
- "closureIndex": 0,
- "dependenciesIndex": 1
- },
- { "name": "useQuery", "closureIndex": 1, "dependenciesIndex": 0 }
- ]
- }
- }
}
}
}
}