github biomejs/biome cli/v1.4.1-nightly.570d680
CLI v1.4.1-nightly.570d680

pre-release9 months ago

Editors

New features

  • The LSP register formatting without the need of using dynamic capabilities from the client.

Linter

New features

  • Add useExportType that enforces the use of type-only exports for names that are only types. Contributed by @Conaclos

      interface A {}
      interface B {}
      class C {}
    
    - export type { A, C }
    + export { type A, C }
    
    - export { type B }
    + export type { B }

Bug fixes

  • Fix #959. noEmptyInterface no longer reports interface that extends a type and is in an external module. COntributed by @Conaclos

    Empty interface that extends a type are sometimes used to extend an existing interface.
    This is generally used to extend an interface of an external module.

    interface Extension {
      metadata: unknown;
    }
    
    declare module "@external/module" {
      export interface ExistingInterface extends Extension {}
    }
  • Fix #1061. noRedeclare no longer reports overloads of export default function. Contributed by @Conaclos

    The following code is no longer reported:

    export default function(a: boolean): boolean;
    export default function(a: number): number;
    export default function(a: number | boolean): number | boolean {
    	return a;
    }
  • Fix #651, useExhaustiveDependencies no longer reports out of scope dependecies. Contributed by @kalleep

    The following code is no longer reported:

    let outer = false;
    
    const Component = ({}) => {
      useEffect(() => {
        outer = true;
      }, []);
    }
  • Fix #728. useSingleVarDeclarator no longer outputs invalid code. Contributed by @Conaclos

Parser

  • Fix #1077, fix issues when parsing conditional expression where parenthesized identifier was being parsed as arrow expression. Contributed by @kalleep

These cases are now properly parsed:

javascript:

  a ? (b) : a => {};

typescript:

  a ? (b) : a => {};

jsx:

  bar ? (foo) : (<a>{() => {}}</a>);

What's Changed

Other changes

New Contributors

Full Changelog: lsp-intellij/v0.0.7...cli/v1.4.1-nightly.570d680

Don't miss a new biome release

NewReleases is sending notifications on new releases.