JamieMason / eslint-plugin-prefer-arrow-functions

Auto-fix plain Functions into Arrow Functions, in all cases where conversion would result in the same behaviour
https://www.npmjs.com/package/eslint-plugin-prefer-arrow-functions
MIT License
43 stars 11 forks source link

Shouldn't flag/auto-fix "assertion" functions #22

Closed helixbass closed 4 months ago

helixbass commented 7 months ago

Description

This plugin appears to be flagging/auto-fixing Typescript assertion functions which apparently must use function syntax rather than arrow functions

Suggested Solution

Detect assertion functions and don't flag/auto-fix them