Skip to content

CLI v1.6.1

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Mar 11:48
· 712 commits to main since this release
4ed1cbe

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

  • json.formatter.trailingCommas option now works in overrides (#2009). Contributed by @Sec-ant

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 @vasucp1207

    beforeEach(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 and tailwindcss 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

New Contributors

Full Changelog: cli/v1.5.3-nightly.4fa841c...cli/v1.6.1