As proposed by @hansl we should use custom tslint rules instead of the forbidden-identifiers script.
I already played with that and run into several problems:
-
The rules will be written with TypeScript but need to be loaded as .js compiled files.
We could compile them in a gulp task, but then developers probably will commit the files.
-
We are currently using an older version of tslint.
Version 4.0.0 is already available, but includes some breaking changes like the deprecation of no-unused-variable