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
Would it be possible to add banning for decorators? (or maybe i'm missing it, but using either decorator name or @name in a rule doesn't seem to currently catch instances where that decorator is used).
Example use case:
I want to ban the use of @Expose from the class-transformer library:
I have tried both of the following rule configs (not that the second one should work as the function is not named with a @ prefix, that's just syntax sugar), but neither seem to work:
"ban/ban": [
"error",
{
"name": [ "Expose" ],
"message": "Class-transformer camelCase <-> snake_case is handled by KeyCaseInterceptor"
},
{
"name": [ "@Expose" ],
"message": "Class-transformer camelCase <-> snake_case is handled by KeyCaseInterceptor"
}
]
The text was updated successfully, but these errors were encountered:
Would it be possible to add banning for decorators? (or maybe i'm missing it, but using either decorator name or @name in a rule doesn't seem to currently catch instances where that decorator is used).
Example use case:
I want to ban the use of
@Expose
from the class-transformer library:I have tried both of the following rule configs (not that the second one should work as the function is not named with a @ prefix, that's just syntax sugar), but neither seem to work:
The text was updated successfully, but these errors were encountered: