CLI
Bug fixes
- CLI is now able to automatically search and resolve
biome.jsonc
(#2008). Contributed by @Sec-ant - Fix a false positive where some files were counted as "fixed" even though they weren't modified. Contributed by @ematipico
Configuration
Bug fixes
Linter
New features
-
Add rule noDoneCallback, this rule checks the function parameter of hooks & tests
for use of the done argument, suggesting you return a promise instead. Contributed by @vasucp1207beforeEach(done => { // ... });
Bug fixes
-
useJsxKeyInIterable now recognizes function bodies wrapped in parentheses (#2011). Contributed by @Sec-ant
-
useShorthandFunctionType now preserves type parameters of generic interfaces when applying fixes (#2015). Contributed by @Sec-ant
-
Code fixes of useImportType and useExportType now handle multiline statements (#2041). Contributed by @Conaclos
-
noRedeclare no longer reports type parameter and parameter with identical names (#1992).
The following code is no longer reported:
function f<a>(a: a) {}
Contributed by @Conaclos
-
noRedeclare now reports duplicate type parameters in a same declaration.
The following type parameters are now reported as a redeclaraion:
function f<T, T>() {}
Contributed by @Conaclos
-
noUndeclaredDependencies now recognizes imports of subpath exports.
E.g., the following import statements no longer report errors if
@mui/material
andtailwindcss
are installed as dependencies:import Button from "@mui/material/Button"; import { fontFamily } from "tailwindcss/defaultTheme";
Contributed by @Sec-ant
Parser
Bug fixes
-
JavaScript lexer is now able to lex regular expression literals with escaped non-ascii chars (#1941).
Contributed by @Sec-ant
What's Changed
Other changes
- fix: concurrency deadlock by @ematipico in #1980
- Add GritQL grammar by @arendjr in #1951
- fix: website favicon by @Sec-ant in #1989
- feat(cli): add
--stdio
argument tolsp-proxy
command by @nhedger in #1997 - release: update crates by @ematipico in #2002
- docs(website): remove nightly extension by @SuperchupuDev in #2018
- fix(
useShorthandFunctionType
): generic interface type parameters by @Sec-ant in #2020 - fix(playground): fix
bracketSameLine
default by @SuperchupuDev in #2021 - fix(supicious/noDoubleEquals): fix typo by @Kenzo-Wada in #2006
- chore: remove repetitive words by @pengqiseven in #2019
- chore: update js-api snapshot by @togami2864 in #2024
- docs: add description of exception for index usage by @chansuke in #2023
- feat(biome_js_analyze): update the methods of
noFocusedTests
by @chansuke in #1999 - chore: review contribution document by @ematipico in #2034
- docs: language creation by @ematipico in #2042
- Enable extra-traits feature in syn by @arendjr in #2049
- release: crates by @ematipico in #2050
- release: crates by @ematipico in #2055
- chore: remove unused deps by @Conaclos in #2053
- fix(website): result tab panel height by @Sec-ant in #2057
New Contributors
- @Kenzo-Wada made their first contribution in #2006
- @pengqiseven made their first contribution in #2019
Full Changelog: cli/v1.5.3-nightly.4fa841c...cli/v1.6.1