Update: Enable function string option in comma-dangle (fixes #12058) #12462
Conversation
|
Are there any tests which show that functions are ignored by default when ecmaVersion < 8? I didn't see any new tests along those lines and a quick skim of the existing |
|
@platinumazure You are right. There were Insufficient test cases. I add more test cases. Thanks:) |
|
Thanks for adding those test cases! Looks good to me, but I would like more team members to review as well. |
|
Thanks for the correct change and comprehensive tests! I left just one minor note for an additional test. I think it's correct to treat this as a bug fix with more warnings for a semver-minor, because this behavior
Also, it's possible to reconfigure the rule if the new warnings are not desired (might be good to put a note in the release blog post?). |
|
@mdjermanovic Thanks. I added a test case(ecmaVersion >8) |
Apologies, I meant an additional test in The test case you added is anyway useful and should stay. If you can it would be nice to add one more test with |
|
@mdjermanovic No problem! I added one test case in invalid for ecmaVersion 9 |
|
Thanks for the test, and sorry again. Everything LGTM, thanks for contributing! |
7dffe48
into
eslint:master
|
Merged-- thanks @yeonjuan for contributing! |
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[X] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
function string optionin comma-dangle.Is there anything you'd like reviewers to focus on?