You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a value is an object, and it's not used as a shorthand property, it won't be flagged by the rule.
This is not ideal - a user could just rename a variable and pass it to a logger.
In production environment, a function that takes an object and redacts sensitive values should be used. We could additional check if the object was returned from such a function
Describe a proposed solution
For objects and arrays, check if value was returned from function specified in settings
The text was updated successfully, but these errors were encountered:
What I'm trying to achieve
If a value is an object, and it's not used as a shorthand property, it won't be flagged by the rule.
This is not ideal - a user could just rename a variable and pass it to a logger.
In production environment, a function that takes an object and redacts sensitive values should be used. We could additional check if the object was returned from such a function
Describe a proposed solution
For objects and arrays, check if value was returned from function specified in settings
The text was updated successfully, but these errors were encountered: