Enhance meteor/eventmap-params rule #12571
DblK
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current rule accept only one value for
eventParamName
&templateInstanceParamName
.I wish to be able to enforce the name of the params (ex:
event
) but sometime it won't be used so I renamed it to_event
.I will be more flexible for the rule to either accept a
string
orstring[]
.The usage should be :
or
The above example demonstrate only
eventParamName
but should work also for the other propertytemplateInstanceParamName
.The current rule file is here.
I suggest the default value for this rule should be an array with both value.
I am willing to make a PR for it once agreed.
Beta Was this translation helpful? Give feedback.
All reactions