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
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
#1385 added the ability to give an optional explanation for banned functions. eg. instead of just:
["_","filter"]// Calls to '_.filter' are not allowed.
you could provide an additional string to propose an alternative:
["_","filter","Use the native JavaScript 'myArray.filter' instead."]// Calls to '_.filter' are not allowed. Use the native JavaScript 'myArray.filter' instead.
#1408 added global bans, but left out the ability to provide an optional explanation. Obviously there's the problem of input syntax (if it's an array with 2 strings "a" and "b", is that banning a.b or banning a with message b?), but I'd like to open a discussion for that.
The text was updated successfully, but these errors were encountered:
@vsiao as I can see in docs examples and code - explanation isn't available for global bans.
Probably it is possible to check for characters that are not valid identifiers (spaces, special characters etc. since ElementAccessExpression aren't checked), or replace arrays with descriptive object
#1385 added the ability to give an optional explanation for banned functions. eg. instead of just:
you could provide an additional string to propose an alternative:
#1408 added global bans, but left out the ability to provide an optional explanation. Obviously there's the problem of input syntax (if it's an array with 2 strings
"a"
and"b"
, is that banninga.b
or banninga
with messageb
?), but I'd like to open a discussion for that.The text was updated successfully, but these errors were encountered: