Skip to content

CLI v1.7.1

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Apr 15:47
· 393 commits to main since this release
d6f1f2b

Editors

Bug fixes

  • Fix #2403 by printing the errors in the client console. Contributed by @ematipico

Formatter

Bug fixes

  • Add parentheses for the return expression that has leading multiline comments. #2504. Contributed by @ah-yu

  • Correctly format dangling comments of continue statements. #2555. Contributed by @ah-yu

Linter

Bug fixes

  • Fix case where jsxRuntime wasn't being respected by useImportType rule (#2473).Contributed by @arendjr
  • Fix #2460, where the rule noUselessFragments was crashing the linter in some cases. Now cases like these are correctly handled:
    callFunction(<>{bar}</>)
    Contributed by @ematipico
  • Fix #2366, where noDuplicateJsonKeys incorrectly computed the kes to highlight. Contributed by @ematipico

Enhancements

  • The rule noMisplacedAssertions now considers valid calling expect inside waitFor:
    import { waitFor } from '@testing-library/react';
    
    await waitFor(() => {
      expect(111).toBe(222);
    });
    Contributed by @ematipico

What's Changed

Other changes

New Contributors

Full Changelog: cli/v1.7.0...cli/v1.7.1