eslint-plugin-prefer-arrow-functions

Auto-fix plain Functions into Arrow Functions, in all cases where conversion would result in the same behaviour

MIT License

Downloads
258.9K
Stars
47
Committers
10

Bot releases are hidden (Show)

eslint-plugin-prefer-arrow-functions - 3.4.0 Latest Release

Published by JamieMason 2 months ago

3.4.0 (2024-08-11)

This release consists of the following pull requests, thanks to all for contributing

  • #32 by renato-bohler
  • #34 by loucyx
  • #36 by mitchell-merry
  • #40 by andersk
  • #41 by andersk

Features

  • do not flag constructors without this (8b926b5), closes #29
  • upgrade to eslint v9 (f2aa536), closes #34

Bug Fixes

  • adjusts fix for generic type arguments on TSX files (a33808c), closes #27
  • TypeError on function f() { return; } (6fcb83a), closes #38
  • update npm dependencies (6fa62ec)
eslint-plugin-prefer-arrow-functions - 3.3.2

Published by JamieMason 8 months ago

3.3.2 (2024-02-27)

Bug Fixes

  • handle missing case for function overloads (#31) (89f2201)
eslint-plugin-prefer-arrow-functions - 3.3.1

Published by JamieMason 8 months ago

3.3.1 (2024-02-25)

Bug Fixes

  • preserve $ characters in function bodies (534527e), closes #28
eslint-plugin-prefer-arrow-functions - 3.3.0

Published by JamieMason 8 months ago

3.3.0 (2024-02-25)

Features

Bug Fixes

  • protect static modifier on static methods (#30) (04c1408)
eslint-plugin-prefer-arrow-functions - 3.1.4

Published by JamieMason almost 3 years ago

3.1.4 (2021-11-13)

Bug Fixes

  • yarn: regenerate lockfile (b0afea1)
eslint-plugin-prefer-arrow-functions - 3.1.3

Published by JamieMason almost 3 years ago

3.1.3 (2021-11-13)

Bug Fixes

  • npm: update dependencies (30a64e1)
  • types: ensure return type is not lost (94f77de), closes #14

Features

  • types: add support for generics (6a71ab3), closes #10
eslint-plugin-prefer-arrow-functions - 3.0.1

Published by JamieMason almost 3 years ago

3.0.1 (2019-08-04)

Bug Fixes

  • npm: update dependencies (274db0d)
eslint-plugin-prefer-arrow-functions - 3.0.0

Published by JamieMason almost 3 years ago

3.0.0 (2019-05-07)

Features

  • add formal support for async functions (45b597b)
  • add option to set a return style of implicit or explicit (378186d)
  • skip functions containing this, arguments, super, and new.target (f1cee8c)

BREAKING CHANGES

  • Drops support for recommending use of class constructors in niche cases.
  • Drops support for preserving comments
Package Rankings
Top 3.32% on Npmjs.org