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

Should flag outer function even if inner function uses `this` #39

Open andersk opened 3 weeks ago

andersk commented 3 weeks ago

Currently no violations are flagged for function f() { function g() { return this; } }. We should fix this to const f = () => { function g() { return this; } };.