'TSLint banning angular library functions when angular is declared globally

Here is a screenshot how we are using AngularJS in our project. Since we want to migrate to Angular now, we are currently finding alternatives to angular library functions. Furthermore, we want to ban our developers to use already transformed angular library function again. I mean the ones in function components in ng.

angular global declaration

How am I now supposed to ban this using TSLint? I am new to this and to my understanding, I would be doing as in the other screenshot if angular was an object.

my way of banning e.g. angular.noop function



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source