The zero-prefix regex branch intended for object methods correctly matches things like method: () => {}. However, lacking parenthesis boundaries, it falsely triggers on function arguments with an arrow-function type annotation defined at the start of a line (e.g., f: (...a: A) => B), mistaking a parameter declaration for an object property holding a function.
The zero-prefix regex branch intended for object methods correctly matches things like
method: () => {}. However, lacking parenthesis boundaries, it falsely triggers on function arguments with an arrow-function type annotation defined at the start of a line (e.g.,f: (...a: A) => B), mistaking a parameter declaration for an object property holding a function.