Closed Hotell closed 5 years ago
Hey! Thanks for this kind of word. Indeed this looks like useful, I will implement it soon. I will go back to you when it's fixed.
@Hotell you can use this plugin as expected:
{
"rules": {
"ban/ban": [
"error",
{"name": "api", "message": "This function is deprecated, please use api.call()"},
{"name": ["*", "push"], "message": "Prefer use es6 spread like [...items, newItem]"},
{"name": "functionName", "message": "Prefer use functionName2"}
]
}
}
cheers !
Hey! First of all thanks for this plugin! I'm migrating from tslint so this is very useful libary indeed.
It would be nice to add support for multiple rules, similarly to tslint ban.
Expected to work
Also if I wrap those rules within an array, it wont work
Error: