Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve the report location of `arrow-paren` #11773
What rule do you want to change?
Currently the reported node is the whole function. It makes sense to change the reported node to the parameter node.
/* eslint arrow-parens:  */ // current report location const f = a => a + a + a; // ~~~~~~~~~~~~~~ Error: needs parens. // proposed report location const f = a => a + a + a; // ~ Error: needs parens.
Are you willing to submit a pull request to implement this change?