fix(valid-describe): add check for concise body arrow functions#106
Conversation
|
I wonder if we should allow it? I don't think it hurts. @thymikee thoughts? (CI seems confused, I'm not sure what's up with it...) |
|
I think we should allow this |
|
I first thought that a concise body arrow function violates the existing lint rule because it implicitly returns the value of its body. But I also think that it doesn't harm the describe block by returning a value. Please let me know which one is better and I'll reflect it to the code! |
|
Brace-less arrows should be supported even though returning in a |
|
Woah, I never got an email that you fixed this @Saberre. So sorry! 🙏 |
|
🎉 This PR is included in version 21.15.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes #105.
I've added a new condition for an arrow function with concise body. I'm not good at writing English, so the report message may not be look good to you. If so, please let me know and I'll fix it!