Rule Change: Add ability to ignore Undefined in Function Params #16711
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
enhancement
This change enhances an existing feature of ESLint
rule
Relates to ESLint's core rules
Projects
What rule do you want to change?
no-undefined
What change to do you want to make?
Generate fewer warnings
How do you think the change should be implemented?
A new option
Example code
What does the rule currently do for this code?
This rule currently flags the
undefined
value manually put in the call signature of thegraphMethod
method to skip an optional parameter to be able to use a parameter that is further down the call signature.What will the rule do after it's changed?
After changing the rule, the rule will have a new option that allows for silencing the use of undefined in call signatures. All other undefined usage detections should not be modified, just undefined usage in call signatures.
Participation
Additional comments
As seen here:
https://stackoverflow.com/questions/8356227/skipping-optional-function-parameters-in-javascript
The text was updated successfully, but these errors were encountered: