eslint-plugin-prefer-arrow-functions
                                
                                
                                
                                    eslint-plugin-prefer-arrow-functions copied to clipboard
                            
                            
                            
                        Removes comments and formatting
Description
Input code:
function someFn(
	// comment a
	a,
    // comment b
    b,
) {}
Fixed code:
const someFn = (a, b) => {};
Suggested Solution
Preserve whitespace and comments
Help Needed
It looks like getSourceCode() used to rewrite the function body is now deprecated and instead context.sourceCode should be used. Here is some documentation on how eslint API handles comments: https://eslint.org/docs/latest/extend/custom-rules#accessing-the-source-text
In case you're interested, I ended up rolling my own solution which makes autofixes with more precision: https://github.com/privatenumber/lintroll/tree/develop/src/custom-rules/prefer-arrow-functions
Thanks @privatenumber, closing as it looks like you have a nice solution.