We have developed our own version of the Validators.required form-validator that comes with Angular 7, but now we need to switch to using CustomValidators.required. To enforce this change, we are considering banning the use of the old Validators.required by adding it to our existing TSlint configuration. We attempted to implement the ban Rule from , however, it does not appear to be working as expected. Our current configuration looks like this:
"ban": [
true,
"eval",
{"name": ["Validators", "required"], "message": "Avoid using Validators.required; instead, use CustomValidators.required."}
]
As we face this hurdle, any assistance or guidance would be greatly appreciated :)